Pages : 1
#1 Le 28/05/2007, à 14:20
- jerome73
theme et gtk - modifier le fichier de config
voici mon fichier gtkrc dans /usr/share/themes/Yamefa-orange/gtk-2.0.
(pris sur la distribution yamefa (LA ubuntu francisée!)
Quand le parcours le menu des applications, le texte nornalement en noir sur fond gris, passe en blanc une fois survolé.
De plus, il n'y a pas de surbrillance.
Autant dire qu'on ne vois plus rien.
Je cheche à comprendre la syntaxe du fichier.
que signifient :
fg , bg , base , text ,
[NORMAL] , [PRELIGHT], [SELECTED], [ACTIVE] , [INSENSITIVE] ?
j'ai l'intuition que c'est là que je doit agir ...
Existe-t-il un tuto, une doc? quelqu'un pourrait-il me m'aiguiller?
jerome
# Thème de Yamefa 705
# version orange
style "theme-default"
{
GtkButton ::default_border = { 0, 0, 0, 0 }
GtkRange ::trough_border = 0
GtkPaned ::handle_size = 6
GtkRange ::slider_width = 15
GtkRange ::stepper_size = 15
GtkScrollbar ::min_slider_length = 30
GtkCheckButton ::indicator_size = 14
GtkMenuBar ::internal-padding = 0
GtkTreeView ::expander_size = 14
GtkExpander ::expander_size = 16
GtkScale ::slider-length = 27
# GtkScrollbar ::has-secondary-forward-stepper = 1
# GtkScrollbar ::has-secondary-backward-stepper = 1
GtkButton ::child-displacement-x = 1
GtkButton ::child-displacement-y = 1
WnckTasklist ::fade-overlay-rect = 0
xthickness = 1
ythickness = 1
fg[NORMAL] = "#000000" # black
fg[PRELIGHT] = "#000000" # black
fg[SELECTED] = "#ffffff" # white
fg[ACTIVE] = "#000000" # black
fg[INSENSITIVE] = "#b5b3ac" # dark beige
bg[NORMAL] = "#ede9e3" # light beige
bg[PRELIGHT] = "#f9f7f3" # very light beige
bg[SELECTED] = "#bb7000" # warmearth
bg[INSENSITIVE] = "#efebe5" # beige
bg[ACTIVE] = "#dcd4c9" # lighter dark beige
base[NORMAL] = "#ffffff" # white
base[PRELIGHT] = "#5f8ec4" # dark beige
base[ACTIVE] = "#a69f91" # darker beige
base[SELECTED] = "#bb7000" # warmearth
base[INSENSITIVE] = "#e8e5de" # beige
text[NORMAL] = "#000000" # black
text[PRELIGHT] = "#000000" # black
text[ACTIVE] = "#ffffff" # white
text[SELECTED] = "#ffffff" # white
text[INSENSITIVE] = "#b5b3ac" # dark beige
###################
## OPTIONS BEGIN ##
###################
engine "murrine"
{
animation = TRUE # FALSE = disabled, TRUE = enabled
contrast = 1.0 # 1.0 = default
glazestyle = 4 # 0 = flat hilight, 1 = curved hilight, 2 = concave style 3 = top curved hilight, 4 = beryl hilight
listviewheaderstyle = 1 # 0 = flat, 1 = glassy, 2 = raised
listviewstyle = 1 # 0 = flat, 1 = dots
menubaritemstyle = 1 # 0 = menuitem look, 1 = button look
menubarstyle = 3 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped (*menubarstyle can match panelbg*)
menuitemstyle = 1 # 0 = flat, 1 = glassy, 2 = striped
roundness = 5 # 0 = squared theme (support concave style), 1 = old default style (support concave style), 2 = little bit of roundness, 3 = clearlooks/ubuntulooks-looking roundness, 4 = more roundness, 5 = good roundness, 6 = incredible roundness, 7 = huge roundness, 8 = danger: too roundness! Ahahah :D
scrollbarstyle = 3 # 0 = flat, 1 = circles, 2 = handles, 3 = diagonal stripes 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
scrollbar_color = "#bb7000" # warmearth
}
}
style "panelbg"
{
xthickness = 0
ythickness = 0
bg_pixmap[NORMAL] = "fond.png"
}
#################
## OPTIONS END ##
#################
style "panelnobg"
{
bg_pixmap[NORMAL] = ""
}
style "theme-wide" = "theme-default"
{
xthickness = 2
ythickness = 2
}
style "theme-wider" = "theme-default"
{
xthickness = 3
ythickness = 3
}
style "theme-entry" = "theme-wider"
{
bg[SELECTED] = "#bb7000" # warmearth
}
style "theme-button" = "theme-wider"
{
bg[NORMAL] = "#f6f4f1" # some other light beige
bg[INSENSITIVE] = "#f2efeb" # some other less lighter beige
bg[PRELIGHT] = "#faf9f8" # some other lighter beige
}
style "theme-notebook" = "theme-wide"
{
bg[NORMAL] = "#efebe5" # beige
bg[INSENSITIVE] = "#efebe5" # beige
}
style "theme-tasklist" = "theme-default"
{
xthickness = 5
ythickness = 3
}
style "theme-menu" = "theme-default"
{
xthickness = 2
ythickness = 1
bg[NORMAL] = "#f9f7f3" # very light beige
}
style "theme-menu-item" = "theme-default"
{
ythickness = 3
bg[SELECTED] = "#bb7000" # warmearth
fg[PRELIGHT] = "#ffffff" # white
text[PRELIGHT] = "#ffffff" # white
}
style "theme-menubar" = "theme-default"
{
bg[NORMAL] = "#efebe7" # beige
bg[NORMAL] = "#efebe7" # beige
fg[NORMAL] = "#101010" # almost black
fg[ACTIVE] = "#000000" # black
text[NORMAL] = "#000000" # black
text[PRELIGHT] = "#000000" # black
base[PRELIGHT] = "#ffffff" # white
base[SELECTED] = "#bb7000" # warmearth
}
style "theme-menubar-item"
{
ythickness = 4
bg[PRELIGHT] = "#bb7000" # warmearth
}
style "theme-tree" = "theme-default"
{
xthickness = 2
ythickness = 2
}
style "theme-frame-title" = "theme-default"
{
fg[NORMAL] = "#404040" # less almost black
}
style "theme-tooltips" = "theme-default"
{
xthickness = 4
ythickness = 4
bg[NORMAL] = { 1.0,1.0,0.75 }
}
style "theme-progressbar" = "theme-wide"
{
xthickness = 1
ythickness = 1
fg[PRELIGHT] = "#ffffff" # white
}
style "theme-combo" = "theme-button"
{
}
style "metacity-frame"
{
bg[SELECTED] = "#bb7000" # warmearth
fg[SELECTED] = "#ffffff" # white
}
# panel background
class "*Panel*" style "panelbg"
class "*Notif*" style "panelbg"
class "*Tray*" style "panelbg"
class "*Applet*" style "panelbg"
class "*Manager*" style "panelbg"
class "*Netstatus*" style "panelbg"
class "*Panel*Dialog*" style "panelnobg"
# metacity frame
class "MetaFrames" style "metacity-frame"
class "GtkWindow" style "metacity-frame"
# widget styles
class "GtkWidget" style "theme-default"
class "GtkButton" style "theme-button"
class "GtkScale" style "theme-button"
class "GtkCombo" style "theme-button"
class "GtkRange" style "theme-wide"
class "GtkFrame" style "theme-wide"
class "GtkMenu" style "theme-menu"
class "GtkEntry" style "theme-entry"
class "GtkMenuItem" style "theme-menu-item"
class "GtkNotebook" style "theme-notebook"
class "GtkProgressBar" style "theme-progressbar"
class "*MenuBar*" style "theme-menubar"
# menu stuff
widget_class "*MenuItem.*" style "theme-menu-item"
widget_class "*MenuBar.*" style "theme-menubar-item"
# combobox stuff
widget_class "*.GtkComboBox.GtkButton" style "theme-combo"
widget_class "*.GtkCombo.GtkButton" style "theme-combo"
# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "theme-tasklist"
widget "gtk-tooltips" style "theme-tooltips"
# treeview stuff
widget_class "*.GtkTreeView.GtkButton" style "theme-tree"
widget_class "*.GtkCTree.GtkButton" style "theme-tree"
widget_class "*.GtkList.GtkButton" style "theme-tree"
widget_class "*.GtkCList.GtkButton" style "theme-tree"
widget_class "*.GtkFrame.GtkLabel" style "theme-frame-title"
# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox" style "theme-notebook"
widget_class "*.GtkNotebook.*.GtkViewport" style "theme-notebook"
Dernière modification par jerome73 (Le 28/05/2007, à 15:05)
* PC carte mere MSI K8T neo2-F v2.0 - carte graphique MSI NX6600-TD128 -
processeur AMD athlon 64 3000+ 1800hz- Ram 1,5Go - Ubuntu_9.04_32bit_i386
* eeePC1000HA -1,6Ghz - DD160Go - Ram 1Go - Lucid Netbook Edition (10.04)
Hors ligne
Pages : 1