Hot fix cursor pointer indicator in composer is wrong color on Android greater than 31

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-23 10:14:08 +07:00
committed by Dat H. Pham
parent 474db79542
commit a97d4a3ae7
4 changed files with 10 additions and 6 deletions
@@ -8,6 +8,7 @@
<item name="android:windowSplashScreenBackground">#ffffff</item> <item name="android:windowSplashScreenBackground">#ffffff</item>
<item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item> <item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item> <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
<item name="android:colorControlActivated">@color/colorPrimary</item>
</style> </style>
<!-- Theme applied to the Android Window as soon as the process has started. <!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your This theme determines the color of the Android Window while your
@@ -17,5 +18,6 @@
This Theme is only used starting with V2 of Flutter's Android embedding. --> This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
<item name="android:colorControlActivated">@color/colorPrimary</item>
</style> </style>
</resources> </resources>
@@ -6,7 +6,7 @@
Flutter draws its first frame --> Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item> <item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowFullscreen">false</item> <item name="android:windowFullscreen">false</item>
<item name="android:colorControlActivated" tools:targetApi="lollipop">@color/colorPrimary</item> <item name="android:colorControlActivated" >@color/colorPrimary</item>
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item> <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="android:windowSplashScreenBackground" tools:targetApi="s">@drawable/launch_background</item> <item name="android:windowSplashScreenBackground" tools:targetApi="s">@drawable/launch_background</item>
<item name="android:windowSplashScreenBrandingImage" tools:targetApi="s">@drawable/branding</item> <item name="android:windowSplashScreenBrandingImage" tools:targetApi="s">@drawable/branding</item>
@@ -19,7 +19,7 @@
This Theme is only used starting with V2 of Flutter's Android embedding. --> This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
<item name="android:colorControlActivated" tools:targetApi="lollipop">@color/colorPrimary</item> <item name="android:colorControlActivated" >@color/colorPrimary</item>
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item> <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="android:windowSplashScreenBackground" tools:targetApi="s">@drawable/launch_background</item> <item name="android:windowSplashScreenBackground" tools:targetApi="s">@drawable/launch_background</item>
<item name="android:windowSplashScreenBrandingImage" tools:targetApi="s">@drawable/branding</item> <item name="android:windowSplashScreenBrandingImage" tools:targetApi="s">@drawable/branding</item>
@@ -8,6 +8,7 @@
<item name="android:windowSplashScreenBackground">#ffffff</item> <item name="android:windowSplashScreenBackground">#ffffff</item>
<item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item> <item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item> <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
<item name="android:colorControlActivated">@color/colorPrimary</item>
</style> </style>
<!-- Theme applied to the Android Window as soon as the process has started. <!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your This theme determines the color of the Android Window while your
@@ -19,5 +20,6 @@
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
<item name="android:windowSplashScreenBackground">#ffffff</item> <item name="android:windowSplashScreenBackground">#ffffff</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item> <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
<item name="android:colorControlActivated">@color/colorPrimary</item>
</style> </style>
</resources> </resources>
+4 -4
View File
@@ -5,10 +5,10 @@
<!-- Show a splash screen on the activity. Automatically removed when <!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame --> Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item> <item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:colorControlActivated" tools:targetApi="lollipop">@color/colorPrimary</item> <item name="android:colorControlActivated">@color/colorPrimary</item>
<item name="android:forceDarkAllowed">false</item> <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="android:windowFullscreen">false</item> <item name="android:windowFullscreen">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">shortEdges</item>
</style> </style>
<!-- Theme applied to the Android Window as soon as the process has started. <!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your This theme determines the color of the Android Window while your
@@ -18,7 +18,7 @@
This Theme is only used starting with V2 of Flutter's Android embedding. --> This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
<item name="android:colorControlActivated" tools:targetApi="lollipop">@color/colorPrimary</item> <item name="android:colorControlActivated" >@color/colorPrimary</item>
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item> <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="android:windowSplashScreenBackground" tools:targetApi="s">@drawable/launch_background</item> <item name="android:windowSplashScreenBackground" tools:targetApi="s">@drawable/launch_background</item>
<item name="android:windowSplashScreenBrandingImage" tools:targetApi="s">@drawable/branding</item> <item name="android:windowSplashScreenBrandingImage" tools:targetApi="s">@drawable/branding</item>