Platform preferences theme detection
Christopher Schnick
crschnick at xpipe.io
Sat Feb 10 17:23:30 UTC 2024
I checked again, restarted everything, but still the same problem:
Furthermore, I also tested it on my Asahi Fedora Linux with the latest
KDE Plasma. The preferences values there are all detected correctly, but
are never updated at runtime when changed in the settings menu.
On 10/02/2024 18:10, Michael Strauß wrote:
> Hi Christopher,
>
> the relevant preferences for color scheme detection are
> textColor=0x000000ff and textBackgroundColor=0xffffffff on your system.
>
> That's pretty strange, I'm getting the following values on macOS
> Sonoma 14.3.1 M1:
> in light mode: textColor=0x000000ff, textBackgroundColor=0xffffffff
> in dark mode: textColor=0xffffffff, textBackgroundColor=0x1e1e1eff
>
> Consequently, I'm also getting the correct color scheme when I'm
> switching between light and dark mode on macOS (verified with the
> PlatformPreferencesChangedTest application).
>
>
>
> On Sat, Feb 10, 2024 at 5:55 AM Christopher Schnick
> <crschnick at xpipe.io> wrote:
>
> Lastly I also tried it on macOS. The accent color detection works
> there, but the color scheme detection does not, i.e. it always
> returns light mode. I'm using macOS Sonoma 14.3 with aarch64.
>
> Here are the preferences when dark mode is set in the settings:
>
>
>
> So since you are thinking about making this a preview-only
> feature, I don't think there is that much to do to properly handle
> systems where some properties are not supported. Just a few
> methods to set the default value of foreground, background, and
> accent color would be enough. In theory I don't need to know
> exactly what color observation is supported, I only want to have
> the ability to use my own colors as defaults in that case.
>
> Best
> Christopher Schnick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240210/479e35ef/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-02-10 at 18.19.00.png
Type: image/png
Size: 400642 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240210/479e35ef/Screenshot2024-02-10at18.19.00-0001.png>
More information about the openjfx-dev
mailing list