Skip to content

Commit

Permalink
Fix issue nextcloud#7633
Browse files Browse the repository at this point in the history
Add button style for `AlertDialog` buttons to default `AlertDialog` style, `owncloud.AlertDialog`.
  • Loading branch information
czlucius committed Dec 16, 2020
1 parent a95c363 commit dc06c17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
<item name="android:textAllCaps">false</item>
</style>

<style name="FallbackTheming.Dialog.ButtonStyle"
parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>

<!-- separate action bar style for activities without an action bar -->
<style name="BaseTheme.ownCloud.Toolbar" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="actionModeBackground">@color/action_mode_background</item>
Expand Down Expand Up @@ -131,6 +136,8 @@
<item name="searchViewStyle">@style/ownCloud.SearchView</item>
<item name="android:textAllCaps">false</item>
<item name="android:windowBackground">@color/bg_default</item>

<item name="buttonBarButtonStyle">@style/FallbackTheming.Dialog.ButtonStyle</item>
</style>

<style name="ownCloud.Dialog" parent="Theme.MaterialComponents.DayNight.Dialog">
Expand Down

0 comments on commit dc06c17

Please # to comment.