feat(mobile): enhance UI tint color configuration
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
ea35993754
commit
162f372d60
|
|
@ -9,15 +9,13 @@ const withFollowAppDelegate = (config) => {
|
|||
src: newContents,
|
||||
anchor: "// You can add your custom initial props in the dictionary below.",
|
||||
newSrc: `
|
||||
[UIView appearanceWhenContainedInInstancesOfClasses:@[[UIAlertController class]]].tintColor =
|
||||
[UIColor colorWithRed:255.0/255.0
|
||||
green:92.0/255.0
|
||||
blue:0.0/255.0
|
||||
alpha:1.0];
|
||||
self.window.tintColor = [UIColor colorWithRed:255.0/255.0
|
||||
green:92.0/255.0
|
||||
blue:0.0/255.0
|
||||
alpha:1.0];
|
||||
UIColor* tintColor = [UIColor colorWithRed:255.0/255.0 green:92.0/255.0 blue:0.0/255.0 alpha:1.0];
|
||||
[UIView appearanceWhenContainedInInstancesOfClasses:@[[UIAlertController class]]].tintColor = tintColor;
|
||||
self.window.tintColor = tintColor;
|
||||
|
||||
[[UIButton appearance] setTintColor:tintColor];
|
||||
[[UISwitch appearance] setOnTintColor:tintColor];
|
||||
[[UIView appearance] setTintColor:tintColor];
|
||||
`,
|
||||
offset: 3,
|
||||
tag: "custom tint color",
|
||||
|
|
|
|||
Loading…
Reference in New Issue