Skip to content

[Feature Request][Android] Prevent StageText::color to be inverted in dark theme #4107

@itlancer

Description

@itlancer

Feature Description

Please consider to implement some way to disable StageText color inversion when Android dark theme used.
Right now it cannot be disabled and cause unpredictable behavior in many cases depends on Android firmwares. Sometimes colors just inverted. Sometimes it will be inverted only if you enter 2 or more symbols in StageText field manually (not programmatically). Sometimes behavior different in album or portrait device orientation.
Especially it's critical for Android devices with MiUI/HyperOS like Xiaomi Pad 5 HyperOS 1.0.6.0, Android 13 - there such strange things happens 100% times. But the same could be observed with other devices without MiUI/HyperOS too (Samsung, Sony smartphones and tablets) but seems it depends on OS theme etc.

More about that (with videos and screenshots) in related issue: #769

It could be implemented in a few ways:

  1. Some new Boolean property StageText::forceDarkAllowed. If application set it to false - color inversion will be disabled for StageText instance.
  2. New tag in AIR manifest for Android <forceDarkAllowed>false</forceDarkAllowed> to disable color inversion for all StageText instances.
  3. Some new Boolean property StageText.forceDarkAllowed to disable color inversion for all StageText instances.

Known Workarounds

Change styles.xml in your AIR SDK #769 (comment)
But it should be done for every AIR SDK update and it's not production solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions