diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-01 01:47:34 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-03 15:07:00 +0530 |
commit | 0834c979a5c6a41106282ffc8a8be72255f780fa (patch) | |
tree | b69ea97ce2b5eab290f78d749001f0384deed788 /app/src/main/res | |
parent | 494cb5fc4fbe90d7a4b27e1d1114cb20840883d3 (diff) |
app: add Material3 themes
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values-night/themes_material3.xml | 36 | ||||
-rw-r--r-- | app/src/main/res/values/colors_material3.xml | 61 | ||||
-rw-r--r-- | app/src/main/res/values/themes_material3.xml | 36 |
3 files changed, 133 insertions, 0 deletions
diff --git a/app/src/main/res/values-night/themes_material3.xml b/app/src/main/res/values-night/themes_material3.xml new file mode 100644 index 00000000..a06aefe8 --- /dev/null +++ b/app/src/main/res/values-night/themes_material3.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + ~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + ~ SPDX-License-Identifier: GPL-3.0-only + --> + +<resources> + + <style name="APSThemeM3" parent="Theme.Material3.DayNight"> + <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_primaryInverse</item> + </style> +</resources> diff --git a/app/src/main/res/values/colors_material3.xml b/app/src/main/res/values/colors_material3.xml new file mode 100644 index 00000000..d8082f89 --- /dev/null +++ b/app/src/main/res/values/colors_material3.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + ~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + ~ SPDX-License-Identifier: GPL-3.0-only + --> + +<resources> + <color name="md_theme_light_primary">#006591</color> + <color name="md_theme_light_onPrimary">#FFFFFF</color> + <color name="md_theme_light_primaryContainer">#C7E6FF</color> + <color name="md_theme_light_onPrimaryContainer">#001E30</color> + <color name="md_theme_light_secondary">#4F606E</color> + <color name="md_theme_light_onSecondary">#FFFFFF</color> + <color name="md_theme_light_secondaryContainer">#D3E5F5</color> + <color name="md_theme_light_onSecondaryContainer">#0B1D29</color> + <color name="md_theme_light_tertiary">#006494</color> + <color name="md_theme_light_onTertiary">#FFFFFF</color> + <color name="md_theme_light_tertiaryContainer">#C8E6FF</color> + <color name="md_theme_light_onTertiaryContainer">#001E31</color> + <color name="md_theme_light_error">#BA1B1B</color> + <color name="md_theme_light_errorContainer">#FFDAD4</color> + <color name="md_theme_light_onError">#FFFFFF</color> + <color name="md_theme_light_onErrorContainer">#410001</color> + <color name="md_theme_light_background">#FCFCFF</color> + <color name="md_theme_light_onBackground">#1A1C1E</color> + <color name="md_theme_light_surface">#FCFCFF</color> + <color name="md_theme_light_onSurface">#1A1C1E</color> + <color name="md_theme_light_surfaceVariant">#DDE3EA</color> + <color name="md_theme_light_onSurfaceVariant">#41474D</color> + <color name="md_theme_light_outline">#72787E</color> + <color name="md_theme_light_inverseOnSurface">#F0F0F3</color> + <color name="md_theme_light_inverseSurface">#2E3133</color> + <color name="md_theme_light_primaryInverse">#85CEFF</color> + <color name="md_theme_dark_primary">#85CEFF</color> + <color name="md_theme_dark_onPrimary">#00344E</color> + <color name="md_theme_dark_primaryContainer">#004C6F</color> + <color name="md_theme_dark_onPrimaryContainer">#C7E6FF</color> + <color name="md_theme_dark_secondary">#B7C9D9</color> + <color name="md_theme_dark_onSecondary">#21323E</color> + <color name="md_theme_dark_secondaryContainer">#384956</color> + <color name="md_theme_dark_onSecondaryContainer">#D3E5F5</color> + <color name="md_theme_dark_tertiary">#8ACEFF</color> + <color name="md_theme_dark_onTertiary">#003450</color> + <color name="md_theme_dark_tertiaryContainer">#004B70</color> + <color name="md_theme_dark_onTertiaryContainer">#C8E6FF</color> + <color name="md_theme_dark_error">#FFB4A9</color> + <color name="md_theme_dark_errorContainer">#930006</color> + <color name="md_theme_dark_onError">#680003</color> + <color name="md_theme_dark_onErrorContainer">#FFDAD4</color> + <color name="md_theme_dark_background">#1A1C1E</color> + <color name="md_theme_dark_onBackground">#E1E2E5</color> + <color name="md_theme_dark_surface">#1A1C1E</color> + <color name="md_theme_dark_onSurface">#E1E2E5</color> + <color name="md_theme_dark_surfaceVariant">#41474D</color> + <color name="md_theme_dark_onSurfaceVariant">#C1C7CE</color> + <color name="md_theme_dark_outline">#8B9197</color> + <color name="md_theme_dark_inverseOnSurface">#1A1C1E</color> + <color name="md_theme_dark_inverseSurface">#E1E2E5</color> + <color name="md_theme_dark_primaryInverse">#006591</color> + <color name="seed">#003E5B</color> + <color name="error">#BA1B1B</color> +</resources> diff --git a/app/src/main/res/values/themes_material3.xml b/app/src/main/res/values/themes_material3.xml new file mode 100644 index 00000000..047fce33 --- /dev/null +++ b/app/src/main/res/values/themes_material3.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + ~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + ~ SPDX-License-Identifier: GPL-3.0-only + --> + +<resources> + + <style name="APSThemeM3" parent="Theme.Material3.DayNight"> + <item name="colorPrimary">@color/md_theme_light_primary</item> + <item name="colorOnPrimary">@color/md_theme_light_onPrimary</item> + <item name="colorPrimaryContainer">@color/md_theme_light_primaryContainer</item> + <item name="colorOnPrimaryContainer">@color/md_theme_light_onPrimaryContainer</item> + <item name="colorSecondary">@color/md_theme_light_secondary</item> + <item name="colorOnSecondary">@color/md_theme_light_onSecondary</item> + <item name="colorSecondaryContainer">@color/md_theme_light_secondaryContainer</item> + <item name="colorOnSecondaryContainer">@color/md_theme_light_onSecondaryContainer</item> + <item name="colorTertiary">@color/md_theme_light_tertiary</item> + <item name="colorOnTertiary">@color/md_theme_light_onTertiary</item> + <item name="colorTertiaryContainer">@color/md_theme_light_tertiaryContainer</item> + <item name="colorOnTertiaryContainer">@color/md_theme_light_onTertiaryContainer</item> + <item name="colorError">@color/md_theme_light_error</item> + <item name="colorErrorContainer">@color/md_theme_light_errorContainer</item> + <item name="colorOnError">@color/md_theme_light_onError</item> + <item name="colorOnErrorContainer">@color/md_theme_light_onErrorContainer</item> + <item name="android:colorBackground">@color/md_theme_light_background</item> + <item name="colorOnBackground">@color/md_theme_light_onBackground</item> + <item name="colorSurface">@color/md_theme_light_surface</item> + <item name="colorOnSurface">@color/md_theme_light_onSurface</item> + <item name="colorSurfaceVariant">@color/md_theme_light_surfaceVariant</item> + <item name="colorOnSurfaceVariant">@color/md_theme_light_onSurfaceVariant</item> + <item name="colorOutline">@color/md_theme_light_outline</item> + <item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item> + <item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item> + <item name="colorPrimaryInverse">@color/md_theme_light_primaryInverse</item> + </style> +</resources> |