Last active
May 29, 2020 15:10
-
-
Save ChaseFlorell/45db24304f1146b9d6d44ae179a5c687 to your computer and use it in GitHub Desktop.
Revisions
-
ChaseFlorell revised this gist
May 29, 2020 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ ## Android   -
ChaseFlorell created this gist
May 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <Style TargetType="Switch"> <Setter Property="OnColor" Value="{DynamicResource SwitchOnColor}" /> <Setter Property="ThumbColor" Value="{DynamicResource SwitchOnThumbColor}" /> <Style.Triggers> <Trigger TargetType="Switch" Property="IsToggled" Value="False"> <Setter Property="ThumbColor" Value="{DynamicResource SwitchOffThumbColor}" /> </Trigger> </Style.Triggers> </Style> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <OnPlatform x:Key="SwitchOnThumbColor" x:TypeArguments="Color"> <On Platform="Android" Value="#fb9e40"/> <!-- AccentColor --> </OnPlatform> <OnPlatform x:Key="SwitchOffThumbColor" x:TypeArguments="Color"> <On Platform="Android" Value="#f3f4f4"/> <!-- TextColor --> </OnPlatform> <OnPlatform x:Key="SwitchOnColor" x:TypeArguments="Color"> <On Platform="iOS" Value="#fb9e40"/> <!-- AccentColor --> <On Platform="Android" Value="#dfe0e1"/> <!-- Gray similar to iOS --> </OnPlatform>