mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-24 17:23:03 +02:00
corrected color in dialog preferences buttons and radio buttons after using Material3, see #944
This commit is contained in:
@@ -98,12 +98,14 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:text="@string/label_male" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btnRadioWoman"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:text="@string/label_female" />
|
||||
</RadioGroup>
|
||||
</TableRow>
|
||||
@@ -184,11 +186,13 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="cm"
|
||||
android:id="@+id/btnRadioCM"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:checked="true" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:text="in"
|
||||
android:id="@+id/btnRadioINCH" />
|
||||
</RadioGroup>
|
||||
@@ -216,18 +220,21 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="kg"
|
||||
android:id="@+id/btnRadioKG"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:checked="true" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="lb"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:id="@+id/btnRadioLB" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="st"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:id="@+id/btnRadioST" />
|
||||
</RadioGroup>
|
||||
</TableRow>
|
||||
|
@@ -13,6 +13,7 @@
|
||||
android:id="@+id/user_radio_button"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.RadioButton"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
@@ -27,6 +27,16 @@
|
||||
<item name="colorOnSurfaceInverse">@color/md_theme_dark_inverseOnSurface</item>
|
||||
<item name="colorSurfaceInverse">@color/md_theme_dark_inverseSurface</item>
|
||||
<item name="colorPrimaryInverse">@color/md_theme_dark_inversePrimary</item>
|
||||
<item name="alertDialogTheme">@style/AppTheme.Dialog</item>
|
||||
<item name="colorAccent">@color/md_theme_dark_onPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Dialog" parent="Theme.MaterialComponents.DayNight.Dialog">
|
||||
<item name="colorPrimary">@color/md_theme_dark_onBackground</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.RadioButton" parent="Widget.Material3.CompoundButton.RadioButton">
|
||||
<item name="colorPrimary">@color/md_theme_dark_onPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
|
@@ -27,6 +27,7 @@
|
||||
<item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item>
|
||||
<item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item>
|
||||
<item name="colorPrimaryInverse">@color/md_theme_light_inversePrimary</item>
|
||||
<item name="colorAccent">@color/md_theme_light_primary</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
|
Reference in New Issue
Block a user