Messaging: Properly style dialogs

Forwarding messages
Before: Dialog is white and rectangular
After: Dialog is rounded and dark theme has dark background

Settings->Advanced->My phone number
Before: Dialog is white and rectangular
After: Dialog is rounded and dark theme has dark background

Change-Id: I719b15cbe062899b4f5eaccd599eaf45e89dfd3d
This commit is contained in:
Michael W
2024-12-07 21:52:39 +01:00
parent bc93ce392e
commit 6a10100821
2 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -20,9 +21,10 @@
<item name="android:colorEdgeEffect">@color/conversation_edge_effect</item>
</style>
<style name="BugleTheme.DialogActivity" parent="@style/Theme.AppCompat.Light.Dialog">
<style name="BugleTheme.DialogActivity" parent="@style/Theme.AppCompat.DayNight.Dialog">
<item name="android:windowNoTitle">false</item>
<item name="android:background">@android:color/white</item>
<item name="android:background">@color/window_background</item>
<item name="android:dialogCornerRadius">28dp</item>
</style>
<style name="ContactListItemDrawableIndicator">

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -38,6 +39,7 @@
<item name="android:textColorHighlight">@color/text_highlight_color</item>
<item name="actionBarStyle">@style/BugleActionBar</item>
<item name="apnPreferenceStyle">@style/ApnPreference</item>
<item name="alertDialogTheme">@style/AlertDialogTheme</item>
</style>
<style name="LaunchTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
@@ -646,4 +648,9 @@
<item name="android:textSize">@dimen/directory_header_text_size</item>
<item name="android:textStyle">bold</item>
</style>
<style name="AlertDialogTheme" parent="@style/ThemeOverlay.AppCompat.Dialog.Alert">
<item name="android:background">@color/window_background</item>
<item name="dialogCornerRadius">28dp</item>
</style>
</resources>