minor tweaks on UI

This commit is contained in:
TrueZhuanjia committed 2025-07-25 10:42:11 +08:00
1 parent 80f9118c0d
commit 323613e4db
4 files changed
+9 -8

No files matched your search

+4 -4
View File
@@ -4603,25 +4603,25 @@
} }
} }
}, },
"Touch & Control" : { "Touch & Controller" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "触屏与控制" "value" : "触屏与手柄"
} }
}, },
"zh-Hant" : { "zh-Hant" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "觸控與控制" "value" : "觸控與控制器"
} }
}, },
"zh-HK" : { "zh-HK" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "觸控與控制" "value" : "觸控與控制器"
} }
} }
} }
@@ -1145,7 +1145,7 @@ static NSMutableSet* hostList;
[settingsViewController setHidden:_settingsExpandedInStreamView forStack:settingsViewController.audioOnPcStack]; [settingsViewController setHidden:_settingsExpandedInStreamView forStack:settingsViewController.audioOnPcStack];
[settingsViewController.codecSelector setEnabled:!_settingsExpandedInStreamView]; [settingsViewController.codecSelector setEnabled:!_settingsExpandedInStreamView];
[settingsViewController.yuv444Switch setEnabled:!_settingsExpandedInStreamView]; [settingsViewController.yuv444Switch setEnabled:!_settingsExpandedInStreamView];
[settingsViewController.hdrSwitch setEnabled:!_settingsExpandedInStreamView]; [settingsViewController.hdrSwitch setEnabled:!_settingsExpandedInStreamView && [settingsViewController hdrSupported]];
[settingsViewController.gyroModeSelector setEnabled:!_settingsExpandedInStreamView || ![streamFrameViewController shallDisableGyroHotSwitch]]; [settingsViewController.gyroModeSelector setEnabled:!_settingsExpandedInStreamView || ![streamFrameViewController shallDisableGyroHotSwitch]];
[settingsViewController.emulatedControllerTypeSelector setEnabled:!_settingsExpandedInStreamView]; [settingsViewController.emulatedControllerTypeSelector setEnabled:!_settingsExpandedInStreamView];
[settingsViewController setHidden:_settingsExpandedInStreamView forStack:settingsViewController.framepacingStack]; [settingsViewController setHidden:_settingsExpandedInStreamView forStack:settingsViewController.framepacingStack];
@@ -1471,7 +1471,7 @@ static NSMutableSet* hostList;
if (@available(iOS 13.0, *)) { if (@available(iOS 13.0, *)) {
[_upButton setTitle:@""]; [_upButton setTitle:@""];
UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:23 weight:UIImageSymbolWeightMedium ]; UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:21.5 weight:UIImageSymbolWeightMedium ];
UIImage *image = [[UIImage systemImageNamed:@"tv" withConfiguration:config] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; UIImage *image = [[UIImage systemImageNamed:@"tv" withConfiguration:config] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[_upButton setImage:image]; [_upButton setImage:image];
_upButton.imageInsets = UIEdgeInsetsMake(25, 20, 0, 15); _upButton.imageInsets = UIEdgeInsetsMake(25, 20, 0, 15);
@@ -122,6 +122,7 @@
#pragma clang diagnostic pop #pragma clang diagnostic pop
- (bool)hdrSupported;
- (void)saveSettings; - (void)saveSettings;
+ (bool)isLandscapeNow; + (bool)isLandscapeNow;
- (void)updateResolutionTable; - (void)updateResolutionTable;
@@ -528,7 +528,7 @@ BOOL isCustomResolution(CGSize res) {
touchAndControlSection = [[MenuSectionView alloc] init]; touchAndControlSection = [[MenuSectionView alloc] init];
touchAndControlSection.delegate = self; touchAndControlSection.delegate = self;
touchAndControlSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Touch & Control"]; touchAndControlSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Touch & Controller"];
if (@available(iOS 13.0, *)) { if (@available(iOS 13.0, *)) {
[touchAndControlSection setSectionWithIcon:[UIImage imageNamed:@"arcade.stick.console"] andSize:20.5]; [touchAndControlSection setSectionWithIcon:[UIImage imageNamed:@"arcade.stick.console"] andSize:20.5];
} }
@@ -1324,7 +1324,7 @@ BOOL isCustomResolution(CGSize res) {
if (![self hdrSupported]) { if (![self hdrSupported]) {
[self.hdrSwitch setOn:NO]; [self.hdrSwitch setOn:NO];
[self widget:self.hdrSwitch setEnabled:NO]; [self.hdrSwitch setEnabled:NO];
} }
else { else {
[self.hdrSwitch setOn:currentSettings.enableHdr]; [self.hdrSwitch setOn:currentSettings.enableHdr];