HapeLee 5 месяцев назад
Родитель
Сommit
d5ece78383

+ 9 - 0
app/src/main/res/layout/dialog_font_config.xml

@@ -45,6 +45,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginHorizontal="16dp"
+        android:layout_marginBottom="8dp"
         android:gravity="center_horizontal">
 
         <com.google.android.material.button.MaterialButton
@@ -74,6 +75,14 @@
             android:checkable="true"
             android:focusable="true"/>
 
+    </com.google.android.material.button.MaterialButtonGroup>
+
+    <com.google.android.material.button.MaterialButtonGroup
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginHorizontal="16dp"
+        android:gravity="center_horizontal">
+
         <com.google.android.material.button.MaterialButton
             android:id="@+id/textFontWeightConverter"
             style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"

+ 26 - 14
app/src/main/res/layout/dialog_read_info.xml

@@ -32,13 +32,32 @@
 
     </LinearLayout>
 
-    <TextView
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:paddingBottom="8dp"
-        android:text="@string/global_setting"
-        android:textSize="14sp"
-        android:textStyle="bold" />
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:paddingBottom="8dp"
+            android:text="@string/global_setting"
+            android:textSize="14sp"
+            android:textStyle="bold" />
+
+        <Space
+            android:layout_width="0dp"
+            android:layout_height="match_parent"
+            android:layout_weight="1" />
+
+        <io.legado.app.ui.widget.AccentColorButton
+            android:id="@+id/btn_header_font"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            style="@style/Widget.Material3Expressive.Button.OutlinedButton"
+            android:text="@string/text_font" />
+
+    </LinearLayout>
+
 
     <LinearLayout
         android:layout_width="match_parent"
@@ -57,13 +76,6 @@
             style="@style/Widget.Material3Expressive.Button.OutlinedButton"
             android:text="@string/padding"/>
 
-        <io.legado.app.ui.widget.AccentColorButton
-            android:id="@+id/btn_header_font"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            style="@style/Widget.Material3Expressive.Button.OutlinedButton"
-            android:text="@string/header_font" />
-
         <io.legado.app.ui.widget.SimpleCounterView
             android:id="@+id/scv_header_font_size"
             android:layout_width="180dp"