gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-android] 03/09: [wallet] Added colors created with M3 Theme


From: gnunet
Subject: [taler-taler-android] 03/09: [wallet] Added colors created with M3 Theme Builder
Date: Tue, 31 Jan 2023 14:39:51 +0100

This is an automated email from the git hooks/post-receive script.

torsten-grote pushed a commit to branch master
in repository taler-android.

commit 4f3162683e65b48c038cda2d7de8697124e16d22
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Wed Jan 11 21:46:06 2023 -0600

    [wallet] Added colors created with M3 Theme Builder
---
 wallet/src/main/res/values-night/styles.xml | 51 +++++++++++++++++++++++
 wallet/src/main/res/values/colors.xml       | 63 +++++++++++++++++++++++++++++
 wallet/src/main/res/values/styles.xml       | 30 +++++++++++++-
 3 files changed, 143 insertions(+), 1 deletion(-)

diff --git a/wallet/src/main/res/values-night/styles.xml 
b/wallet/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..9fba037
--- /dev/null
+++ b/wallet/src/main/res/values-night/styles.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+  ~ This file is part of GNU Taler
+  ~ (C) 2023 Taler Systems S.A.
+  ~
+  ~ GNU Taler is free software; you can redistribute it and/or modify it under 
the
+  ~ terms of the GNU General Public License as published by the Free Software
+  ~ Foundation; either version 3, or (at your option) any later version.
+  ~
+  ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT 
ANY
+  ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
FOR
+  ~ A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+  ~
+  ~ You should have received a copy of the GNU General Public License along 
with
+  ~ GNU Taler; see the file COPYING.  If not, see 
<http://www.gnu.org/licenses/>
+  -->
+
+
+<resources>
+
+    <style name="AppTheme" parent="Theme.Material3.Dark">
+        <item name="windowActionModeOverlay">true</item>
+
+        <!-- Material 3 theme builder -->
+        <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>
diff --git a/wallet/src/main/res/values/colors.xml 
b/wallet/src/main/res/values/colors.xml
index ba2804e..ce76c1d 100644
--- a/wallet/src/main/res/values/colors.xml
+++ b/wallet/src/main/res/values/colors.xml
@@ -18,4 +18,67 @@
     <color name="colorPrimary">#3047a3</color>
     <color name="colorPrimaryDark">#152238</color>
     <color name="colorAccent">#BB1D24</color>
+
+    <!-- Material 3 theme builder -->
+    <color name="seed">#3047a3</color>
+    <color name="md_theme_light_primary">#4157B4</color>
+    <color name="md_theme_light_onPrimary">#FFFFFF</color>
+    <color name="md_theme_light_primaryContainer">#DDE1FF</color>
+    <color name="md_theme_light_onPrimaryContainer">#001355</color>
+    <color name="md_theme_light_secondary">#2B5EA7</color>
+    <color name="md_theme_light_onSecondary">#FFFFFF</color>
+    <color name="md_theme_light_secondaryContainer">#D7E3FF</color>
+    <color name="md_theme_light_onSecondaryContainer">#001B3E</color>
+    <color name="md_theme_light_tertiary">#B91B23</color>
+    <color name="md_theme_light_onTertiary">#FFFFFF</color>
+    <color name="md_theme_light_tertiaryContainer">#FFDAD7</color>
+    <color name="md_theme_light_onTertiaryContainer">#410004</color>
+    <color name="md_theme_light_error">#BA1A1A</color>
+    <color name="md_theme_light_errorContainer">#FFDAD6</color>
+    <color name="md_theme_light_onError">#FFFFFF</color>
+    <color name="md_theme_light_onErrorContainer">#410002</color>
+    <color name="md_theme_light_background">#F8FDFF</color>
+    <color name="md_theme_light_onBackground">#001F25</color>
+    <color name="md_theme_light_surface">#F8FDFF</color>
+    <color name="md_theme_light_onSurface">#001F25</color>
+    <color name="md_theme_light_surfaceVariant">#E2E1EC</color>
+    <color name="md_theme_light_onSurfaceVariant">#45464F</color>
+    <color name="md_theme_light_outline">#767680</color>
+    <color name="md_theme_light_inverseOnSurface">#D6F6FF</color>
+    <color name="md_theme_light_inverseSurface">#00363F</color>
+    <color name="md_theme_light_inversePrimary">#B8C3FF</color>
+    <color name="md_theme_light_shadow">#000000</color>
+    <color name="md_theme_light_surfaceTint">#4157B4</color>
+    <color name="md_theme_light_outlineVariant">#C6C5D0</color>
+    <color name="md_theme_light_scrim">#000000</color>
+    <color name="md_theme_dark_primary">#B8C3FF</color>
+    <color name="md_theme_dark_onPrimary">#042584</color>
+    <color name="md_theme_dark_primaryContainer">#263E9A</color>
+    <color name="md_theme_dark_onPrimaryContainer">#DDE1FF</color>
+    <color name="md_theme_dark_secondary">#AAC7FF</color>
+    <color name="md_theme_dark_onSecondary">#002F65</color>
+    <color name="md_theme_dark_secondaryContainer">#00458E</color>
+    <color name="md_theme_dark_onSecondaryContainer">#D7E3FF</color>
+    <color name="md_theme_dark_tertiary">#FFB3AD</color>
+    <color name="md_theme_dark_onTertiary">#680009</color>
+    <color name="md_theme_dark_tertiaryContainer">#930012</color>
+    <color name="md_theme_dark_onTertiaryContainer">#FFDAD7</color>
+    <color name="md_theme_dark_error">#FFB4AB</color>
+    <color name="md_theme_dark_errorContainer">#93000A</color>
+    <color name="md_theme_dark_onError">#690005</color>
+    <color name="md_theme_dark_onErrorContainer">#FFDAD6</color>
+    <color name="md_theme_dark_background">#001F25</color>
+    <color name="md_theme_dark_onBackground">#A6EEFF</color>
+    <color name="md_theme_dark_surface">#001F25</color>
+    <color name="md_theme_dark_onSurface">#A6EEFF</color>
+    <color name="md_theme_dark_surfaceVariant">#45464F</color>
+    <color name="md_theme_dark_onSurfaceVariant">#C6C5D0</color>
+    <color name="md_theme_dark_outline">#90909A</color>
+    <color name="md_theme_dark_inverseOnSurface">#001F25</color>
+    <color name="md_theme_dark_inverseSurface">#A6EEFF</color>
+    <color name="md_theme_dark_inversePrimary">#4157B4</color>
+    <color name="md_theme_dark_shadow">#000000</color>
+    <color name="md_theme_dark_surfaceTint">#B8C3FF</color>
+    <color name="md_theme_dark_outlineVariant">#45464F</color>
+    <color name="md_theme_dark_scrim">#000000</color>
 </resources>
diff --git a/wallet/src/main/res/values/styles.xml 
b/wallet/src/main/res/values/styles.xml
index 4ae91ac..3cd4cf4 100644
--- a/wallet/src/main/res/values/styles.xml
+++ b/wallet/src/main/res/values/styles.xml
@@ -16,8 +16,36 @@
 
 <resources>
 
-    <style name="AppTheme" parent="Theme.Material3.DayNight">
+    <style name="AppTheme" parent="Theme.Material3.Light">
         <item name="windowActionModeOverlay">true</item>
+
+        <!-- Material 3 theme builder -->
+        <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_inversePrimary</item>
     </style>
 
     <style name="AppTheme.NoActionBar">

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]