Skip to content

Commit

Permalink
Move v35-only theme declaration into the correct themes.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Catfriend1 committed Oct 21, 2024
1 parent f5ea007 commit 0af811a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions app/src/main/res/values-v35/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Syncthing.Base" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/accent</item>

<item name="textAppearanceListItemPrimary">@style/TextAppearance.Syncthing.ListItemPrimary</item>
<item name="textAppearanceListItemSecondary">@style/TextAppearance.Syncthing.ListItemSecondary</item>
<item name="textAppearanceListItemSmall">@style/TextAppearance.Syncthing.ListItemSmall</item>

<item name="windowActionModeOverlay">true</item>
<item name="android:listViewStyle">@style/Widget.Syncthing.ListView</item>
<item name="android:listDivider">@drawable/list_divider_inset</item>
<item name="drawerArrowStyle">@style/Widget.Syncthing.DrawerArrowToggle</item>

<item name="actionBarSize">@dimen/abc_action_bar_default_height_material</item>

<item name="spinnerStyle">@style/Widget.AppCompat.Spinner.Underlined</item>
<item name="android:spinnerItemStyle">@style/Widget.Syncthing.TextView.SpinnerItem</item>
<item name="alertDialogTheme">@style/Theme.Syncthing.Dialog</item>

<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<item name="android:spinnerItemStyle">@style/Widget.Syncthing.TextView.SpinnerItem</item>
<item name="alertDialogTheme">@style/Theme.Syncthing.Dialog</item>

<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
<!-- Overridden by themes-v35 -->
</style>

<style name="Theme.Syncthing" parent="Theme.Syncthing.Base">
Expand Down

0 comments on commit 0af811a

Please sign in to comment.