Skip to content

Commit 162f372

Browse files
committed
feat(mobile): enhance UI tint color configuration
Signed-off-by: Innei <tukon479@gmail.com>
1 parent ea35993 commit 162f372

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

apps/mobile/scripts/with-follow-app-delegate.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ const withFollowAppDelegate = (config) => {
99
src: newContents,
1010
anchor: "// You can add your custom initial props in the dictionary below.",
1111
newSrc: `
12-
[UIView appearanceWhenContainedInInstancesOfClasses:@[[UIAlertController class]]].tintColor =
13-
[UIColor colorWithRed:255.0/255.0
14-
green:92.0/255.0
15-
blue:0.0/255.0
16-
alpha:1.0];
17-
self.window.tintColor = [UIColor colorWithRed:255.0/255.0
18-
green:92.0/255.0
19-
blue:0.0/255.0
20-
alpha:1.0];
12+
UIColor* tintColor = [UIColor colorWithRed:255.0/255.0 green:92.0/255.0 blue:0.0/255.0 alpha:1.0];
13+
[UIView appearanceWhenContainedInInstancesOfClasses:@[[UIAlertController class]]].tintColor = tintColor;
14+
self.window.tintColor = tintColor;
15+
16+
[[UIButton appearance] setTintColor:tintColor];
17+
[[UISwitch appearance] setOnTintColor:tintColor];
18+
[[UIView appearance] setTintColor:tintColor];
2119
`,
2220
offset: 3,
2321
tag: "custom tint color",

0 commit comments

Comments
 (0)