HumbleUI / JWM

Cross-platform window management and OS integration library for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Theme

tonsky opened this issue · comments

Inspired by https://www.electronjs.org/docs/api/native-theme

Theme::isHighContrast
Theme::isDark
Theme::isInverted

  • Windows
  • X11
  • macOS

Why there's not Linux? At least you can determine light/dark theme by quering GTK theme name. Every GTK theme mentions whether it's dark or not in it's name.

Right, dark/light seems to be possible on Linux, I missed that

There is now an official system theme for dark/light preference in Linux being adopted by couple Desktop Environments

Resources:

Thank you! That will help