Skip to content

Commit

Permalink
Merge pull request #1236 from bemusementpark/fix-dialog-theme-background
Browse files Browse the repository at this point in the history
Fix dialog theme to set windowColor and not background of every view
  • Loading branch information
mpretty-cyro authored Jun 5, 2023
2 parents 6c14ed2 + e5db7fc commit f1686ea
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
10 changes: 0 additions & 10 deletions app/src/main/res/drawable/default_dialog_background.xml

This file was deleted.

6 changes: 0 additions & 6 deletions app/src/main/res/drawable/default_dialog_background_inset.xml

This file was deleted.

3 changes: 1 addition & 2 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
</style>

<style name="ThemeOverlay.Session.AlertDialog" parent="ThemeOverlay.AppCompat.Dialog.Alert">
<item name="android:background">@drawable/default_dialog_background</item>
<item name="android:colorBackground">?attr/dialog_background_color</item>
<item name="dialog_background_color">?colorPrimary</item>
<item name="android:colorBackgroundFloating">?colorPrimary</item>
<item name="backgroundTint">?colorPrimary</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:backgroundDimAmount">0.6</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@null</item>
<item name="textColorAlertDialogListItem">?android:textColorPrimary</item>
</style>

Expand Down
6 changes: 1 addition & 5 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,8 @@
<item name="windowActionModeOverlay">true</item>
</style>

<style name="Theme.TextSecure.Dialog.Rationale" parent="Theme.AppCompat.DayNight.Dialog.Alert">
<item name="android:windowBackground">@drawable/default_dialog_background</item>
</style>

<style name="Theme.TextSecure.Dialog.MediaSendProgress" parent="@android:style/Theme.Dialog">
<item name="android:background">@drawable/default_dialog_background</item>
<item name="android:colorBackground">?attr/dialog_background_color</item>
<item name="android:windowNoTitle">true</item>
</style>

Expand Down

0 comments on commit f1686ea

Please sign in to comment.