- storyboard quick loading

- temporary default app view card image
- select new host button icon
This commit is contained in:
TrueZhuanjia
2025-07-13 22:49:16 +08:00
parent 686696a6d9
commit 17a9fa39f5
7 changed files with 97 additions and 70 deletions
@@ -1431,9 +1431,23 @@ static NSMutableSet* hostList;
[_settingsButton setTitle:[LocalizationHelper localizedStringForKey:@"Settings"]];
}
// Set the host name button action. When it's tapped, it'll show the host selection view.
_upButton = [[UIBarButtonItem alloc] init];
[self->_upButton setTitle: [LocalizationHelper localizedStringForKey: @"Select New Host"]];
if (@available(iOS 13.0, *)) {
[_upButton setTitle:@""];
UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:23 weight:UIImageSymbolWeightMedium ];
UIImage *image = [[UIImage systemImageNamed:@"tv" withConfiguration:config] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[_upButton setImage:image];
_upButton.imageInsets = UIEdgeInsetsMake(25, 20, 0, 15);
} else {
[_upButton setTitle:[LocalizationHelper localizedStringForKey:@"Select New Host"]];
}
//[self->_upButton setTitle: [LocalizationHelper localizedStringForKey: @"Select New Host"]];
[_upButton setTarget:self];
[_upButton setAction:@selector(switchToHostView)];
}