cht電腦資訊gcingcin Windows
adm Find login register

gcin windows gtk theme 的問題

coolcd
joined: 2008-01-21
posted: 2596
promoted: 348
bookmarked: 95
1subject: gcin windows gtk theme 的問題Promote 0 Bookmark 02010-11-08quote  

最近發覺,如果灌 gcin-no-gtk 使用 gimp 的 gtk,介面就會比較漂亮

如果灌一般含 gtk 的 gcin windows,介面的底色就會比較深,不知 gcin 裡可以調整 themes 中的哪些東西?可以從哪裡去查?

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
2subject: gcin windows gtk theme 的問題Promote 2 Bookmark 12010-11-08quote  

gcin-inst.exe也是可以的!我試成功了!

可以參考為gcin for windows更換佈景主題來做(那些gtk engine的dll可以略過不裝):

簡言之:

  • 把C:\Program Files\gcin\themes改放到C:\Program Files\gcin\share\themes
  • 下載GTK+ Preference Tool官網下載頁面上可能有更新的版本),
    解壓縮之後,把gtk2_prefs.exe這個檔案放到C:\Program Files\gcin\bin
  • 執行gtk2_prefs.exe,把theme換成「MS-Windows」就行了~

套用「MS-Windows」這個佈景的話,可以讓gcin和佈景和Windows的佈景同步(含背景色和按鈕)。

註:
gtk2_prefs.exe會在「C:\Documents and Settings\你的名稱」(只套用到個別使用者)
或是「C:\Program Files\gcin\etc\gtk-2.0 」(套用到所有使用者)
資料夾裡生成一個「.gtkrc-2.0」,內容如下:

# Auto-written by gtk2_prefs. Do not edit.

gtk-theme-name = "MS-Windows"
style "user-font"
{
    font_name="Sans 10"
}
widget_class "*" style "user-font"

如果不想使用gtk2_prefs.exe來設定,可以手動新增這個檔案
不過記得先把
themes移到C:\Program Files\gcin\share\這個資料夾之下。

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

edited: 2
coolcd
joined: 2008-01-21
posted: 2596
promoted: 348
bookmarked: 95
3subject: Promote 1 Bookmark 12010-11-08quote  

感謝 winlin 的詳細說明。

我試了 gcin-no-gtk 的切換 themes 的情況,其實與一般版的大同小異,只不過放到 C:\Program Files (x86)\gcin 的東西,要改放到 C:\Program Files (x86)\GIMP-2.0 。

也就是:

  • gtk2_prefs.exe 要放到 C:\Program Files (x86)\GIMP-2.0\bin
  • 各種 themes 要放到 C:\Program Files (x86)\GIMP-2.0\share\themes

如此就可以利用 gtk2_prefs.exe 來切換主題。

同樣的方法用在內建 gtk 的 gcin,外觀跟使用 gimp gtk 的 gcin 還是會稍有差異,比較明顯的是 button,猜測可能與 C:\Program Files (x86)\GIMP-2.0\etc\gtk-2.0 中的 gtkrc 有關。

eliu

joined: 2007-08-09
posted: 11468
promoted: 617
bookmarked: 187
新竹, 台灣
4subject: Promote 0 Bookmark 02010-11-09quote  

感謝 winlin 的說明,最新的 gcin-inst.exe 已內定用 windows 同色的 theme

eliu

joined: 2007-08-09
posted: 11468
promoted: 617
bookmarked: 187
新竹, 台灣
5subject: Promote 0 Bookmark 02011-08-28quote  

正確的應該是

C:\Program Files\gcin\etc\gtk-2.0\gtkrc

cht電腦資訊gcingcin Windows
adm Find login register
views:16272