Une piste : modifier le theme.rc (ou gtkrc) du thème GTK utilisé (par contre faut trouver les bons paramètres à changer).
Ce fichier theme.rc se trouve dans ton
/home/ton_user/.themes/nom du thème
Par exemple, pour le thème Radiance (elementary), situé dans ~/.themes/Radiance (Elementary)/gtk-2.0/gktrc, le gtkrc ressemble à ça :
# RadianceElemenatryMod theme
gtk-auto-mnemonics =1
gtk-menu-popup-delay =1
gtk_color_scheme = "fg_color:#101010\nbg_color:#ebebee\nbase_color:#ffffff\ntext_color:#1A1A1A\nselected_bg_color:#E0602F\nselected_fg_color:#403D39\ntooltip_bg_color:#29001D\ntooltip_fg_color:#fff"
style "default"
{
xthickness = 1
ythickness = 1
GtkWidget::new-tooltip-style = 1
GtkScrolledWindow ::scrollbar-spacing = 0
GtkScrolledWindow ::scrollbar-within-bevel = 0
GtkScrollbar::trough-side-details = 0
GtkButton::child-displacement-x = 1
GtkButton::child-displacement-y = 1
GtkButton::default-border = { 0, 0, 0, 0 }
GtkCheckButton::indicator-size = 14
GtkPaned::handle-size = 6
GtkRange::trough-border = 0
GtkRange::slider-width = 16
GtkRange::stepper-size = 14
GtkRange::trough-under-steppers = 1
GtkScale::slider-length = 20
GtkScale::trough-side-details = 0
GtkScrollbar::min-slider-length = 30
GtkMenuBar::internal-padding = 1
GtkExpander::expander-size = 15
GtkToolbar::internal-padding = 1
GtkTreeView::expander-size = 15
GtkTreeView::indent-expanders = TRUE
GtkTreeView::vertical-separator = 1
GtkMenu::horizontal-padding = 1
GtkMenu::vertical-padding = 1
WnckTasklist::fade-overlay-rect = 0
# The following line hints to gecko (and possibly other appliations)
# that the entry should be drawn transparently on the canvas.
# Without this, gecko will fill in the background of the entry.
GtkEntry::honors-transparent-bg-hint = 1
GtkEntry::progress-border = { 2, 2, 2, 2 }
#GtkToolbar :: shadow-type = GTK_SHADOW_NONE
GtkMenuBar :: shadow-type = GTK_SHADOW_NONE
GtkMenuBar::window-dragging = 1
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @fg_color
fg[INSENSITIVE] = shade(0.8, @bg_color)
bg[NORMAL] = @bg_color
bg[PRELIGHT] = shade (1.02, @bg_color)
bg[SELECTED] = @selected_bg_color
bg[INSENSITIVE] = shade (0.6,@base_color)
bg[ACTIVE] = shade (0.9, @bg_color)
base[NORMAL] = @base_color
base[PRELIGHT] = shade (0.95, @bg_color)
base[ACTIVE] = mix (0.7, @selected_bg_color, @bg_color)
base[SELECTED] = @selected_bg_color
base[INSENSITIVE] = @bg_color
text[NORMAL] = @text_color
text[PRELIGHT] = @text_color
text[ACTIVE] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[INSENSITIVE] = shade (0.6, @base_color)
engine "murrine" {
#options
animation = TRUE
arrowstyle = 1
border_shades = { 1.0, 0.9} # draw a gradient on the border.
#border_colors = { @selected_bg_color, @selected_bg_color }
contrast = 0.87
glazestyle = 0 # 0 = flat, 1 = curved, 2 = concave, 3 = top curved, 4 = beryl highlight, 5 = new
glow_shade = 1.0
glowstyle = 0 # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
gradient_shades = {1.15,1.08,1.07,1.0}
highlight_shade = 1.0
lightborder_shade = 1.2
lightborderstyle = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
listviewheaderstyle = 1 # 0 = flat, 1 = glassy, 2 = raised
listviewstyle = 1 # 0 = nothing, 1 = dotted
menubaritemstyle = 1 # 0 = menuitem look, 1 = button look
menubarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
menuitemstyle = 1 # 0 = flat, 1 = glassy, 2 = striped
menustyle = 0 # 0 = no vertical menu stripe, 1 = display vertical menu stripe
prelight_shade = 1.06
progressbarstyle = 0 # 0 = nothing, 1 = diagonal stripes, 2 = blocks
reliefstyle = 2 # 0 = flat, 1 = inset, 2 = shadow
rgba = FALSE
roundness = 4
scrollbarstyle = 0 # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal
sliderstyle = 0 # 0 = nothing added, 1 = handles
stepperstyle = 1 # 0 = standard, 1 = integrated stepper handles
textstyle = 1
trough_shades = {0.85,0.95}
toolbarstyle = 2 # 0 = flat, 1 = glassy, 2 = gradient
}
}
style "wide"
{
xthickness = 2
ythickness = 2
}
style "wider"
{
xthickness = 3
ythickness = 3
}
style "button" {
xthickness = 3
ythickness = 3
bg[NORMAL] = shade (1.05, @bg_color)
bg[PRELIGHT] = shade (1.1, @bg_color)
bg[ACTIVE] = shade (0.9, @bg_color)
bg[INSENSITIVE] = shade (1.0, @bg_color)
engine "murrine" {
rgba = FALSE
}
}
style "entry" = "wider"{
}
style "toolbar"
{
bg[NORMAL] = shade (1.1, @bg_color)
engine "murrine" {
contrast = 1.2
gradient_shades = {1.0,0.9,0.9,0.7}
glow_shade = 1.05
glowstyle = 2 # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
highlight_shade = 1.0
lightborder_shade = 0.9
#border_shades = { 1.2, 1.2} # draw a gradient on the border.
#border_colors = { @bg_color, @bg_color }
rgba = TRUE
}
}
style "toolbar-item" = "toolbar"
{
bg[NORMAL] = shade (1.0, @bg_color)
bg[PRELIGHT] = shade (1.1, @bg_color)
engine "murrine" {
gradient_shades = {1.1,1.0,1.0,0.9}
}
}
style "toolbar-sep" = "toolbar"
{
bg[NORMAL] = shade(0.6, @base_color)
}
style "notebook-bg"
{
engine "murrine" {
gradient_shades = {1.2,1.0,1.0,0.9}
}
}
style "notebook" = "button"
{
#bg[NORMAL] = @bg_color
bg[ACTIVE] = shade (0.9, @bg_color)
}
style "panel" {
xthickness = 4
ythickness = 0
fg[NORMAL] = shade(1.0, @selected_fg_color)
#bg[NORMAL] = 000000
#bg_pixmap[NORMAL] = "panel_bg.png"
engine "murrine" {
roundness = 0
}
}
style "menu"
{
xthickness = 0
ythickness = 0
bg[INSENSITIVE] = mix (0.4, shade(0.9, @selected_bg_color), @bg_color)
engine "murrine" {
roundness = 0
# gradient_shades = {1.0,1.0,1.0,1.0}
textstyle = 1
}
}
style "menu-item" = "default"
{
xthickness = 0
ythickness = 5
engine "murrine" {
glowstyle = 0
roundness = 0
textstyle = 1
# highlight_shade = 1.0
# lightborder_shade = 1.0
# gradient_shades = {1.0,1.0,1.0,1.0}
}
}
style "separator-menu-item"
{
GtkSeparatorMenuItem::horizontal-padding = 0
GtkWidget::wide-separators = 0
GtkWidget::separator-width = 1
GtkWidget::separator-height = 1
xthickness = 4
ythickness = 0
}
# Based on the default style so that the colors from the button
# style are overriden again.
style "treeview-header" = "button"
{
xthickness = 4
ythickness = 1
#bg[NORMAL] = shade (1.1, @bg_color)
}
style "tooltips"
{
xthickness = 8
ythickness = 5
bg[NORMAL] = @tooltip_bg_color
bg[SELECTED] = "#000000"
fg[NORMAL] = @tooltip_fg_color
engine "murrine" {
roundness = 1
}
}
style "progressbar"
{
bg[SELECTED] = shade (0.8, @selected_bg_color)
bg[ACTIVE] = shade (1.0, @bg_color)
}
style "scrollbar" = "button"
{
engine "murrine"{
roundness = 0
}
bg[ACTIVE] = shade (1.0, @bg_color) # Trough color
bg[NORMAL] = shade(0.95, @selected_bg_color)
bg[PRELIGHT] = @selected_bg_color
text[NORMAL] = shade (1.2, @bg_color) # Arrow Color
}
style "pixmap-statusbar" = "default"
{
}
style "comboboxentry" = "button"
{
ythickness = 3
xthickness = 3
#bg[NORMAL] = shade (0.9, @selected_bg_color)
bg[PRELIGHT] = shade (1.0, @selected_bg_color)
bg[SELECTED] = shade (1.0, @selected_bg_color)
bg[ACTIVE] = shade (0.9, @selected_bg_color)
bg[INSENSITIVE] = mix (0.3, @selected_bg_color, @bg_color)
}
style "spinbutton"
{
# bg[NORMAL] = shade (0.9, @selected_bg_color)
bg[PRELIGHT] = shade (1.0, @selected_bg_color)
bg[SELECTED] = shade (1.0, @selected_bg_color)
bg[ACTIVE] = shade (0.9, @selected_bg_color)
bg[INSENSITIVE] = mix (0.3, @selected_bg_color, @bg_color)
}
style "scale" = "button"
{
#bg[SELECTED] = @tooltip_bg_color
#bg[PRELIGHT] = @tooltip_bg_color
#bg[SELECTED] = @tooltip_bg_color
#bg[ACTIVE] = @tooltip_bg_color
#bg[INSENSITIVE] = @tooltip_bg_color
}
style "menubar" = "default"
{
}
style "frame"
{
}
style "frame-title" = "frame"
{
}
style "nautilus-location"
{
bg[NORMAL] = mix(0.60, @bg_color, @selected_bg_color)
}
# SZ07: This is added to tell the theme how to color checkmarks and radio items that are not in menus.
style "radiocheck"
{
# text[NORMAL] = @selected_fg_color # Color for selected checks/radio items.
# text[PRELIGHT] = @selected_fg_color # Color for selected checks/radio items on prelight.
bg[SELECTED] = @selected_bg_color
bg[NORMAL] = mix (0.3, @selected_bg_color, @bg_color)
bg[PRELIGHT] = @bg_color
}
#########################################
# Matches
#########################################
widget "ido-offscreen-scale" style "menubar"
widget "*IdoEntryMenuItem*" style "wide"
# default style is applied to every widget
class "GtkWidget" style "default"
# Increase the x/ythickness in some widgets
class "GtkRange" style "default"
class "GtkFrame" style "frame"
class "GtkSeparator" style "wide"
class "GtkEntry" style "entry"
class "GtkStatusbar" style "pixmap-statusbar"
class "GtkMenuBar" style:highest "menubar"
class "*HandleBox" style "toolbar"
class "GtkToolbar" style "toolbar"
widget_class "*HandleBox" style "toolbar"
widget_class "*<GtkToolbar>.*" style "toolbar-item"
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
style "text-is-fg-color-workaround"
{
text[NORMAL] = @fg_color
text[PRELIGHT] = @fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>" style "text-is-fg-color-workaround"
style "text-is-fg-color-workaround-dark"
{
#Make it work with this theme!
text[NORMAL] = @fg_color
text[PRELIGHT] = @selected_fg_color
}
class "GtkSpinButton" style "spinbutton"
class "GtkScale" style "scale"
class "GtkVScale" style "scale"
class "GtkHScale" style "scale"
class "GtkScrollbar" style "scrollbar"
class "GtkButton" style "button"
class "GtkRadioButton" style:highest "radiocheck" # SZ07: Added for the checkmarks/radio
class "GtkCheckButton" style:highest "radiocheck" # SZ07: Added for the checkmarks/radio
# General matching following, the order is choosen so that the right styles override each other
# eg. progressbar needs to be more important then the menu match.
widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook-bg"
widget_class "*<GtkNotebook>" style "notebook"
widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
widget_class "*<GtkCombo>*" style "comboboxentry"
widget_class "*<GtkMenuBar>.*" style "menu-item"
widget_class "*<GtkMenu>*" style "menu"
widget_class "*<GtkMenuItem>*" style "menu-item"
widget_class "*<GtkSeparatorMenuItem>*" style "separator-menu-item"
widget_class "*<GtkFrame>" style "frame"
widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"
widget_class "*<GtkStatusbar>*" style "wider"
widget_class "*<GtkProgressBar>" style "progressbar"
# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>" style "treeview-header"
widget_class "*.<GtkList>.<GtkButton>" style "treeview-header"
widget_class "*.<GtkCList>.<GtkButton>" style "treeview-header"
# Panel stuff
widget "*PanelWidget*" style "panel"
widget "*PanelApplet*" style "panel"
widget "*fast-user-switch*" style "panel" # Workaround for Fast User Switch applet
class "PanelApp*" style "panel"
class "PanelToplevel*" style "panel"
widget_class "*Panel*<GtkMenuBar>*" style:highest "panel" # The panel menubar
widget "*TomboyTray*" style "panel" # Workaround for Tomboy
widget "*TomboyApplet*" style "panel"
#XFCE panel
widget_class "*notif*" style "panel"
widget_class "*Notif*" style "panel"
widget_class "*Tray*" style "panel"
widget_class "*tray*" style "panel"
widget "*Xfce*Panel*" style "panel"
class "*Xfce*Panel*" style "panel"
# The following lines make panel-menu-applet, slab-main-menu and gimmie applet's text bold. The radius value sets the roundness value of the selected menu-item.
#style "bold-panel-menu"
#{
# font_name = "Bold"
#}
#style "bold-panel-slab"
#{
# font_name = "Bold"
#}
#widget "*Panel*slab-main-menu-panel-button*" style "bold-panel-slab"
#widget "*gimmie*" style "bold-panel-slab"
#widget "*Panel*MenuBar*" style "bold-panel-menu"
#widget "*Panel*Clock*" style "bold-panel-menu"
widget "gtk-tooltip*" style "tooltips"
###################################################
# Special cases and work arounds
###################################################
# Nautilus sidebar
widget_class "*NautilusSidePane.GtkFrame" style "pixmap-statusbar"
# Workarounds for Evolution
widget_class "*.ETable.ECanvas" style "treeview-header"
widget_class "*.ETree.ECanvas" style "treeview-header"
# Firefox isn't nice to dark themes, so unset the dark stuff.
widget "MozillaGtkWidget*Toolbar*" style "toolbar-item"
#widget "MozillaGtkWidget*Frame*" style "default"
# Monodevelop uses an OptionPanel widget, which incidentally is dark in our theme.
# Undo it:
widget "*OptionPanel*" style "button"
widget "*optionPanel*" style "button"
# Special case the nautilus-extra-view-widget
# ToDo: A more generic approach for all applications that have a widget like this.
widget "*.nautilus-extra-view-widget" style : highest "nautilus-location"
style "menuitem-text-is-fg-color-workaround"
{
text[NORMAL] = @fg_color
text[PRELIGHT] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = darker (@bg_color)
}
widget "*.gtk-combobox-popup-menu.*" style "menuitem-text-is-fg-color-workaround"
# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "fg-is-text-color-workaround"
{
fg[NORMAL] = @text_color
fg[PRELIGHT] = @text_color
fg[ACTIVE] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
fg[INSENSITIVE] = darker (@bg_color)
}
widget_class "*<GtkListItem>*" style "fg-is-text-color-workaround"
# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
style "evo-new-button-workaround"
{
bg[NORMAL] = @bg_color
engine "murrine"
{
toolbarstyle = 0
}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"
#Rhythmbox toolbar near the search entry. Use default + wide so that it doesn't turn dark.
style "rhythmbox-header" = "default"
{
xthickness = 3
ythickness = 3
engine "clearlooks" {
}
}
widget "*RBSourceHeader*" style:highest "rhythmbox-header"
widget "*HeaderToolbar*" style:highest "rhythmbox-header"
widget "*FooterToolbar*" style:highest "rhythmbox-header"
widget "*swt*toolbar*" style "default"
#--------------------------------------------------------------------------------------
# APPS STYLES
#--------------------------------------------------------------------------------------
include "nautilus/nautilus.rc"
Ce qui nous interesse ici c'est cette partie :
style "panel" {
xthickness = 4
ythickness = 0
fg[NORMAL] = shade(1.0, @selected_fg_color)
#bg[NORMAL] = 000000
#bg_pixmap[NORMAL] = "panel_bg.png"
engine "murrine" {
roundness = 0
}
}
(par contre, je ne peux pas tester car je ne suis plus sous Gnome)