Wednesday, February 8, 2017

KDE下GTK程序的美化

KDE下GTK程序的美化



????????linux???????????????????????????????????????????????????????????????????????????????????????????????????????
?????SuSE9.1?????????????????????????????????????????9.2?????????????
?????KDE?????????????????????????????????????????
??????????????KDE????????GTK?????????????GTK???Theme??????Germatik????????????????????????????????????????????????kde-look.org????????????????????
??????????????/opt/kde3/bin/startkde??script???????GTK_THEME_RC???????GTK_THEME_RC="$GTK_DATADIR/themes/Geramik/gtk/gtkrc"?????????????Germatik????????theme?????????????????theme????
??????GTK?theme??????/opt/gnome/share/themes??????????????GTK_THEME_RC="$GTK_DATADIR/themes/Industrial/gtk/gtkrc"?????????????????????????????????????????????
??????????????????????????????????????????script?????????????????.gtkrc-2.0??????????????????GTK????????????????????
include "/opt/gnome/share/themes/XXX/gtk/gtkrc"
style "user-font"
{
font_name="Adobe Helvetica 12"
}
widget_class "*" style "user-font"
gtk-font-name="Adobe Helvetica 12"

?????????????????????export|grep gtk?????????????????GTK2_RC_FILES?GTK_RC_FILES?????????GTK2?GTK1????????????????.gtkrc-2.0?????????????.gtkrc-2.0-alloy?>:-<??alloy???KDE?theme??????startkde??script???????
????90%????????????????????????????
???????cookie? ????????????????????????root?????????GTK?????Ethereal???????root?????.gtkrc-2.0-xxx???????????????.gtkrc-2.0????????????????????????????????????????????????????????
???cookie?????????????????????????????????????????????????????????????Linux???????????????
##################################################################################
??KDE????GTK??
2010-02-18 15:55
????????GNOME ???KDE??????GTK???openoffice?firefox????KDE????????????????


????QtCurve??????
pacman -S qtcurve-gtk2 qtcurve-kde4
pacman -S gtk-theme-switch2
?????????????switch2
??Qtcurve?apply
????GTK???????????

####################################################################

QtCurve

Available for qt4 (kde4), qt3 (kde3), and gtk2 (gnome) in the [extra] repository, this highly-configurable style is the most popular all-rounder. It has many controls for various options, ranging from the appearance of buttons to the shape of sliders. You can install all of them using pacman.
# pacman -S qtcurve-gtk2 qtcurve-kde4

GTK-QT-Engine

This one is for use by GTK+ applications running in KDE, which basically means this is for KDE. It applies all Qt settings (styles, fonts, not icons though) to the GTK+ applications and uses the style plug-ins directly. Please note that there are rendering issues with some Qt styles.
# pacman -S gtk-qt-engine
You can access it from:
Control Center (kcontrol) --> Appearance & Themes --> GTK Styles and Fonts
If you want to remove it entirely and every trace of it, you should delete the following files:
  • ~/.gtkrc2.0-kde
  • ~/.kde4/env/gtk-qt-engine.rc.sh
  • ~/gtk-qt-engine.rc

#############################################################################################################
1,??gtk-qt-engine
#pacman -S gtk-qt-engine
2,??gtk?????

#pacman -S gtk2_prefs
3,??????
# pacman -S gtk2-themes-collection

????????gtk????
????~/.gtkrc-2.0 ??
?????????
gtk-icon-theme-name = "Tango"
...more gtk2 settings...
?tango???????????????

Available link for download