Closed sivo1981 closed 3 years ago
Setting <item name="android:forceDarkAllowed">false</item>
in App_Resources\Android\src\main\res\values-v29\styles.xml resolves this issue.
@sivo1981 The colors are indeed accurate after this change. Any unintended consequence of this?
Environment √ Getting NativeScript components versions information... √ Component nativescript has 7.0.12 version and is up to date. √ Component @nativescript/core has 7.0.13 version and is up to date. √ Component @nativescript/ios has 7.0.6 version and is up to date. √ Component @nativescript/android has 7.0.1 version and is up to date.
Describe the bug How to disable automatic darking of defined background colors in dark mode.
Light mode (OK):
<Button text="BUTTON" backgroundColor="yellow" />
Dark mode (defined color is always darken):
<Button text="BUTTON" backgroundColor="yellow" />
This issue appears only on Android.
Is there a way to override this?