cht電腦資訊Linux
adm Find login register

如何改變 icewm tray 的顏色?

alan

joined: 2007-09-25
posted: 134
promoted: 7
bookmarked: 1
1subject: 如何改變 icewm tray 的顏色?Promote 0 Bookmark 02008-01-31quote  

 

黑色一條出現米色好像有點醜。一直找不到方法改!

 

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
2subject: 如何改變 icewm tray 的顏色?Promote 0 Bookmark 12008-01-31quote  
fluxbox的toolbar也發現類似的情形,tray icon的透明處均以gtk theme的背景顏色呈現

http://hyperrate.com/topic-view-thread.php?tid=1478 

很多gtk程式的tray icon都這樣,唉...(QT的程式倒是OK)
本來gaim也會這樣,但後來解決了,我想去查gaim原始碼,提供給gcin作者參考,但是我不懂程式...所以作罷
如果您會看程式碼,不妨幫大家一下?大笑

要解決這個問題我有幾個賤招可以試試(純灌水用,勿試):

(1) 治標不治本法:(不建議)
          找出上述二個tray icon,幫它們加上和tray一樣的背景圖

(2)魚與熊掌不可兼得法:(不建議)
           換個和task bar背景圖一致的gtk theme
           自己寫一個會比去網路上找來得容易(只是gtk resource和theme語法沒點程式基礎,看起實在痛苦)
          不過gcin的組字視窗和gcin-setup的背景也會一併受影響(這正是我目前頭痛的問題之一)

 (3)削足適履法:(不建議)
           把icewm的taskbar theme修改成和gtk2 theme的背景一致,這樣兩個都是米色...,取得一致...Orz

 

剛剛查了一下新的資料,分享一下好了~ 

Why isn't the tray icon background transparent?

First off, please note that you can set the background of the tray icon to whatever colour you want (using the "Set tray colour" button in the preferences), and you can even use an eyedropper to do it - it should be easy enough to get close to the real thing ...

But why not "real" transparency? Well, the simple answer is that transparency was never a feature of Gtk's trayicon libs. Gaim does it by using a patched version of the relevant lib - but that's not something you can do with Gtk2-perl. (see this Gtk bug for details on the original issue ...) It's been fixed in Gtk, but Gtk2-perl apparently uses its own version of this lib, which hasn't (?) been fixed. The short answer is, it might work one day, but in the meantime, just use the eye-dropper in the prefs - it works pretty well!

原文 

-------------------------------------------------------------------
好用的gcin連結:

edited: 2
alan

joined: 2007-09-25
posted: 134
promoted: 7
bookmarked: 1
3subject: Promote 0 Bookmark 02008-02-01quote  

嗯……我也不會程式。沒想到小小的 tray 有這麼多學問。

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
4subject: 如何改變 icewm tray 的顏色?Promote 0 Bookmark 02009-08-15quote  
freealan

 

黑色一條出現米色好像有點醜。一直找不到方法改!

gcin這個問題已經有一解法,請往此討論串

-------------------------------------------------------------------
好用的gcin連結:

cht電腦資訊Linux
adm Find login register
views:11377