]> git.ktnx.net Git - mobile-ledger.git/commitdiff
more material styles
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 21 May 2020 03:32:23 +0000 (03:32 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 21 May 2020 03:32:23 +0000 (03:32 +0000)
app/src/main/res/layout/account_summary_row.xml
app/src/main/res/layout/nav_header_layout.xml
app/src/main/res/layout/transaction_list_row.xml
app/src/main/res/layout/transaction_list_row_accounts_table_row.xml

index 49220a9390a61f26eb3cbb698ba685603c746d36..08d18b98556003b6ff1be9b7c082d0e7754ab7b0 100644 (file)
@@ -47,7 +47,7 @@
         android:longClickable="true"
         android:paddingStart="8dp"
         android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more."
-        android:textAppearance="@style/TextAppearance.AppCompat.Medium"
+        android:textAppearance="@android:style/TextAppearance.Material.Medium"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintStart_toEndOf="@id/account_row_check"
         app:layout_constraintTop_toTopOf="parent"
index f51fdb87667afc0d2e4f2ca8ffcb221418e01c04..88302e873d42e354141e76f00e9545da80cad0d3 100644 (file)
@@ -26,7 +26,6 @@
     android:gravity="center_vertical"
     android:orientation="horizontal"
     android:padding="@dimen/activity_vertical_margin"
-    android:theme="@style/ThemeOverlay.AppCompat.Dark"
     app:layout_constraintTop_toTopOf="parent"
     tools:showIn="@layout/main_navigation">
 
@@ -44,6 +43,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:text="@string/app_name"
+            android:textColor="?colorOnPrimary"
             android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
 
         <TextView
@@ -51,6 +51,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="dummy version"
+            android:textColor="?attr/colorOnPrimary"
             tools:ignore="HardcodedText" />
     </LinearLayout>
 
index 6b7d15a5574ea2341d0ce5f39cdd43ccd359d2f2..966d9d28d5ad76f5384f3918a3a0201e0fc9f30a 100644 (file)
@@ -59,7 +59,8 @@
                     android:layout_height="wrap_content"
                     android:layout_weight="5"
                     android:text="---."
-                    android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
+                    android:textAppearance="@android:style/TextAppearance.Material.Medium"
+                    android:textColor="?textColor"
                     tools:ignore="HardcodedText" />
 
             </LinearLayout>
index 8e059a7235378bae422397c6a12ef3566514a0a6..67a5add2407258792c14f375d1b93a3264c6d2a9 100644 (file)
@@ -36,7 +36,7 @@
             android:layout_height="wrap_content"
             android:text="another acc name"
             android:textAlignment="viewStart"
-            android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
+            android:textAppearance="@android:style/TextAppearance.Material.Small"
             android:textColor="@android:color/secondary_text_light"
             android:textStyle="normal"
             tools:ignore="HardcodedText" />
@@ -49,7 +49,7 @@
             android:paddingStart="8dp"
             android:text="account comment"
             android:textAlignment="viewStart"
-            android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
+            android:textAppearance="@android:style/TextAppearance.Material.Small"
             android:textColor="@android:color/secondary_text_light"
             android:textStyle="italic"
             tools:ignore="HardcodedText,RtlSymmetry" />