mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
cmd/gogio: match Android window background with default Gio color
While launching an app on Android, the hard-coded theme is used for the color. That color is by default black, and results in a jarring transition to the actual app background. The default Gio color is white, so use that for the theme background as well. This change will break for "dark mode" programs and similar. A future improvement would be to reflect the actual app background in the theme. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -56,11 +56,14 @@ const (
|
||||
themes = `<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.GioApp" parent="android:style/Theme.NoTitleBar">
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
</style>
|
||||
</resources>`
|
||||
themesV21 = `<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.GioApp" parent="android:style/Theme.NoTitleBar">
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:navigationBarColor">#40000000</item>
|
||||
<item name="android:statusBarColor">#40000000</item>
|
||||
|
||||
Reference in New Issue
Block a user