2010-09-14 93 views
2

如何在Linux上獲得與我的KDE或Gnome配置文件相關的正確顏色?如何在Linux上獲取用戶定義的系統顏色?

java.awt.SystemColor似乎給我root(?)帳戶的顏色,至少顏色定義不符合我的設置(而在Windows上一切正常)。

是否有任何API讓我從Java訪問當前用戶的Window Manager顏色設置?

回答

1

查看this頁面,尤其是this頁面!

+0

你能否提供更新的鏈接? – codejammer 2012-11-15 02:53:14

+1

Arhived [here](http://web.archive.org/web/20110627190622/http://nadeausoftware.com/articles/2009/12/java_tip_how_use_systemcolors_access_os_user_interface_theme_colors)和[here](http://web.archive.org) /web/20110627190258/http://nadeausoftware.com/articles/2010/06/java_tip_systemcolors_linux_kde_user_interface_themes#DealingwithKDESystemColorproblems) – dacwe 2012-11-15 10:52:09

相關問題