1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-10 12:33:28 +00:00

[PS-1188] Add new Solarized Dark Theme (#2141)

* PS-1188 Add new Solarized Dark Theme
This commit is contained in:
aj-rosado
2022-10-19 10:57:01 +01:00
committed by GitHub
parent eefc9bd239
commit 4c2f5c05e5
6 changed files with 108 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace Bit.App.Utilities
public const string Dark = "dark";
public const string Black = "black";
public const string Nord = "nord";
public const string SolarizedDark = "solarizeddark";
public static void SetThemeStyle(string name, string autoDarkName, ResourceDictionary resources)
{
@@ -102,6 +103,8 @@ namespace Bit.App.Utilities
return CheckAndGetThemeForMergedDictionaries(typeof(Nord), resources);
case Light:
return CheckAndGetThemeForMergedDictionaries(typeof(Light), resources);
case SolarizedDark:
return CheckAndGetThemeForMergedDictionaries(typeof(SolarizedDark), resources);
default:
if (OsDarkModeEnabled())
{
@@ -111,6 +114,8 @@ namespace Bit.App.Utilities
return CheckAndGetThemeForMergedDictionaries(typeof(Black), resources);
case Nord:
return CheckAndGetThemeForMergedDictionaries(typeof(Nord), resources);
case SolarizedDark:
return CheckAndGetThemeForMergedDictionaries(typeof(SolarizedDark), resources);
default:
return CheckAndGetThemeForMergedDictionaries(typeof(Dark), resources);
}