Modernize settings UI

This commit is contained in:
ajp_anton
2026-06-08 00:10:37 +00:00
parent 544a2cc56a
commit 805d12c62e
32 changed files with 713 additions and 223 deletions
+91 -15
View File
@@ -33,10 +33,10 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/clock_custom_format_title"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textAllCaps="true"
android:letterSpacing="0.03"
android:text="@string/clock_custom_format_statusbar_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<CheckBox
@@ -66,21 +66,38 @@
android:minLines="2"
android:scrollHorizontally="false"
android:singleLine="false" />
<com.google.android.material.button.MaterialButton
android:id="@+id/clock_font_picker_button"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/clock_font_picker_button" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="0.03"
android:text="@string/clock_custom_format_drawer_clock_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<CheckBox
android:id="@+id/drawer_clock_custom_format_enabled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="8dp"
android:text="@string/drawer_clock_custom_format_enabled" />
<LinearLayout
@@ -104,12 +121,37 @@
android:scrollHorizontally="false"
android:singleLine="false" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="0.03"
android:text="@string/clock_custom_format_drawer_date_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<CheckBox
android:id="@+id/drawer_date_custom_format_enabled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="8dp"
android:text="@string/drawer_date_custom_format_enabled" />
<LinearLayout
@@ -133,6 +175,39 @@
android:scrollHorizontally="false"
android:singleLine="false" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="0.03"
android:text="@string/clock_custom_format_tools_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<com.google.android.material.button.MaterialButton
android:id="@+id/clock_font_picker_button"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/clock_font_picker_button" />
<TextView
android:id="@+id/clock_custom_format_help_toggle"
@@ -140,7 +215,8 @@
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/clock_custom_format_help_show"
android:textAppearance="?attr/textAppearanceCaption" />
android:textAppearance="?attr/textAppearanceBody1"
android:textColor="@color/sbt_accent_dark" />
<LinearLayout
android:id="@+id/clock_custom_format_help_container"
@@ -153,7 +229,7 @@
android:id="@+id/clock_custom_format_help"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginTop="8dp"
android:text="@string/clock_custom_format_help_common"
android:textAppearance="?attr/textAppearanceCaption" />