|
|
Thank you. I'll check out that branch.
The Desktop tinting (or wallpaper tinting) can be enabled or disabled in the settings: The difference can be even more pronounced with lighter (or more red) the wallpaper is.
I have a small program which extracts all non-deprecated non-beta colors cocoa colors if that might be useful to the darkmode branch: https://github.com/MoAlyousef/test_mac_col
and the generated colors: https://github.com/MoAlyousef/test_mac_col/blob/main/colors.txt
On Saturday, October 2, 2021 at 5:04:43 PM UTC+3 Albrecht Schlosser wrote:
On 10/2/21 3:51 PM Mo_Al_ wrote:
> Hello
> This is more of a Cocoa question than an FLTK question, but since my
> experience with stackoverflow regarding anything Cocoa or Objc related
> hasn't been stellar, I thought I'd ask here.
>
> Apps running on MacOS's dark mode benefit from desktop tinting. So
> even if I get dark mode's windowBackgroundColor using:
> [...]
> Is there something I'm missing?
> Is there a way to programmatically get the current desktop tint and
> somehow apply it to an FLTK window?
I have no idea what "desktop tinting" means and what you really
want/need. That said, we have a new branch called "darkmode" (inactive,
not yet merged) where Mike Sweet added something to get the dark mode
system colors from macOS. Maybe this can help?
https://github.com/fltk/fltk/tree/darkmode
The latest three commits in that branch *might* give you some clues (or
maybe not, I don't know).
https://github.com/fltk/fltk/commits/darkmode
In this commit Mike commented "(gotta love how Apple's documentation is
broken...)", whatever that means. ;-)
https://github.com/fltk/fltk/commit/9459c8b345801d9da7ac661445843f89a757a915
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/e8283f83-26c8-41de-9a43-c5419f46fa7en%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |