Add more text colors

This commit is contained in:
Super12138 2024-08-15 18:22:33 +08:00
parent bf674a5151
commit 489e2e4d5c
9 changed files with 25 additions and 20 deletions

View file

@ -67,7 +67,7 @@
android:layout_marginTop="10dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="20sp" />
<TextView
@ -103,7 +103,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:text="@string/check_update"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp" />
</LinearLayout>
@ -130,7 +130,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:text="@string/view_source"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp" />
</LinearLayout>
@ -157,7 +157,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:text="@string/author"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp" />
</LinearLayout>

View file

@ -50,7 +50,8 @@
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="20dp"
android:text="@string/error_tips" />
android:text="@string/error_tips"
android:textColor="?attr/colorOnSurfaceVariant" />
<TextView
android:id="@+id/crash_log"
@ -61,6 +62,7 @@
android:layout_marginEnd="20dp"
android:fontFamily="monospace"
android:text="@string/no_crash_logs"
android:textColor="?attr/colorOnSurface"
android:textIsSelectable="true"
android:textSize="13sp" />
</LinearLayout>

View file

@ -26,7 +26,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="25sp" />
@ -35,7 +35,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp"
android:visibility="gone" />
@ -44,7 +44,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp" />
<TextView
@ -53,7 +53,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="45dp"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -27,7 +27,7 @@
android:layout_height="wrap_content"
android:text="@string/add_task"
android:textAlignment="center"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="25sp" />
<com.google.android.material.textfield.TextInputLayout
@ -137,7 +137,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp"
android:visibility="gone" />
@ -162,7 +162,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/delete_one"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:visibility="gone"
app:backgroundTint="?attr/colorErrorContainer" />

View file

@ -14,7 +14,8 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/backup_tips" />
android:text="@string/backup_tips"
android:textColor="?attr/colorOnSurfaceVariant" />
<TextView
android:id="@+id/json_output"
@ -23,7 +24,7 @@
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:fontFamily="monospace"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textIsSelectable="true" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -15,7 +15,8 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/restore_tips" />
android:text="@string/restore_tips"
android:textColor="?attr/colorOnSurfaceVariant" />
<CheckBox
android:id="@+id/overwrite_data"

View file

@ -45,7 +45,7 @@
android:layout_marginStart="10dp"
android:text="0"
android:textAppearance="?attr/textAppearanceDisplaySmall"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />
<TextView
@ -53,7 +53,7 @@
android:layout_height="wrap_content"
android:text="/"
android:textAppearance="?attr/textAppearanceDisplayMedium"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />
<TextView
@ -63,7 +63,7 @@
android:layout_marginEnd="10dp"
android:text="0"
android:textAppearance="?attr/textAppearanceDisplayMedium"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />
</LinearLayout>

View file

@ -10,6 +10,7 @@
android:layout_height="wrap_content"
android:text="@string/no_tasks"
android:textAlignment="center"
android:textColor="?attr/colorOnSurfaceVariant"
android:textSize="14sp" />
</LinearLayout>

View file

@ -32,7 +32,7 @@
android:layout_marginTop="18dp"
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="20sp" />
<TextView
@ -41,7 +41,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/colorOnSurface"
android:textSize="11sp" />
</LinearLayout>