You are not logged in.
I'm finishing up a custom theme for personal use and I cannot nail down the location of the correct "bg [ACTIVE]" in the theme I'm editing. I am looking for the correct value to modify to change color on the active workspace "highlight". If anyone can toss me some expertise it would be greatly appreciated.
# These are the defined colors for the theme, you can change them in GNOME's appearance preferences.
gtk_color_scheme = "fg_color:#0065b2;bg_color:#F3F3F3;base_color:#fff;text_color:#1A1A1A;selected_bg_color:#b9d4f3;selected_fg_color:#fff;tooltip_bg_color:#ADD8E6;tooltip_fg_color:#000;frame_color:#333333;inactive_frame_color:#333333"
#####################( BLUE COLOR )###################################( BLACK COLOR )###########( BLUE COLOR )###################################
# ICONS
#########
gtk-icon-sizes = "gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:panel-menu=16,16:gtk-button=16,16" # This enables "compact-mode".
#gtk-button-images = 0 # Enables or disables icons on buttons (OS X-like).
#gtk-menu-popup-delay = 1 # Makes menus pop up faster!
##########
# PANELS
##########
include "panel.rc" # This includes the file that handles panel theming. Gradient panel backgrounds are enabled by default for this setting. Please edit panel.rc if you don't want gradient backgrounds in your panels, or plan to use transparent/custom panels.
##########################
# GENERAL THEME SETTINGS
##########################
style "theme-default"
{
####################
# Color Definitions
####################
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.85, @bg_color)
base[NORMAL] = @base_color
base[PRELIGHT] = shade (0.95, @bg_color)
base[ACTIVE] = shade (0.75, @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] = darker (@bg_color)
xthickness = 1
ythickness = 1
GtkButton ::child-displacement-x = 0
GtkButton ::child-displacement-y = 0
GtkButton ::default-border = { 0, 0, 0, 0 }
GtkCheckButton ::indicator-size = 12
GtkRadioButton ::indicator-size = 12
GtkPaned ::handle-size = 6
GtkRange ::trough-border = 1
GtkRange ::slider-width = 12
GtkRange ::stepper-size = 12
GtkScale ::slider-length = 20
GtkScale ::trough-side-details = 1
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
GtkMenu ::horizontal-padding = 0
GtkMenu ::vertical-padding = 0
WnckTasklist ::fade-overlay-rect = 0
GtkButton ::focus-padding = 0
GtkScrolledWindow ::scrollbar-spacing = 2
engine "murrine"
{
animation = FALSE
rgba = FALSE
gradient_shades = {1.0,1.0,1.0,1.0}
contrast = .55
scrollbarstyle = 0
sliderstyle = 0
stepperstyle = 1
glazestyle = 1
reliefstyle = 0
toolbarstyle = 0
progressbarstyle = 0
roundness = 0
highlight_shade = 1.00
lightborder_shade = 1.85
lightborderstyle = 1
menuitemstyle = 0
menubarstyle = 0
toolbarstyle = 0
menubaritemstyle = 0
listviewstyle = 1
listviewheaderstyle = 1
}
}
#################
# THEME MODULES
#################
style "evolution-hack" = "theme-default" # Hacks for Evolution Mail.
{
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.75, @bg_color) # Color for unfocused evo selected items.
bg[SELECTED] = @selected_bg_color # Color for evo selected items.
fg[ACTIVE] = @selected_fg_color # Color for evo active text.
fg[SELECTED] = @selected_fg_color # Color for evo selected text.
}
style "theme-entry" {
bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
fg[SELECTED] = @text_color
}
style "theme-button"
{
bg[NORMAL] = shade (1.14, @bg_color) # Color for buttons.
bg[PRELIGHT] = shade (1.18, @bg_color) # Color for button-prelight.
bg[ACTIVE] = shade (0.85, @bg_color) # Color for pressed-buttons.
}
style "theme-notebook"
{
bg[NORMAL] = shade (1.1, @bg_color) # Tab background.
bg[ACTIVE] = @bg_color # Unfocused tab background.
}
style "theme-menu" # This section themes custom dark menus. Leave as is.
{
bg[SELECTED] = shade (0.85, @selected_bg_color) ### drop-down menus
bg[NORMAL] = "#004c87"
bg[PRELIGHT] = shade (0.85, @selected_bg_color)
bg[ACTIVE] = "#333333"
bg[INSENSITIVE] = "#3C3C3C"
fg[NORMAL] = "#E6E6E6" # Color for normal text.
fg[PRELIGHT] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @selected_fg_color
fg[INSENSITIVE] = "#666666"
text[NORMAL] = @base_color # Color for menu-item radio/checks.
base[NORMAL] = "#666666" # Color for menu-item radio/checks background.
text[PRELIGHT] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @selected_fg_color
text[INSENSITIVE] = "#666666"
}
style "theme-menu-item"
{
bg[SELECTED] = shade (0.85, @selected_bg_color)
bg[PRELIGHT] = shade (0.85, @selected_bg_color)
fg[NORMAL] = "#E6E6E6" # Fix for XFCE menu text.
fg[PRELIGHT] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
}
style "theme-bar" # This section deals with dark bars.
{
bg[SELECTED] = shade (0.85, @selected_bg_color)
bg[NORMAL] = "#004c87" ### Background color for menubars.
bg[PRELIGHT] = shade (0.85, @selected_bg_color)
bg[ACTIVE] = "#0065b2"
bg[INSENSITIVE] = "#3C3C3C"
fg[NORMAL] = "#E6E6E6" # Color for normal text.
fg[PRELIGHT] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @selected_fg_color
fg[INSENSITIVE] = "#666666"
text[NORMAL] = "#E6E6E6"
text[PRELIGHT] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @selected_fg_color
text[INSENSITIVE] = "#666666"
base[SELECTED] = shade (0.85, @selected_bg_color)
base[NORMAL] = "#004c87"
base[PRELIGHT] = shade (0.85, @selected_bg_color)
base[ACTIVE] = "#4C4C4C"
base[INSENSITIVE] = "#3C3C3C"
}
style "theme-treeview-header" = "theme-default"
{
bg[NORMAL] = shade (1.14, @bg_color) # Color for treeview headers.
bg[PRELIGHT] = shade (1.18, @bg_color) # Color for treeview header prelight.
bg[ACTIVE] = shade (0.85, @bg_color) # Color for pressed-treeview.
}
style "theme-frame-title"
{
fg[NORMAL] = lighter (@fg_color)
}
style "theme-tooltips"
{
bg[NORMAL] = @tooltip_bg_color
fg[NORMAL] = @tooltip_fg_color
}
style "metacity-frame"
{
bg[SELECTED] = shade (0.85, @selected_bg_color) # Color for metacity borders.
}
style "theme-progressbar"
{
fg[PRELIGHT] = @selected_fg_color # Progressbar prelighted text.
}
style "theme-spinbutton"
{
bg[ACTIVE] = shade (0.85, @bg_color) # Color for pressed-spinbuttons.
}
style "theme-scale" = "theme-button"
{
bg[NORMAL] = shade (1.14, @bg_color) # Color for sliders.
bg[PRELIGHT] = shade (1.18, @bg_color) # Color for slider prelight.
bg[ACTIVE] = shade (0.85, @bg_color) # Color for pressed-sliders.
}
style "theme-nautilus-location" # Workaround for nautilus' messages.
{
bg[NORMAL] = shade (1.25, @selected_bg_color)
}
##############
# SCROLLBARS
##############
style "theme-scrollbar"
{
bg[NORMAL] = shade (1.14, @bg_color) # Color for non-colored scrollbars.
bg[INSENSITIVE] = shade (1.10, @bg_color) # Color for insensitive scrollbar buttons.
bg[PRELIGHT] = shade (1.18, @bg_color) # Color for scrollbar prelight? (probably obsolete)
bg[ACTIVE] = shade (0.85, @bg_color) # Color for pressed scrollbar buttons.
bg[SELECTED] = shade (1.14, @bg_color) # Color for colorized scrollbars here.
}
###############################################################################
# The following part of the gtkrc applies the different styles to the widgets.
###############################################################################
# Default style is applied to every widget.
class "GtkWidget" style "theme-default"
# Increase the x/ythickness in some widgets.
class "GtkEntry" style "theme-entry"
class "MetaFrames" style "metacity-frame"
class "GtkWindow" style "metacity-frame"
class "GtkSpinButton" style "theme-spinbutton"
class "GtkScale" style "theme-scale"
class "GtkScrollbar" style "theme-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 "theme-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "theme-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>" style "theme-notebook"
widget_class "*<GtkNotebook>*<GtkViewport>" style "theme-notebook"
widget_class "*<GtkNotebook>*<GtkScrolledWindow>" style "theme-notebook"
widget_class "*<GtkButton>" style "theme-button"
widget_class "*<GtkNotebook>" style "theme-notebook"
widget_class "*<GtkHandleBox>*" style "theme-bar"
widget_class "*<GtkToolbar>*" style "theme-bar"
widget_class "*<GtkMenuBar>*" style "theme-bar"
widget_class "*<GtkMenu>*" style "theme-menu"
widget_class "*<GtkMenuItem>*" style "theme-menu-item"
widget_class "*.<GtkFrame>.<GtkLabel>" style "theme-frame-title"
widget_class "*<GtkProgress>" style "theme-progressbar"
widget_class "*<GtkProgressBar>" style "theme-progressbar"
# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" style "theme-treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>" style "theme-treeview-header"
widget_class "*.<GtkList>.<GtkButton>" style "theme-treeview-header"
widget_class "*.<GtkCList>.<GtkButton>" style "theme-treeview-header"
# Workarounds for Evolution
widget_class "*.ETable.ECanvas" style "theme-treeview-header"
widget_class "*.ETree.ECanvas" style "theme-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"
widget "gtk-tooltip*" style "theme-tooltips"
###################################################
# SPECIAL CASES AND WORKAROUNDS
###################################################
# 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 "theme-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.
# This style does not affect GtkComboBoxEntry, it does have an effect on comboboxes in appears-as-list mode though.
style "theme-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 "theme-text-is-fg-color-workaround"
style "theme-menuitem-text-is-fg-color-workaround"
{
text[NORMAL] = "#E6E6E6"
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 "theme-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 "theme-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 "theme-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 "theme-fg-is-text-color-workaround"
widget_class "*<EelEditableLabel>" style "theme-fg-is-text-color-workaround"Last edited by Durzo (2013-10-05 22:15:04)
Offline
What is an "active workspace highlight"? That sounds like something that'd be in a toolbar or window manager configuration, not in a widget-toolkit configuration.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What is an "active workspace highlight"? That sounds like something that'd be in a toolbar or window manager configuration, not in a widget-toolkit configuration.
Sorry for the lack there of a better term... I figured this out by just changing every value in the entire file, but found the value I was looking for in panelrc.
Offline