]> git.ktnx.net Git - mobile-ledger.git/commitdiff
more themed colors usage
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 May 2020 19:17:09 +0000 (22:17 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 May 2020 19:17:09 +0000 (22:17 +0300)
app/src/main/res/drawable-anydpi-v21/fade_down_white.xml
app/src/main/res/layout/fragment_new_transaction.xml
app/src/main/res/layout/main_app_layout.xml
app/src/main/res/layout/transaction_list_row.xml
app/src/main/res/values/colors.xml
app/src/main/res/values/styles.xml

index 7b541263eaf10cd5d80f445009fb782e1f6818db..fb22e0c10945e1244218d3a1432c105d1c614f37 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?><!--
-  ~ Copyright © 2019 Damyan Ivanov.
+  ~ Copyright © 2020 Damyan Ivanov.
   ~ This file is part of MoLe.
   ~ MoLe is free software: you can distribute it and/or modify it
   ~ under the term of the GNU General Public License as published by
@@ -17,8 +17,9 @@
 
 <shape xmlns:android="http://schemas.android.com/apk/res/android">
     <gradient
-        android:endColor="@color/backgroundColor"
-        android:startColor="@color/backgroundColorTransparent"
+        android:endColor="?android:attr/colorBackground"
+        android:startColor="@android:color/transparent"
+        android:type="linear"
         android:angle="270"
         />
 </shape>
\ No newline at end of file
index 4ec6e4b83ef16ec530f72e71fca682833d5e3dc9..73e58459b01ce141237da8694caab028139135a6 100644 (file)
@@ -65,7 +65,7 @@
         android:layout_marginEnd="@dimen/fab_margin"
         android:layout_marginBottom="@dimen/fab_margin"
         android:padding="@dimen/fab_margin"
-        android:tint="@android:color/white"
+        android:tint="?android:attr/colorBackground"
         android:visibility="visible"
         app:backgroundTint="?colorAccent"
         app:layout_constraintBottom_toBottomOf="parent"
index 4b778d64ba31c0ca44709f068fda1d657a9c5f58..47d2df6825fdd87ce3b70687beb96f8b5f6d2b7f 100644 (file)
@@ -21,7 +21,7 @@
     android:id="@+id/main_app_layout"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/backgroundColor"
+    android:background="?android:attr/colorBackground"
     android:orientation="vertical"
     android:theme="@style/AppTheme.AppBarOverlay"
     tools:context=".ui.activity.MainActivity">
index ca1c0fa076fd737c29fa56036afbd160549ac23f..6b7d15a5574ea2341d0ce5f39cdd43ccd359d2f2 100644 (file)
             android:paddingStart="4dp"
             android:paddingEnd="4dp"
             android:text="---------"
-            android:textColor="@android:color/white"
+            android:textColor="?android:attr/colorBackground"
             android:textStyle="bold"
             app:layout_constraintStart_toStartOf="parent"
             tools:ignore="HardcodedText" />
             android:paddingStart="4dp"
             android:paddingEnd="4dp"
             android:text="--.--.----"
-            android:textColor="@android:color/white"
+            android:textColor="?android:attr/colorBackground"
             android:textStyle="bold"
             app:layout_constraintEnd_toEndOf="parent"
             tools:ignore="HardcodedText" />
index 72b935289410b48add550efc2283e23252f971d7..1fb4add32903363714ab603955ce31b0007f4dfb 100644 (file)
@@ -20,7 +20,6 @@
     <color name="colorPrimary">#935FF2</color>
     <color name="colorPrimaryDark">#3e148c</color>
     <color name="colorAccent">#653BD0</color>
-    <color name="drawer_background">#ffffffff</color>
     <color name="table_row_dark_bg">#286c33d4</color>
     <color name="table_row_light_bg">#28ddcbff</color>
     <color name="header_border">#804a148c</color>
index cf076fb137e765b5a387eec93665959cdc5abdec..64b7f91fc23ff12f3ba309d5868b7afd0239a43b 100644 (file)
@@ -23,8 +23,9 @@
     <!-- target primary color: #935FF2 -->
     <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
         <item name="colorPrimary">#935FF2</item>
+        <item name="colorOnPrimary">?android:attr/colorBackground</item>
         <item name="colorAccent">#653BD0</item>
-        <item name="drawer_background">#ffffffff</item>
+        <item name="drawer_background">?android:attr/popupBackground</item>
         <item name="table_row_dark_bg">#286c33d4</item>
         <item name="table_row_light_bg">#28ddcbff</item>
         <item name="windowActionBar">false</item>
 
     <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
 
-    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
+    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.DayNight" />
 
     <style name="nav_button">
         <item name="android:layout_width">match_parent</item>