Skip to content

Commit

Permalink
Fix issue #7633 by adding button style
Browse files Browse the repository at this point in the history
Add `android:buttonBarButtonStyle` to `FallbackTheming.Dialog`, modifying the button style of the fallback `AlertDialog`, so that the button would not appear as invisible.
  • Loading branch information
czlucius authored and tobiasKaminsky committed Jan 25, 2021
1 parent 86ce125 commit 841eeb7
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 @@ -80,8 +80,15 @@
<item name="windowNoTitle">false</item>
<item name="android:windowBackground">@color/bg_default</item>
<item name="android:textAllCaps">false</item>

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

<style name="FallbackTheming.Dialog.ButtonStyle"
parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">#000000</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

0 comments on commit 841eeb7

Please # to comment.