]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/no_profiles.xml
use colors by reference (makes the theme-aware) and reduce redundant colors
[mobile-ledger.git] / app / src / main / res / layout / no_profiles.xml
index 7be276856df0cce95e8d4808ccdac068fa34723d..ddced2ec5db5c70373b5c12566506fe35cde62fc 100644 (file)
@@ -21,8 +21,8 @@
     android:id="@+id/no_profiles_layout"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/colorPrimaryDark"
-    tools:showIn="@layout/activity_main">
+    android:background="?table_row_dark_bg"
+    >
 
     <TextView
         android:id="@+id/textView"
@@ -31,6 +31,7 @@
         android:layout_marginTop="48dp"
         android:text="@string/text_welcome"
         android:textSize="52sp"
+        android:textColor="?textColor"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
@@ -44,6 +45,7 @@
         android:layout_marginEnd="8dp"
         android:text="@string/text_welcome_profile_needed"
         android:textSize="20sp"
+        android:textColor="?textColor"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toBottomOf="@+id/textView" />
@@ -56,7 +58,7 @@
         android:layout_marginTop="24dp"
         android:layout_marginEnd="8dp"
         android:layout_marginBottom="8dp"
-        android:backgroundTint="@color/colorPrimary"
+        android:backgroundTint="?colorAccent"
         android:drawablePadding="16dp"
         android:text="@string/create_profile_label"
         app:layout_constraintBottom_toBottomOf="parent"