LoginSignup
0
1

More than 3 years have passed since last update.

SWTアプリでダークモードしたい

Last updated at Posted at 2019-11-17

どれだけ需要があるかわからないけど.

自作したSWTアプリでMacのダークモードしたい.

Eclipse IDE 2019-06 (4.12) から可能になっていたので.

参考: https://www.eclipse.org/eclipse/news/4.12/platform_isv.php#dark-theme-mac

VM引数に以下を指定して実行

-Dorg.eclipse.swt.display.useSystemTheme=true

ダークモードかどうかの判定

"Dark".equals(execCommand("defaults read -g AppleInterfaceStyle"));
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1