diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-27 16:22:40 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-03-27 16:10:24 +0200 |
commit | 4fcb8c47923a6ef76d606ca03aebf2a8531136fa (patch) | |
tree | 40cdec3d885d20f8070eb2d9c41f63080ca3fd84 /ui/src/main/res/values-night | |
parent | fb05b358c07d8dca44ee472dbd0edbfa0a564336 (diff) |
ui: introduce a fresh set of Material3 themes and migrate to them
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/res/values-night')
-rw-r--r-- | ui/src/main/res/values-night/colors.xml | 23 | ||||
-rw-r--r-- | ui/src/main/res/values-night/themes.xml | 31 |
2 files changed, 31 insertions, 23 deletions
diff --git a/ui/src/main/res/values-night/colors.xml b/ui/src/main/res/values-night/colors.xml deleted file mode 100644 index 586486da..00000000 --- a/ui/src/main/res/values-night/colors.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <!-- Base palette --> - <color name="primary_color">#ff212121</color> - <color name="primary_light_color">#ff484848</color> - <color name="primary_dark_color">#ff000000</color> - <color name="secondary_color">#ff4285f4</color> - <color name="secondary_light_color">#ff80b4ff</color> - <color name="secondary_dark_color">#ff0059c1</color> - <color name="primary_text_color">#ffffffff</color> - <color name="secondary_text_color">#ffffffff</color> - - <!-- Theme variables --> - <color name="list_multiselect_background">#1aeeeeee</color> - <color name="status_bar_color">@color/primary_color</color> - <color name="navigation_bar_color">#aa212121</color> - - <!-- Log viewer tag colors --> - <color name="debug_tag_color">#aaaaaa</color> - <color name="error_tag_color">#ff0000</color> - <color name="info_tag_color">#00ff00</color> - <color name="warning_tag_color">#ffff00</color> -</resources> diff --git a/ui/src/main/res/values-night/themes.xml b/ui/src/main/res/values-night/themes.xml new file mode 100644 index 00000000..9187e48a --- /dev/null +++ b/ui/src/main/res/values-night/themes.xml @@ -0,0 +1,31 @@ + +<resources> + <style name="WireGuardTheme" parent="Theme.Material3.Dark"> + <item name="colorPrimary">@color/md_theme_dark_primary</item> + <item name="colorOnPrimary">@color/md_theme_dark_onPrimary</item> + <item name="colorPrimaryContainer">@color/md_theme_dark_primaryContainer</item> + <item name="colorOnPrimaryContainer">@color/md_theme_dark_onPrimaryContainer</item> + <item name="colorSecondary">@color/md_theme_dark_secondary</item> + <item name="colorOnSecondary">@color/md_theme_dark_onSecondary</item> + <item name="colorSecondaryContainer">@color/md_theme_dark_secondaryContainer</item> + <item name="colorOnSecondaryContainer">@color/md_theme_dark_onSecondaryContainer</item> + <item name="colorTertiary">@color/md_theme_dark_tertiary</item> + <item name="colorOnTertiary">@color/md_theme_dark_onTertiary</item> + <item name="colorTertiaryContainer">@color/md_theme_dark_tertiaryContainer</item> + <item name="colorOnTertiaryContainer">@color/md_theme_dark_onTertiaryContainer</item> + <item name="colorError">@color/md_theme_dark_error</item> + <item name="colorErrorContainer">@color/md_theme_dark_errorContainer</item> + <item name="colorOnError">@color/md_theme_dark_onError</item> + <item name="colorOnErrorContainer">@color/md_theme_dark_onErrorContainer</item> + <item name="android:colorBackground">@color/md_theme_dark_background</item> + <item name="colorOnBackground">@color/md_theme_dark_onBackground</item> + <item name="colorSurface">@color/md_theme_dark_surface</item> + <item name="colorOnSurface">@color/md_theme_dark_onSurface</item> + <item name="colorSurfaceVariant">@color/md_theme_dark_surfaceVariant</item> + <item name="colorOnSurfaceVariant">@color/md_theme_dark_onSurfaceVariant</item> + <item name="colorOutline">@color/md_theme_dark_outline</item> + <item name="colorOnSurfaceInverse">@color/md_theme_dark_inverseOnSurface</item> + <item name="colorSurfaceInverse">@color/md_theme_dark_inverseSurface</item> + <item name="colorPrimaryInverse">@color/md_theme_dark_inversePrimary</item> + </style> +</resources> |