Fix various UI issues
This commit is contained in:
parent
a92db64cd0
commit
0590e2eb42
|
@ -36,6 +36,7 @@
|
|||
[section addItem:[OWSTableItem
|
||||
itemWithCustomCellBlock:^{
|
||||
UITableViewCell *cell = [OWSTableItem newCell];
|
||||
cell.tintColor = UIColor.lokiGreen;
|
||||
[[cell textLabel] setText:[prefs nameForNotificationPreviewType:notificationType]];
|
||||
if (selectedNotifType == notificationType) {
|
||||
cell.accessoryType = UITableViewCellAccessoryCheckmark;
|
||||
|
|
|
@ -120,7 +120,7 @@ const CGFloat kMaxTextViewHeight = 98;
|
|||
self.backgroundColor = Theme.toolbarBackgroundColor;
|
||||
} else {
|
||||
CGFloat alpha = OWSNavigationBar.backgroundBlurMutingFactor;
|
||||
self.backgroundColor = UIColor.lokiDarkerGray;
|
||||
self.backgroundColor = [UIColor.lokiDarkerGray colorWithAlphaComponent:alpha];
|
||||
|
||||
UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:Theme.barBlurEffect];
|
||||
blurEffectView.layer.zPosition = -1;
|
||||
|
|
|
@ -57,10 +57,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
self.circleView = circleView;
|
||||
circleView.userInteractionEnabled = NO;
|
||||
circleView.layer.cornerRadius = circleSize * 0.5f;
|
||||
circleView.layer.shadowColor = Theme.middleGrayColor.CGColor;
|
||||
circleView.layer.shadowOffset = CGSizeMake(+1.f, +2.f);
|
||||
circleView.layer.shadowRadius = 1.5f;
|
||||
circleView.layer.shadowOpacity = 0.35f;
|
||||
circleView.layer.borderColor = UIColor.whiteColor.CGColor;
|
||||
circleView.layer.borderWidth = 1 / UIScreen.mainScreen.scale;
|
||||
[circleView autoSetDimension:ALDimensionWidth toSize:circleSize];
|
||||
[circleView autoSetDimension:ALDimensionHeight toSize:circleSize];
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
|
|||
UILabel *nameLabel = [UILabel new];
|
||||
nameLabel.text = NSLocalizedString(@"Display Name", @"");
|
||||
nameLabel.textColor = Theme.primaryColor;
|
||||
nameLabel.font = [UIFont ows_mediumFontWithSize:fontSizePoints];
|
||||
nameLabel.font = [UIFont ows_regularFontWithSize:fontSizePoints];
|
||||
[nameRow addSubview:nameLabel];
|
||||
[nameLabel autoPinLeadingToSuperviewMargin];
|
||||
[nameLabel autoPinHeightToSuperviewWithMargin:5.f];
|
||||
|
@ -130,14 +130,15 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
|
|||
nameTextField = [OWSTextField new];
|
||||
}
|
||||
_nameTextField = nameTextField;
|
||||
nameTextField.font = [UIFont ows_mediumFontWithSize:18.f];
|
||||
nameTextField.textColor = [UIColor ows_materialBlueColor];
|
||||
nameTextField.font = [UIFont ows_regularFontWithSize:18.f];
|
||||
nameTextField.textColor = UIColor.whiteColor;
|
||||
nameTextField.tintColor = UIColor.lokiGreen;
|
||||
nameTextField.placeholder = NSLocalizedString(
|
||||
@"PROFILE_VIEW_NAME_DEFAULT_TEXT", @"Default text for the profile name field of the profile view.");
|
||||
nameTextField.delegate = self;
|
||||
nameTextField.text = [OWSProfileManager.sharedManager localProfileName];
|
||||
nameTextField.textAlignment = NSTextAlignmentRight;
|
||||
nameTextField.font = [UIFont ows_mediumFontWithSize:fontSizePoints];
|
||||
nameTextField.font = [UIFont ows_regularFontWithSize:fontSizePoints];
|
||||
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, nameTextField);
|
||||
[nameTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
|
||||
[nameRow addSubview:nameTextField];
|
||||
|
|
|
@ -217,6 +217,7 @@ const CGFloat kOWSTable_DefaultCellHeight = 45.f;
|
|||
cell.textLabel.text = text;
|
||||
cell.accessoryType = accessoryType;
|
||||
cell.accessibilityIdentifier = accessibilityIdentifier;
|
||||
cell.tintColor = UIColor.lokiGreen;
|
||||
return cell;
|
||||
};
|
||||
return item;
|
||||
|
|
|
@ -231,8 +231,7 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
|
|||
|
||||
+ (UIColor *)scrollButtonBackgroundColor
|
||||
{
|
||||
return Theme.isDarkThemeEnabled ? [UIColor colorWithWhite:0.25f alpha:1.f]
|
||||
: [UIColor colorWithWhite:0.95f alpha:1.f];
|
||||
return UIColor.lokiDarkerGray;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue