app view and app view navigation bar
This commit is contained in:
1 parent
201bf5b447
commit
e742466409
1 file changed
+5
-5
@@ -383,7 +383,7 @@ static NSMutableSet* hostList;
|
|||||||
self.collectionView.backgroundColor = [ThemeManager hostViewBackgroundColor];
|
self.collectionView.backgroundColor = [ThemeManager hostViewBackgroundColor];
|
||||||
//self.view.backgroundColor = [ThemeManager appBackgroundColor];
|
//self.view.backgroundColor = [ThemeManager appBackgroundColor];
|
||||||
|
|
||||||
[self.collectionView setContentOffset:CGPointZero animated:NO];
|
// [self.collectionView setContentOffset:CGPointZero animated:NO];
|
||||||
|
|
||||||
[self attachWaterMark];
|
[self attachWaterMark];
|
||||||
self.navigationItem.rightBarButtonItems = @[_upButton];
|
self.navigationItem.rightBarButtonItems = @[_upButton];
|
||||||
@@ -1417,7 +1417,7 @@ static NSMutableSet* hostList;
|
|||||||
}
|
}
|
||||||
// [button setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
|
// [button setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
|
||||||
|
|
||||||
button.titleLabel.font = [UIFont systemFontOfSize:liquidGlassEnabled ? 17 : 16 weight:UIFontWeightMedium];
|
button.titleLabel.font = [UIFont systemFontOfSize:liquidGlassEnabled ? 16 : 16 weight:UIFontWeightMedium];
|
||||||
// 文字颜色设置为 tintColor 控制
|
// 文字颜色设置为 tintColor 控制
|
||||||
if(liquidGlassEnabled) button.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0.9, 0);
|
if(liquidGlassEnabled) button.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0.9, 0);
|
||||||
button.tintColor = liquidGlassEnabled ? [ThemeManager appPrimaryColor] : UIColor.whiteColor;
|
button.tintColor = liquidGlassEnabled ? [ThemeManager appPrimaryColor] : UIColor.whiteColor;
|
||||||
@@ -1558,10 +1558,10 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
if (@available(iOS 13.0, *)) {
|
if (@available(iOS 13.0, *)) {
|
||||||
[_upButton setTitle:@""];
|
[_upButton setTitle:@""];
|
||||||
UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:21.5 weight:UIImageSymbolWeightMedium];
|
UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:GenericUtils.liquidGlassEnabled ? 16 : 21.5 weight:UIImageSymbolWeightMedium];
|
||||||
UIImage *image = [[UIImage systemImageNamed:@"tv" withConfiguration:config] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
UIImage *image = [[UIImage systemImageNamed:GenericUtils.liquidGlassEnabled ? @"macwindow.on.rectangle" : @"tv" withConfiguration:config] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||||
[_upButton setImage:image];
|
[_upButton setImage:image];
|
||||||
_upButton.imageInsets = UIEdgeInsetsMake(25, 20, 0, 15);
|
_upButton.imageInsets = GenericUtils.liquidGlassEnabled ? UIEdgeInsetsMake(0, 0, 0, 1) : UIEdgeInsetsMake(25, 20, 0, 15);
|
||||||
} else {
|
} else {
|
||||||
[_upButton setTitle:[LocalizationHelper localizedStringForKey:@"Select New Host"]];
|
[_upButton setTitle:[LocalizationHelper localizedStringForKey:@"Select New Host"]];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user