Крысиная тема/стиль
Добавлено: 02 окт 2018, 18:06
(1)
В LM 19 Xfce (x64) нужно изменить шрифт в названии Whiskermenu и Плагина часов на белый.
Тема, а точнее "стиль",- таков: Все Настройки -> Внешний Вид -> Стиль -> Адвайта.
Подменил файлик
(Файл
"Методом тыка" перепробовал кучу вариантов изменения цветов (в файле
В LM18.3 этот же файл работает как надо,
а в LM19 - не комильфо:
В обычном состоянии подпись Гл.меню - белая, а в "наведенном" и "нажатом" состоянии - черная (т.е. как LM18.3).
* * *
(2)
С определением второй проблемы вроде разобрался, но все же вот ее суть:
Главное Меню "внутри" (плагин Whiskermenu) в LM18.3 и LM19 выглядит тоже по другому:
В LM18.3 выглялит нормально (как надо):
В LM19 выглялит как не надо (ненормально):
Откатил (в LM19) whiskermenu до вер.1.7.3-0 и вид улучшился.
Вывод: в whiskermenu версии 2.* жестко закрепили свой вид и анимацию.
В LM 19 Xfce (x64) нужно изменить шрифт в названии Whiskermenu и Плагина часов на белый.
Тема, а точнее "стиль",- таков: Все Настройки -> Внешний Вид -> Стиль -> Адвайта.
Подменил файлик
gtkrc
в /usr/share/themes/Adwaita/gtk-2.0/
(файлик прилагается).(Файл
gtkrc
взят из темы(стиля) Azul Glassy.)"Методом тыка" перепробовал кучу вариантов изменения цветов (в файле
gtkrc
), но без знания основ ничего не получилось.В LM18.3 этот же файл работает как надо,
а в LM19 - не комильфо:
В обычном состоянии подпись Гл.меню - белая, а в "наведенном" и "нажатом" состоянии - черная (т.е. как LM18.3).
* * *
(2)
С определением второй проблемы вроде разобрался, но все же вот ее суть:
Главное Меню "внутри" (плагин Whiskermenu) в LM18.3 и LM19 выглядит тоже по другому:
В LM18.3 выглялит нормально (как надо):
В LM19 выглялит как не надо (ненормально):
Откатил (в LM19) whiskermenu до вер.1.7.3-0 и вид улучшился.
Вывод: в whiskermenu версии 2.* жестко закрепили свой вид и анимацию.
# Set GtkSettings color scheme property.
# This can be overriden (via an xsetting) with eg. the gnome-appearance-properties.
gtk_color_scheme = "fg_color:#222222\nbg_color:#ECECEC\nbase_color:#ffffff\ntext_color:#1A1A1A\nselected_bg_color:#86ABD9\nselected_fg_color:#ffffff\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
gtk-icon-sizes = "gtk-button=16,16"
style "default"
{
########
# Style Properties
########
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 = 2
GtkRange ::slider-width = 13
GtkRange ::stepper-size = 12
GtkScale ::slider-length = 15
GtkScale ::slider-width = 12
GtkScale ::trough-side-details = 0
GtkScrollbar ::min-slider-length = 30
GtkMenuBar ::internal-padding = 0
GtkExpander ::expander-size = 16
GtkToolbar ::internal-padding = 1
GtkTreeView ::expander-size = 14
GtkTreeView ::vertical-separator = 0
GtkTreeView::odd_row_color = "#e4ebf5"
GtkTreeView::even_row_color = "#ffffff"
GtkMenu ::horizontal-padding = 0
GtkMenu ::vertical-padding = 0
# Uncomment one or both of the following for flat/unified menus or toolbars:
GtkToolbar::shadow-type = GTK_SHADOW_NONE
GtkMenuBar::shadow-type = GTK_SHADOW_NONE
GtkScrolledWindow::scrollbar-spacing = 3
GtkNotebook::tab-curvature = 3
GtkNotebook::tab-overlap = 4
# Glow the tasklist by changing the color, instead of overlaying it with a rectangle
WnckTasklist ::fade-overlay-rect = 0
#WnckTasklist ::fade-loop-time = 5.0
#WnckTasklist ::fade-opacity = 0.7
xthickness = 1
ythickness = 1
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @fg_color
fg[INSENSITIVE] = darker (@bg_color)
bg[NORMAL] = @bg_color
bg[PRELIGHT] = shade (1.02, @bg_color)
bg[SELECTED] = @selected_bg_color
bg[INSENSITIVE] = @bg_color
bg[ACTIVE] = shade (0.9, @bg_color)
base[NORMAL] = @base_color
base[PRELIGHT] = shade (0.95, @bg_color)
base[ACTIVE] = shade (0.9, @selected_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.95, @bg_color)
engine "murrine"
{
rgba = FALSE # FALSE = disabled, TRUE = enabled
animation = TRUE
colorize_scrollbar = TRUE
contrast = 1.0 # 0.8 for less contrast, more than 1.0 for more contrast on borders
glazestyle = 3 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
gradients = TRUE # FALSE = disabled, TRUE = enabled
gradient_shades = {1.2,0.9,0.9,1.2} # default: {1.1,1.0,1.0,1.1}
highlight_ratio = 1.1 # set highlight amount for buttons or widgets
lightborder_ratio = 1.2 # sets lightborder amount for buttons or widgets
lightborderstyle = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
listviewheaderstyle = 1 # 0 = flat, 1 = glassy, 2 = raised
listviewstyle = 0 # 0 = nothing, 1 = dotted
menubaritemstyle = 1 # 0 = menuitem look, 1 = button look
menubarstyle = 1 # 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
reliefstyle = 2 # 0 = flat, 1 = inset, 2 = shadow
roundness = 3 # 0 = squared, 1 = old default, more will increase roundness
scrollbarstyle = 3 # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
sliderstyle = 0 # 0 = nothing added, 1 = handles
stepperstyle = 1 # 0 = standard, 1 = integrated stepper handles, 2 = unknown
toolbarstyle = 2 # 0 = flat, 1 = glassy, 2 = gradient
}
}
style "evolution-hack" = "default"
{
bg[NORMAL] = shade (1.14, @bg_color) # Color for evo treeview headers.
bg[PRELIGHT] = shade (1.18, @bg_color) # Color for evo treeview header prelight.
bg[ACTIVE] = shade (0.80, @bg_color) # Color for unfocused evo selected items.
bg[SELECTED] = @selected_bg_color # Color for evo selected items.
fg[ACTIVE] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
}
style "handle" # Removes the ugly panel handle when a pixmap panel is used
{
engine "pixmap"
{
image
{
function = HANDLE
file = "Panel/handle-v.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
orientation = VERTICAL
}
image
{
function = HANDLE
file = "Panel/handle-h.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
orientation = HORIZONTAL
}
}
}
class "PanelAppletFrame" style "handle"
style "wide"
{
xthickness = 2
ythickness = 2
}
style "wider"
{
xthickness = 3
ythickness = 3
}
style "widest"
{
xthickness = 4
ythickness = 4
}
style "frame" = "wide"
{
GtkWidget::draw-border = {1,1,1,1}
engine "murrine"
{
}
}
style "button"
{
xthickness = 3
ythickness = 3
bg[NORMAL] = shade (1.1, @bg_color) # Color for buttons.
bg[PRELIGHT] = shade (1.25, @selected_bg_color) # Color for buttons when hovered.
bg[ACTIVE] = shade (0.8, @bg_color) # Color for buttons when pressed.
}
style "toolbar"
{
bg[NORMAL] = shade(1.0,@bg_color)
engine "murrine"
{
}
}
style "handlebox"
{
bg[NORMAL] = shade(1.0,@bg_color)#shade (1.0,@bg_color)
engine "murrine"
{
}
}
style "entry" = "wider" {
}
style "notebook-bg" = "wider"
{
bg[NORMAL] = shade (1.45, @bg_color)
bg[ACTIVE] = shade (0.95, @bg_color)
}
style "notebook" = "notebook-bg"
{
engine "clearlooks"
{
radius = 1.5
style = GUMMY
}
}
style "tasklist"
{
xthickness = 5
ythickness = 3
}
style "menubar"
{
bg[NORMAL] = @bg_color
}
style "menu"
{
bg[NORMAL] = shade (1.08, @bg_color)
xthickness = 0
ythickness = 0
engine "murrine" {
roundness = 0
rgba = FALSE
}
}
style "menu-item"
{
xthickness = 2
ythickness = 3
bg[SELECTED] = @selected_bg_color
bg[PRELIGHT] = @selected_bg_color
fg[SELECTED] = @selected_fg_color
fg[PRELIGHT] = @selected_fg_color
fg[NORMAL] = "#000000" #Xfce4-panel necessary fix
}
style "separator-menu-item"
{
GtkSeparatorMenuItem::horizontal-padding = 0
# We are setting the desired height by using wide-separators
# There is no other way to get the odd height ...
GtkWidget::wide-separators = 1
GtkWidget::separator-width = 1
GtkWidget::separator-height = 1
xthickness = 1
ythickness = 0
engine "murrine" {
contrast = 0.9
rgba = FALSE
}
}
style "treeview"
{
#base[NORMAL] = mix(0.95, @base_color, @selected_bg_color)
}
# Based on the default style so that the colors from the button
# style are overriden again.
style "treeview-header"
{
xthickness = 2
ythickness = 1
bg[NORMAL] = shade(1.07, @bg_color)
bg[PRELIGHT] = mix(0.65, shade (1.15,@bg_color), @selected_bg_color)
bg[ACTIVE] = mix (0.3, shade (1.1, @selected_bg_color), @bg_color)
}
style "frame-title"
{
fg[NORMAL] = lighter (@fg_color)
}
style "tooltips"
{
xthickness = 4
ythickness = 4
bg[NORMAL] = @tooltip_bg_color
fg[NORMAL] = @tooltip_fg_color
engine "clearlooks" # Uses clearlooks engine for better looking tooltips.
{
}
}
style "progressbar"
{
xthickness = 0
ythickness = 0
fg[PRELIGHT] = lighter (@selected_fg_color)
engine "murrine"
{
roundness = 3
highlight_ratio = 1.20
rgba = FALSE
}
}
style "statusbar"
{
}
style "comboboxentry"
{
# NOTE:
# If you set the appears-as-list option on comboboxes in the theme
# you should set this hint on the combobox instead.
}
style "spinbutton"
{
}
style "scale"
{
bg[NORMAL] = shade(1.1, @bg_color)
bg[PRELIGHT] = shade(1.25, @selected_bg_color)
engine "murrine" {
roundness = 1
}
}
style "hscale"
{
}
style "vscale"
{
}
##############
# SCROLLBARS
##############
style "scrollbar"
{
bg[PRELIGHT] = shade (1.25, @selected_bg_color) # Color for buttons when hovered.
engine "murrine" {
highlight_ratio = 1.0 # set highlight amount for buttons or widgets
glazestyle = 0
roundness = 0
rgba = FALSE
}
}
style "range"
{
bg[NORMAL] = shade (0.9, @bg_color)
}
style "nautilus-location"
{
bg[NORMAL] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
}
style "radiocheck"
{
text[NORMAL] = "#ffffff"
text[PRELIGHT] = "#ffffff"
}
#style "panel"
#{
# xthickness = 0
# ythickness = 0
#
# fg[NORMAL] = "#ffffff"
# fg[PRELIGHT] = "#ffffff"
# fg[ACTIVE] = "#ffffff"
# bg[NORMAL] = "#222222"
# bg[PRELIGHT] = @selected_bg_color
# bg[ACTIVE] = "#111111"
#
# engine "murrine" {
# roundness = 0
# rgba = FALSE
# }
#}
#########################################
# Matches
#########################################
# Default style is applied to every widget
class "GtkWidget" style "default"
# Increase the x/ythickness in some widgets
class "GtkToolbar" style "toolbar"
class "GtkRange" style "wide"
class "GtkFrame" style "frame"
class "GtkSeparator" style "wide"
class "GtkCalendar" style "wide"
class "GtkEntry" style "entry"
class "GtkHandleBox*" style "handlebox"
class "GtkSpinButton" style "spinbutton"
class "GtkScale" style "scale"
class "GtkVScale" style "vscale"
class "GtkHScale" style "hscale"
class "GtkScrollbar" style "scrollbar"
class "GtkVScrollbar" style "scrollbar"
class "GtkHScrollbar" style "scrollbar"
# 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.
# This is not perfect, it could be done better
# (That is modify *every* widget in the notebook, and change those back that
# we really don't want changed)
widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook-bg"
widget_class "*<GtkButton>" style "button"
widget_class "*<GtkNotebook>" style "notebook"
widget_class "*<GtkStatusbar>*" style "statusbar"
widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
widget_class "*<GtkCombo>*" style "comboboxentry"
widget_class "*<GtkMenuBar>*" style "menubar"
widget_class "*<GtkMenu>*" style "menu"
widget_class "*<GtkMenuItem>*" style "menu-item"
widget_class "*<GtkSeparatorMenuItem>*" style "separator-menu-item"
widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"
widget_class "*.<GtkTreeView>*" style "treeview"
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"
# Workarounds for Evolution
widget_class "*.ETable.ECanvas" style "treeview-header"
widget_class "*.ETree.ECanvas" style "treeview-header"
widget_class "*GtkCTree*" style "evolution-hack"
widget_class "*GtkList*" style "evolution-hack"
widget_class "*GtkCList*" style "evolution-hack"
widget_class "*.ETree.*" style "evolution-hack"
widget_class "*EInfoLabel*" style "evolution-hack"
# Panel style
#class "*Panel*" style "panel"
#widget "*PanelWidget*" style "panel"
#widget "*PanelApplet*" style "panel"
#widget "*fast-user-switch*" style "panel"
#class "PanelApp*" style "panel"
#class "PanelToplevel*" style "panel"
#widget_class "*Mail*" style "panel"
#widget_class "*notif*" style "panel"
#widget_class "*Notif*" style "panel"
# XFCE panel theming
#widget "*Xfce*Panel*" style "panel"
#class "*Xfce*Panel*" style "panel"
# Radiocheck
class "GtkCheck*" style "radiocheck"
# The window of the tooltip is called "gtk-tooltip"
################################
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
################################
widget "gtk-tooltip*" style "tooltips"
###################################################
# Special cases and work arounds
###################################################
# 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"
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
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 "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"
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"
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
# Work around the evolution "New" button bug by making the toolbar flat.
# http://bugzilla.gnome.org/show_bug.cgi?id=446953
# Maybe remove this workaround in unstable releases.
style "evo-new-button-workaround"
{
engine "murrine"
{
toolbarstyle = 0
rgba = FALSE
}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"
# This can be overriden (via an xsetting) with eg. the gnome-appearance-properties.
gtk_color_scheme = "fg_color:#222222\nbg_color:#ECECEC\nbase_color:#ffffff\ntext_color:#1A1A1A\nselected_bg_color:#86ABD9\nselected_fg_color:#ffffff\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
gtk-icon-sizes = "gtk-button=16,16"
style "default"
{
########
# Style Properties
########
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 = 2
GtkRange ::slider-width = 13
GtkRange ::stepper-size = 12
GtkScale ::slider-length = 15
GtkScale ::slider-width = 12
GtkScale ::trough-side-details = 0
GtkScrollbar ::min-slider-length = 30
GtkMenuBar ::internal-padding = 0
GtkExpander ::expander-size = 16
GtkToolbar ::internal-padding = 1
GtkTreeView ::expander-size = 14
GtkTreeView ::vertical-separator = 0
GtkTreeView::odd_row_color = "#e4ebf5"
GtkTreeView::even_row_color = "#ffffff"
GtkMenu ::horizontal-padding = 0
GtkMenu ::vertical-padding = 0
# Uncomment one or both of the following for flat/unified menus or toolbars:
GtkToolbar::shadow-type = GTK_SHADOW_NONE
GtkMenuBar::shadow-type = GTK_SHADOW_NONE
GtkScrolledWindow::scrollbar-spacing = 3
GtkNotebook::tab-curvature = 3
GtkNotebook::tab-overlap = 4
# Glow the tasklist by changing the color, instead of overlaying it with a rectangle
WnckTasklist ::fade-overlay-rect = 0
#WnckTasklist ::fade-loop-time = 5.0
#WnckTasklist ::fade-opacity = 0.7
xthickness = 1
ythickness = 1
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @fg_color
fg[INSENSITIVE] = darker (@bg_color)
bg[NORMAL] = @bg_color
bg[PRELIGHT] = shade (1.02, @bg_color)
bg[SELECTED] = @selected_bg_color
bg[INSENSITIVE] = @bg_color
bg[ACTIVE] = shade (0.9, @bg_color)
base[NORMAL] = @base_color
base[PRELIGHT] = shade (0.95, @bg_color)
base[ACTIVE] = shade (0.9, @selected_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.95, @bg_color)
engine "murrine"
{
rgba = FALSE # FALSE = disabled, TRUE = enabled
animation = TRUE
colorize_scrollbar = TRUE
contrast = 1.0 # 0.8 for less contrast, more than 1.0 for more contrast on borders
glazestyle = 3 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
gradients = TRUE # FALSE = disabled, TRUE = enabled
gradient_shades = {1.2,0.9,0.9,1.2} # default: {1.1,1.0,1.0,1.1}
highlight_ratio = 1.1 # set highlight amount for buttons or widgets
lightborder_ratio = 1.2 # sets lightborder amount for buttons or widgets
lightborderstyle = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
listviewheaderstyle = 1 # 0 = flat, 1 = glassy, 2 = raised
listviewstyle = 0 # 0 = nothing, 1 = dotted
menubaritemstyle = 1 # 0 = menuitem look, 1 = button look
menubarstyle = 1 # 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
reliefstyle = 2 # 0 = flat, 1 = inset, 2 = shadow
roundness = 3 # 0 = squared, 1 = old default, more will increase roundness
scrollbarstyle = 3 # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
sliderstyle = 0 # 0 = nothing added, 1 = handles
stepperstyle = 1 # 0 = standard, 1 = integrated stepper handles, 2 = unknown
toolbarstyle = 2 # 0 = flat, 1 = glassy, 2 = gradient
}
}
style "evolution-hack" = "default"
{
bg[NORMAL] = shade (1.14, @bg_color) # Color for evo treeview headers.
bg[PRELIGHT] = shade (1.18, @bg_color) # Color for evo treeview header prelight.
bg[ACTIVE] = shade (0.80, @bg_color) # Color for unfocused evo selected items.
bg[SELECTED] = @selected_bg_color # Color for evo selected items.
fg[ACTIVE] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
}
style "handle" # Removes the ugly panel handle when a pixmap panel is used
{
engine "pixmap"
{
image
{
function = HANDLE
file = "Panel/handle-v.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
orientation = VERTICAL
}
image
{
function = HANDLE
file = "Panel/handle-h.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
orientation = HORIZONTAL
}
}
}
class "PanelAppletFrame" style "handle"
style "wide"
{
xthickness = 2
ythickness = 2
}
style "wider"
{
xthickness = 3
ythickness = 3
}
style "widest"
{
xthickness = 4
ythickness = 4
}
style "frame" = "wide"
{
GtkWidget::draw-border = {1,1,1,1}
engine "murrine"
{
}
}
style "button"
{
xthickness = 3
ythickness = 3
bg[NORMAL] = shade (1.1, @bg_color) # Color for buttons.
bg[PRELIGHT] = shade (1.25, @selected_bg_color) # Color for buttons when hovered.
bg[ACTIVE] = shade (0.8, @bg_color) # Color for buttons when pressed.
}
style "toolbar"
{
bg[NORMAL] = shade(1.0,@bg_color)
engine "murrine"
{
}
}
style "handlebox"
{
bg[NORMAL] = shade(1.0,@bg_color)#shade (1.0,@bg_color)
engine "murrine"
{
}
}
style "entry" = "wider" {
}
style "notebook-bg" = "wider"
{
bg[NORMAL] = shade (1.45, @bg_color)
bg[ACTIVE] = shade (0.95, @bg_color)
}
style "notebook" = "notebook-bg"
{
engine "clearlooks"
{
radius = 1.5
style = GUMMY
}
}
style "tasklist"
{
xthickness = 5
ythickness = 3
}
style "menubar"
{
bg[NORMAL] = @bg_color
}
style "menu"
{
bg[NORMAL] = shade (1.08, @bg_color)
xthickness = 0
ythickness = 0
engine "murrine" {
roundness = 0
rgba = FALSE
}
}
style "menu-item"
{
xthickness = 2
ythickness = 3
bg[SELECTED] = @selected_bg_color
bg[PRELIGHT] = @selected_bg_color
fg[SELECTED] = @selected_fg_color
fg[PRELIGHT] = @selected_fg_color
fg[NORMAL] = "#000000" #Xfce4-panel necessary fix
}
style "separator-menu-item"
{
GtkSeparatorMenuItem::horizontal-padding = 0
# We are setting the desired height by using wide-separators
# There is no other way to get the odd height ...
GtkWidget::wide-separators = 1
GtkWidget::separator-width = 1
GtkWidget::separator-height = 1
xthickness = 1
ythickness = 0
engine "murrine" {
contrast = 0.9
rgba = FALSE
}
}
style "treeview"
{
#base[NORMAL] = mix(0.95, @base_color, @selected_bg_color)
}
# Based on the default style so that the colors from the button
# style are overriden again.
style "treeview-header"
{
xthickness = 2
ythickness = 1
bg[NORMAL] = shade(1.07, @bg_color)
bg[PRELIGHT] = mix(0.65, shade (1.15,@bg_color), @selected_bg_color)
bg[ACTIVE] = mix (0.3, shade (1.1, @selected_bg_color), @bg_color)
}
style "frame-title"
{
fg[NORMAL] = lighter (@fg_color)
}
style "tooltips"
{
xthickness = 4
ythickness = 4
bg[NORMAL] = @tooltip_bg_color
fg[NORMAL] = @tooltip_fg_color
engine "clearlooks" # Uses clearlooks engine for better looking tooltips.
{
}
}
style "progressbar"
{
xthickness = 0
ythickness = 0
fg[PRELIGHT] = lighter (@selected_fg_color)
engine "murrine"
{
roundness = 3
highlight_ratio = 1.20
rgba = FALSE
}
}
style "statusbar"
{
}
style "comboboxentry"
{
# NOTE:
# If you set the appears-as-list option on comboboxes in the theme
# you should set this hint on the combobox instead.
}
style "spinbutton"
{
}
style "scale"
{
bg[NORMAL] = shade(1.1, @bg_color)
bg[PRELIGHT] = shade(1.25, @selected_bg_color)
engine "murrine" {
roundness = 1
}
}
style "hscale"
{
}
style "vscale"
{
}
##############
# SCROLLBARS
##############
style "scrollbar"
{
bg[PRELIGHT] = shade (1.25, @selected_bg_color) # Color for buttons when hovered.
engine "murrine" {
highlight_ratio = 1.0 # set highlight amount for buttons or widgets
glazestyle = 0
roundness = 0
rgba = FALSE
}
}
style "range"
{
bg[NORMAL] = shade (0.9, @bg_color)
}
style "nautilus-location"
{
bg[NORMAL] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
}
style "radiocheck"
{
text[NORMAL] = "#ffffff"
text[PRELIGHT] = "#ffffff"
}
#style "panel"
#{
# xthickness = 0
# ythickness = 0
#
# fg[NORMAL] = "#ffffff"
# fg[PRELIGHT] = "#ffffff"
# fg[ACTIVE] = "#ffffff"
# bg[NORMAL] = "#222222"
# bg[PRELIGHT] = @selected_bg_color
# bg[ACTIVE] = "#111111"
#
# engine "murrine" {
# roundness = 0
# rgba = FALSE
# }
#}
#########################################
# Matches
#########################################
# Default style is applied to every widget
class "GtkWidget" style "default"
# Increase the x/ythickness in some widgets
class "GtkToolbar" style "toolbar"
class "GtkRange" style "wide"
class "GtkFrame" style "frame"
class "GtkSeparator" style "wide"
class "GtkCalendar" style "wide"
class "GtkEntry" style "entry"
class "GtkHandleBox*" style "handlebox"
class "GtkSpinButton" style "spinbutton"
class "GtkScale" style "scale"
class "GtkVScale" style "vscale"
class "GtkHScale" style "hscale"
class "GtkScrollbar" style "scrollbar"
class "GtkVScrollbar" style "scrollbar"
class "GtkHScrollbar" style "scrollbar"
# 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.
# This is not perfect, it could be done better
# (That is modify *every* widget in the notebook, and change those back that
# we really don't want changed)
widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook-bg"
widget_class "*<GtkButton>" style "button"
widget_class "*<GtkNotebook>" style "notebook"
widget_class "*<GtkStatusbar>*" style "statusbar"
widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
widget_class "*<GtkCombo>*" style "comboboxentry"
widget_class "*<GtkMenuBar>*" style "menubar"
widget_class "*<GtkMenu>*" style "menu"
widget_class "*<GtkMenuItem>*" style "menu-item"
widget_class "*<GtkSeparatorMenuItem>*" style "separator-menu-item"
widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"
widget_class "*.<GtkTreeView>*" style "treeview"
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"
# Workarounds for Evolution
widget_class "*.ETable.ECanvas" style "treeview-header"
widget_class "*.ETree.ECanvas" style "treeview-header"
widget_class "*GtkCTree*" style "evolution-hack"
widget_class "*GtkList*" style "evolution-hack"
widget_class "*GtkCList*" style "evolution-hack"
widget_class "*.ETree.*" style "evolution-hack"
widget_class "*EInfoLabel*" style "evolution-hack"
# Panel style
#class "*Panel*" style "panel"
#widget "*PanelWidget*" style "panel"
#widget "*PanelApplet*" style "panel"
#widget "*fast-user-switch*" style "panel"
#class "PanelApp*" style "panel"
#class "PanelToplevel*" style "panel"
#widget_class "*Mail*" style "panel"
#widget_class "*notif*" style "panel"
#widget_class "*Notif*" style "panel"
# XFCE panel theming
#widget "*Xfce*Panel*" style "panel"
#class "*Xfce*Panel*" style "panel"
# Radiocheck
class "GtkCheck*" style "radiocheck"
# The window of the tooltip is called "gtk-tooltip"
################################
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
################################
widget "gtk-tooltip*" style "tooltips"
###################################################
# Special cases and work arounds
###################################################
# 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"
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
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 "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"
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"
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
# Work around the evolution "New" button bug by making the toolbar flat.
# http://bugzilla.gnome.org/show_bug.cgi?id=446953
# Maybe remove this workaround in unstable releases.
style "evo-new-button-workaround"
{
engine "murrine"
{
toolbarstyle = 0
rgba = FALSE
}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"