Fix various UI issues

pull/49/head
Niels Andriesse 6 years ago
parent a92db64cd0
commit 0590e2eb42

@ -36,6 +36,7 @@
[section addItem:[OWSTableItem [section addItem:[OWSTableItem
itemWithCustomCellBlock:^{ itemWithCustomCellBlock:^{
UITableViewCell *cell = [OWSTableItem newCell]; UITableViewCell *cell = [OWSTableItem newCell];
cell.tintColor = UIColor.lokiGreen;
[[cell textLabel] setText:[prefs nameForNotificationPreviewType:notificationType]]; [[cell textLabel] setText:[prefs nameForNotificationPreviewType:notificationType]];
if (selectedNotifType == notificationType) { if (selectedNotifType == notificationType) {
cell.accessoryType = UITableViewCellAccessoryCheckmark; cell.accessoryType = UITableViewCellAccessoryCheckmark;

@ -120,7 +120,7 @@ const CGFloat kMaxTextViewHeight = 98;
self.backgroundColor = Theme.toolbarBackgroundColor; self.backgroundColor = Theme.toolbarBackgroundColor;
} else { } else {
CGFloat alpha = OWSNavigationBar.backgroundBlurMutingFactor; CGFloat alpha = OWSNavigationBar.backgroundBlurMutingFactor;
self.backgroundColor = UIColor.lokiDarkerGray; self.backgroundColor = [UIColor.lokiDarkerGray colorWithAlphaComponent:alpha];
UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:Theme.barBlurEffect]; UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:Theme.barBlurEffect];
blurEffectView.layer.zPosition = -1; blurEffectView.layer.zPosition = -1;

@ -57,10 +57,8 @@ NS_ASSUME_NONNULL_BEGIN
self.circleView = circleView; self.circleView = circleView;
circleView.userInteractionEnabled = NO; circleView.userInteractionEnabled = NO;
circleView.layer.cornerRadius = circleSize * 0.5f; circleView.layer.cornerRadius = circleSize * 0.5f;
circleView.layer.shadowColor = Theme.middleGrayColor.CGColor; circleView.layer.borderColor = UIColor.whiteColor.CGColor;
circleView.layer.shadowOffset = CGSizeMake(+1.f, +2.f); circleView.layer.borderWidth = 1 / UIScreen.mainScreen.scale;
circleView.layer.shadowRadius = 1.5f;
circleView.layer.shadowOpacity = 0.35f;
[circleView autoSetDimension:ALDimensionWidth toSize:circleSize]; [circleView autoSetDimension:ALDimensionWidth toSize:circleSize];
[circleView autoSetDimension:ALDimensionHeight toSize:circleSize]; [circleView autoSetDimension:ALDimensionHeight toSize:circleSize];

@ -118,7 +118,7 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
UILabel *nameLabel = [UILabel new]; UILabel *nameLabel = [UILabel new];
nameLabel.text = NSLocalizedString(@"Display Name", @""); nameLabel.text = NSLocalizedString(@"Display Name", @"");
nameLabel.textColor = Theme.primaryColor; nameLabel.textColor = Theme.primaryColor;
nameLabel.font = [UIFont ows_mediumFontWithSize:fontSizePoints]; nameLabel.font = [UIFont ows_regularFontWithSize:fontSizePoints];
[nameRow addSubview:nameLabel]; [nameRow addSubview:nameLabel];
[nameLabel autoPinLeadingToSuperviewMargin]; [nameLabel autoPinLeadingToSuperviewMargin];
[nameLabel autoPinHeightToSuperviewWithMargin:5.f]; [nameLabel autoPinHeightToSuperviewWithMargin:5.f];
@ -130,14 +130,15 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
nameTextField = [OWSTextField new]; nameTextField = [OWSTextField new];
} }
_nameTextField = nameTextField; _nameTextField = nameTextField;
nameTextField.font = [UIFont ows_mediumFontWithSize:18.f]; nameTextField.font = [UIFont ows_regularFontWithSize:18.f];
nameTextField.textColor = [UIColor ows_materialBlueColor]; nameTextField.textColor = UIColor.whiteColor;
nameTextField.tintColor = UIColor.lokiGreen;
nameTextField.placeholder = NSLocalizedString( nameTextField.placeholder = NSLocalizedString(
@"PROFILE_VIEW_NAME_DEFAULT_TEXT", @"Default text for the profile name field of the profile view."); @"PROFILE_VIEW_NAME_DEFAULT_TEXT", @"Default text for the profile name field of the profile view.");
nameTextField.delegate = self; nameTextField.delegate = self;
nameTextField.text = [OWSProfileManager.sharedManager localProfileName]; nameTextField.text = [OWSProfileManager.sharedManager localProfileName];
nameTextField.textAlignment = NSTextAlignmentRight; nameTextField.textAlignment = NSTextAlignmentRight;
nameTextField.font = [UIFont ows_mediumFontWithSize:fontSizePoints]; nameTextField.font = [UIFont ows_regularFontWithSize:fontSizePoints];
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, nameTextField); SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, nameTextField);
[nameTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged]; [nameTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
[nameRow addSubview:nameTextField]; [nameRow addSubview:nameTextField];

@ -217,6 +217,7 @@ const CGFloat kOWSTable_DefaultCellHeight = 45.f;
cell.textLabel.text = text; cell.textLabel.text = text;
cell.accessoryType = accessoryType; cell.accessoryType = accessoryType;
cell.accessibilityIdentifier = accessibilityIdentifier; cell.accessibilityIdentifier = accessibilityIdentifier;
cell.tintColor = UIColor.lokiGreen;
return cell; return cell;
}; };
return item; return item;

@ -231,8 +231,7 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
+ (UIColor *)scrollButtonBackgroundColor + (UIColor *)scrollButtonBackgroundColor
{ {
return Theme.isDarkThemeEnabled ? [UIColor colorWithWhite:0.25f alpha:1.f] return UIColor.lokiDarkerGray;
: [UIColor colorWithWhite:0.95f alpha:1.f];
} }
@end @end

Loading…
Cancel
Save