Эх сурвалжийг харах

change color placeholder login view

Marino Faggiana 7 жил өмнө
parent
commit
8ce72b723e

+ 3 - 0
iOSClient/Login/CCLogin.m

@@ -57,6 +57,7 @@
     _baseUrl.textColor = [NCBrandColor sharedInstance].customerText;
     _baseUrl.textColor = [NCBrandColor sharedInstance].customerText;
     _baseUrl.tintColor = [NCBrandColor sharedInstance].customerText;
     _baseUrl.tintColor = [NCBrandColor sharedInstance].customerText;
     _baseUrl.placeholder = NSLocalizedString(@"_login_url_", nil);
     _baseUrl.placeholder = NSLocalizedString(@"_login_url_", nil);
+    [_baseUrl setValue:[UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"];
     [self.baseUrl setFont:[UIFont systemFontOfSize:13]];
     [self.baseUrl setFont:[UIFont systemFontOfSize:13]];
     [self.baseUrl setDelegate:self];
     [self.baseUrl setDelegate:self];
 
 
@@ -69,6 +70,7 @@
     _user.textColor = [NCBrandColor sharedInstance].customerText;
     _user.textColor = [NCBrandColor sharedInstance].customerText;
     _user.tintColor = [NCBrandColor sharedInstance].customerText;
     _user.tintColor = [NCBrandColor sharedInstance].customerText;
     _user.placeholder = NSLocalizedString(@"_username_", nil);
     _user.placeholder = NSLocalizedString(@"_username_", nil);
+    [_user setValue:[UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"];
     [self.user setFont:[UIFont systemFontOfSize:13]];
     [self.user setFont:[UIFont systemFontOfSize:13]];
     [self.user setDelegate:self];
     [self.user setDelegate:self];
 
 
@@ -77,6 +79,7 @@
     _password.textColor = [NCBrandColor sharedInstance].customerText;
     _password.textColor = [NCBrandColor sharedInstance].customerText;
     _password.tintColor = [NCBrandColor sharedInstance].customerText;
     _password.tintColor = [NCBrandColor sharedInstance].customerText;
     _password.placeholder = NSLocalizedString(@"_password_", nil);
     _password.placeholder = NSLocalizedString(@"_password_", nil);
+    [_password setValue:[UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"];
     [self.password setFont:[UIFont systemFontOfSize:13]];
     [self.password setFont:[UIFont systemFontOfSize:13]];
     [self.password setDelegate:self];
     [self.password setDelegate:self];