From 75e88ee31e036b1817642ac9ce14b3f09b22a3be Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Thu, 24 Jul 2025 20:32:58 +0800 Subject: [PATCH] tweak aboutView --- VoidLink/AboutView.swift | 7 ++++--- VoidLink/AboutViewController.swift | 2 +- VoidLink/ViewControllers/MainFrameViewController.m | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/VoidLink/AboutView.swift b/VoidLink/AboutView.swift index 16553caf..d1d2d443 100644 --- a/VoidLink/AboutView.swift +++ b/VoidLink/AboutView.swift @@ -17,9 +17,10 @@ public struct AboutView: View { VStack(spacing: 10) { // App 图标 Image(uiImage: UIImage(named: "AppIconMedium") ?? UIImage()) - .resizable() - .frame(width: 80, height: 80) - .clipShape(RoundedRectangle(cornerRadius: 36)) + // .resizable() + .resizable(capInsets:EdgeInsets(top: 3.5, leading: 3.5, bottom: 3.5, trailing: 3.5)) + .frame(width: 100, height: 100) + .clipShape(RoundedRectangle(cornerRadius: 28)) // App 名称 Text(Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? "App Name") diff --git a/VoidLink/AboutViewController.swift b/VoidLink/AboutViewController.swift index b82eb1f8..be751ec2 100644 --- a/VoidLink/AboutViewController.swift +++ b/VoidLink/AboutViewController.swift @@ -28,7 +28,7 @@ import SwiftUI ]) // 🎯 设置弹窗大小 - preferredContentSize = CGSize(width: 600, height: 450) + preferredContentSize = CGSize(width: 530, height: 450) //preferredContentSize = CGSize(width:150, height:120 ) // ⚠️ 一定要设置以下样式才会生效 preferredContentSize diff --git a/VoidLink/ViewControllers/MainFrameViewController.m b/VoidLink/ViewControllers/MainFrameViewController.m index 95d2c879..cf8deebc 100644 --- a/VoidLink/ViewControllers/MainFrameViewController.m +++ b/VoidLink/ViewControllers/MainFrameViewController.m @@ -2115,7 +2115,7 @@ static NSMutableSet* hostList; if(gesture.state == UIGestureRecognizerStateBegan){ if(locationInView.x < 30) { snapshot = [[UIView alloc] init]; - snapshot.backgroundColor = [ThemeManager appPrimaryColor]; + snapshot.backgroundColor = [UIColor systemBlueColor]; screenHeight = [UIScreen mainScreen].bounds.size.height; snapshot.frame = CGRectMake(locationInSuperView.x,0, 2, screenHeight); [self.revealViewController.view addSubview:snapshot];