feat(mobile): enhance UI tint color configuration

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-03-03 16:50:16 +08:00
parent ea35993754
commit 162f372d60
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 7 additions and 9 deletions

View File

@ -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",