Skip to content

Commit

Permalink
TouchGestures: Fix Preference theme
Browse files Browse the repository at this point in the history
  • Loading branch information
SKULSHADY committed Feb 20, 2020
1 parent 1dfd8c4 commit b8cfe86
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,34 @@
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Settings">
<item name="android:divider">@null</item>
<item name="android:dividerHeight">0dp</item>
<item name="android:switchPreferenceStyle">@style/SettingsSwitchPreference</item>
<item name="android:preferenceStyle">@style/SettingsPreference</item>
<item name="android:dialogPreferenceStyle">@style/SettingsDialogPreference</item>
<item name="android:preferenceScreenStyle">@style/SettingsPreferenceScreen</item>
<item name="android:dialogTheme">@*android:style/Theme.Material.Settings.BaseDialog</item>
<item name="android:alertDialogTheme">@*android:style/Theme.Material.Settings.Dialog.BaseAlert</item>
</style>

<!-- Preferences -->
<style name="SettingsPreference" parent="@*android:style/Preference.DeviceDefault">
<item name="android:singleLineTitle">false</item>
<item name="android:iconSpaceReserved">true</item>
</style>

<style name="SettingsSwitchPreference" parent="@*android:style/Preference.DeviceDefault.SwitchPreference">
<item name="android:iconSpaceReserved">true</item>
<item name="android:singleLineTitle">false</item>
</style>

<style name="SettingsDialogPreference" parent="@*android:style/Preference.DeviceDefault.DialogPreference">
<item name="android:singleLineTitle">false</item>
<item name="android:iconSpaceReserved">true</item>
</style>

<style name="SettingsPreferenceScreen" parent="@*android:style/Preference.DeviceDefault.PreferenceScreen">
<item name="android:singleLineTitle">false</item>
<item name="android:iconSpaceReserved">true</item>
</style>

<style name="SettingsListPreference" parent="SettingsPreference"/>
</resources>

0 comments on commit b8cfe86

Please sign in to comment.