forked from nodefect/DG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android.Resources: add workaround styles.xml
Add simple styles.xml to workaround the maui styling bug in dark theme [1]. Should be removed after merging [2]. [1] dotnet/maui#15088 [2] dotnet/maui#15091
- Loading branch information
1 parent
059a1ef
commit fefe99d
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Frontend/Platforms/Android/Resources/values/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<resources> | ||
<!-- Workaround for fixing DisplayAlert's AlertDialog button color in dark theme https://github.com/dotnet/maui/issues/15088. | ||
Should be removed after merging https://github.com/dotnet/maui/pull/15091.--> | ||
<style name="Maui.MainTheme" parent="Theme.MaterialComponents.DayNight"> | ||
<item name="alertDialogTheme">@style/MauiAlertDialogTheme</item> | ||
</style> | ||
<style name="MauiAlertDialogTheme" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog"> | ||
<item name="colorPrimary">?attr/colorOnSurface</item> | ||
</style> | ||
</resources> |