update grey background color

pull/689/head
Ryan Zhao 2 years ago
parent 4394e64d9b
commit 67a9047df7

@ -25,10 +25,15 @@ final class NewClosedGroupVC: BaseVC, UITableViewDataSource, UITableViewDelegate
// MARK: - Components
private lazy var nameTextField = TextField(
placeholder: "vc_create_closed_group_text_field_hint".localized(),
customHeight: 48
)
private lazy var nameTextField: TextField = {
let result = TextField(
placeholder: "vc_create_closed_group_text_field_hint".localized(),
customHeight: 48
)
result.layer.borderColor = Colors.border.withAlphaComponent(0.5).cgColor
result.layer.cornerRadius = 13
return result
}()
private lazy var searchBar: ContactsSearchBar = {
let result = ContactsSearchBar()
@ -64,8 +69,7 @@ final class NewClosedGroupVC: BaseVC, UITableViewDataSource, UITableViewDelegate
override func viewDidLoad() {
super.viewDidLoad()
setUpGradientBackground()
view.backgroundColor = Colors.navigationBarBackground
setUpNavBarStyle()
let customTitleFontSize = Values.largeFontSize
@ -108,16 +112,16 @@ final class NewClosedGroupVC: BaseVC, UITableViewDataSource, UITableViewDelegate
let nameTextFieldContainer: UIView = UIView()
nameTextFieldContainer.addSubview(nameTextField)
nameTextField.pin(.leading, to: .leading, of: nameTextFieldContainer, withInset: Values.largeSpacing)
nameTextField.pin(.leading, to: .leading, of: nameTextFieldContainer, withInset: Values.mediumSpacing)
nameTextField.pin(.top, to: .top, of: nameTextFieldContainer, withInset: Values.mediumSpacing)
nameTextFieldContainer.pin(.trailing, to: .trailing, of: nameTextField, withInset: Values.largeSpacing)
nameTextFieldContainer.pin(.trailing, to: .trailing, of: nameTextField, withInset: Values.mediumSpacing)
nameTextFieldContainer.pin(.bottom, to: .bottom, of: nameTextField)
mainStackView.addArrangedSubview(nameTextFieldContainer)
let searchBarContainer: UIView = UIView()
searchBarContainer.addSubview(searchBar)
searchBar.pin(.leading, to: .leading, of: searchBarContainer, withInset: Values.largeSpacing)
searchBarContainer.pin(.trailing, to: .trailing, of: searchBar, withInset: Values.largeSpacing)
searchBar.pin(.leading, to: .leading, of: searchBarContainer, withInset: Values.smallSpacing)
searchBarContainer.pin(.trailing, to: .trailing, of: searchBar, withInset: Values.smallSpacing)
searchBar.pin([ UIView.VerticalEdge.top, UIView.VerticalEdge.bottom ], to: searchBarContainer)
mainStackView.addArrangedSubview(searchBarContainer)

@ -287,7 +287,7 @@ final class SettingsVC: BaseVC, AvatarViewHelperDelegate {
return image!
}
let backgroundColor = isLightMode ? UIColor(hex: 0xFCFCFC) : UIColor(hex: 0x1B1B1B)
let backgroundColor = isLightMode ? UIColor(hex: 0xF9F9F9) : UIColor(hex: 0x1B1B1B)
button.setBackgroundImage(getImage(withColor: backgroundColor), for: UIControl.State.normal)
let selectedColor = isLightMode ? UIColor(hex: 0xDFDFDF) : UIColor(hex: 0x0C0C0C)

@ -36,7 +36,7 @@ final class SAEScreenLockViewController: ScreenLockViewController, ScreenLockVie
let layer: CAGradientLayer = CAGradientLayer()
let gradientStartColor: UIColor = (LKAppModeUtilities.isLightMode ?
UIColor(rgbHex: 0xFCFCFC) :
UIColor(rgbHex: 0xF9F9F9) :
UIColor(rgbHex: 0x171717)
)
let gradientEndColor: UIColor = (LKAppModeUtilities.isLightMode ?

@ -54,6 +54,8 @@ public extension UISearchBar {
let clearImage = #imageLiteral(resourceName: "searchbar_clear").withTint(Colors.text)!
setImage(clearImage, for: .clear, state: .normal)
let searchTextField: UITextField = self.searchTextField
searchTextField.borderStyle = .none
searchTextField.layer.cornerRadius = 18
searchTextField.backgroundColor = .white // The search bar background color
searchTextField.textColor = Colors.text
searchTextField.attributedPlaceholder = NSAttributedString(string: "Search Contacts", attributes: [ .foregroundColor : Colors.searchBarPlaceholder ])

@ -5,9 +5,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "252",
"green" : "252",
"red" : "252"
"blue" : "0xF9",
"green" : "0xF9",
"red" : "0xF9"
}
},
"idiom" : "universal"

@ -33,7 +33,7 @@ final public class Gradients : NSObject {
@objc public static var defaultBackground: Gradient {
switch AppModeManager.shared.currentAppMode {
case .light: return Gradient(start: UIColor(hex: 0xFCFCFC), end: UIColor(hex: 0xFFFFFF))
case .light: return Gradient(start: UIColor(hex: 0xF9F9F9), end: UIColor(hex: 0xFFFFFF))
case .dark: return Gradient(start: UIColor(hex: 0x171717), end: UIColor(hex: 0x121212))
}
}

@ -52,7 +52,7 @@ public extension UIViewController {
navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default)
navigationBar.shadowImage = UIImage()
navigationBar.isTranslucent = false
let color = isLightMode ? UIColor(hex: 0xFCFCFC) : UIColor(hex: 0x161616)
let color = isLightMode ? UIColor(hex: 0xF9F9F9) : UIColor(hex: 0x161616)
navigationBar.barTintColor = color
navigationBar.backgroundColor = color
let backgroundImage = UIImage(color: color)

@ -42,7 +42,7 @@ NSString *NSStringForScreenLockUIState(ScreenLockUIState value)
self.view.backgroundColor = UIColor.clearColor;
CAGradientLayer *layer = [CAGradientLayer new];
layer.frame = UIScreen.mainScreen.bounds;
UIColor *gradientStartColor = LKAppModeUtilities.isLightMode ? [UIColor colorWithRGBHex:0xFCFCFC] : [UIColor colorWithRGBHex:0x171717];
UIColor *gradientStartColor = LKAppModeUtilities.isLightMode ? [UIColor colorWithRGBHex:0xF9F9F9] : [UIColor colorWithRGBHex:0x171717];
UIColor *gradientEndColor = LKAppModeUtilities.isLightMode ? [UIColor colorWithRGBHex:0xFFFFFF] : [UIColor colorWithRGBHex:0x121212];
layer.colors = @[ (id)gradientStartColor.CGColor, (id)gradientEndColor.CGColor ];
[self.view.layer insertSublayer:layer atIndex:0];

Loading…
Cancel
Save