mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 20:53:39 +00:00
Merge pull request #1236 from bemusementpark/fix-dialog-theme-background
Fix dialog theme to set windowColor and not background of every view
This commit is contained in:
commit
f1686ea260
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<shape
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:shape="rectangle">
|
|
||||||
|
|
||||||
<solid android:color="?attr/dialog_background_color" />
|
|
||||||
|
|
||||||
<corners android:radius="?dialogCornerRadius" />
|
|
||||||
|
|
||||||
</shape>
|
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<inset
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:drawable="@drawable/default_dialog_background"
|
|
||||||
android:inset="@dimen/medium_spacing">
|
|
||||||
</inset>
|
|
@ -23,14 +23,13 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="ThemeOverlay.Session.AlertDialog" parent="ThemeOverlay.AppCompat.Dialog.Alert">
|
<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="dialog_background_color">?colorPrimary</item>
|
||||||
<item name="android:colorBackgroundFloating">?colorPrimary</item>
|
<item name="android:colorBackgroundFloating">?colorPrimary</item>
|
||||||
<item name="backgroundTint">?colorPrimary</item>
|
<item name="backgroundTint">?colorPrimary</item>
|
||||||
<item name="android:backgroundDimEnabled">true</item>
|
<item name="android:backgroundDimEnabled">true</item>
|
||||||
<item name="android:backgroundDimAmount">0.6</item>
|
<item name="android:backgroundDimAmount">0.6</item>
|
||||||
<item name="android:windowContentOverlay">@null</item>
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
<item name="android:windowBackground">@null</item>
|
|
||||||
<item name="textColorAlertDialogListItem">?android:textColorPrimary</item>
|
<item name="textColorAlertDialogListItem">?android:textColorPrimary</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -246,12 +246,8 @@
|
|||||||
<item name="windowActionModeOverlay">true</item>
|
<item name="windowActionModeOverlay">true</item>
|
||||||
</style>
|
</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">
|
<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>
|
<item name="android:windowNoTitle">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user