cogentcore / core

A free and open source framework for building powerful, fast, elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the web with a single Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.68k stars 80 forks source link

Default to system color scheme / theme / mode preference #494

Open kkoreilly opened 1 year ago

kkoreilly commented 1 year ago

If the user has set their operating system preferences to dark or light mode, GoGi should recognize that preference and default to that value.

kkoreilly commented 8 months ago

This has been implemented on all platforms except for Linux. Also, we still might want to implement watching of this.

kkoreilly commented 7 months ago

We also might want to support automatically defaulting to system scaling, scroll speed, and other settings. It is a tradeoff between consistency with the system and consistency across Cogent Core apps.

kkoreilly commented 6 months ago

It seems neither necessary nor practical to implement defaulting to other system settings across all platforms; if someone wants to do that at some point in the future, they can. I still need to implement watching of system theme and potentially support for system theme on Linux if possible.