dotfiles

config files for my linux setup
git clone git://edryd.org/dotfiles
Log | Files | Refs | README

gtkrc (7827B)


      1 gtk-color-scheme = "bg_color: #000000000000\nfg_color: #ffffff\nbase_color: #ffffffffffff\ntext_color: #000000\nselected_bg_color: #ffffff\nselected_fg_color: #000000000000\ntooltip_bg_color: #000000000000\ntooltip_fg_color: #ffffff"
      2 
      3 style "industrial-default"
      4 {
      5   xthickness = 1
      6   ythickness = 1
      7 
      8 
      9   GtkWidget::interior_focus = 1
     10   GtkButton::default_border = { 3, 3, 3, 3 }
     11   GtkButton::default_outside_border = { 3, 3, 3, 3 }
     12   GtkRange::trough_border = 0
     13 
     14   GtkWidget::focus_padding = 1
     15 
     16   GtkPaned::handle_size = 7
     17   
     18   GtkRange::slider_width = 15
     19   GtkRange::stepper_size = 15
     20   GtkScrollbar::min_slider_length = 30
     21   GtkCheckButton::indicator_size = 13
     22   GtkRadioButton::indicator_size = 13
     23   GtkMenuBar::internal-padding = 0
     24   
     25   WnckTasklist::fade-opacity = 1
     26   WnckTasklist::fade-overlay-rect = 0
     27   WnckTasklist::fade-loop-time = 2
     28 
     29   GtkButton::child_displacement_x = 0
     30   GtkButton::child_displacement_y = 1
     31 
     32   GtkMenuItem::selected_shadow_type = GTK_SHADOW_IN
     33 
     34   GtkRange::activate-slider = 1
     35 
     36 
     37   # color definitions
     38   bg[NORMAL]		= "#000000"#@bg_color
     39   bg[PRELIGHT]		= "#111111"#shade (1.1, @bg_color)
     40   bg[ACTIVE]		= "#111111"#shade (0.85, @bg_color)
     41   bg[SELECTED]		= "#111111"#mix (0.65, @selected_bg_color, @bg_color)
     42   bg[INSENSITIVE]	= "#000000"#shade (0.85, @bg_color)
     43 
     44   fg[NORMAL]		= "#9999ff"#@fg_color
     45   fg[PRELIGHT]		= "#cc99cc"#@fg_color
     46   fg[ACTIVE]		= "#cc99cc"#@fg_color
     47   fg[SELECTED]		= "#cc99cc"#@selected_fg_color
     48   fg[INSENSITIVE]	= "#b1b1b1"#mix (0.4, @fg_color, shade (0.85, @bg_color)) #shaded to bg[INSENSITIVE]
     49 
     50   base[NORMAL]		= "#ffffff"#@base_color
     51   base[PRELIGHT]	= "#ffffff"#@base_color #XXX
     52   base[ACTIVE]		= "#111111"#mix (0.45, @selected_bg_color, @base_color) #b6c9cf
     53   base[SELECTED]	= "#111111"#@selected_bg_color
     54   base[INSENSITIVE]	= "#111111"#mix (0.95, @base_color, @text_color)
     55 
     56   text[NORMAL]		= "#555555"#@text_color
     57   text[PRELIGHT]	= "#ff9900"#@text_color #XXX
     58   text[ACTIVE]		= "#ff9900"#@text_color #@selected_fg_color
     59   text[SELECTED]	= "#ff9900"#@selected_fg_color
     60   text[INSENSITIVE]	= "#111111"#mix (0.5, @text_color, @base_color)
     61 
     62 #  bg[NORMAL]        = "#f6f6f6"
     63 #  bg[PRELIGHT]	    = "#ffffff"
     64 #  fg[PRELIGHT]      = "#202020"
     65 #  bg[ACTIVE]	    = "#d9d9d9"
     66 #  bg[INSENSITIVE]   = "#d9d9d9"
     67 #  bg[SELECTED]      = "#99a6bf"
     68 #
     69 #  base[SELECTED]    = "#6484a4"
     70 #  text[SELECTED]    = "#ffffff"
     71 #	#this is selected item without focus:
     72 #  base[ACTIVE]      = "#b6c9cf"
     73 #  text[INSENSITIVE] = "#757575"
     74 #	
     75 #	#defaults 
     76 #  #base[NORMAL]  = "#b6c9cf"
     77 #  #text[NORMAL]  = "#000000"
     78 #
     79   engine "industrial"
     80   {
     81     # Set a hint to disable backward compatibility fallbacks.
     82     hint = "use-hints"
     83   }
     84 }
     85 
     86 # Style to apply an exterior forcus to GtkEntry
     87 style "industrial-exterior-focus"
     88 {
     89 	GtkWidget::interior-focus = 0
     90 	GtkWidget::focus-line-width = 0
     91 }
     92 
     93 # Add trough side details to GtkScale
     94 style "industrial-scale"
     95 {
     96 	GtkRange::trough-side-details = 1
     97 }
     98 
     99 # generic squared buttons style, used for the tasklist (treeview is in the extra treeview style)
    100 style "industrial-squared"
    101 {
    102   engine "industrial" 
    103   {
    104     rounded_buttons = FALSE
    105   }
    106 }
    107 
    108 style "industrial-wide"
    109 {
    110   xthickness = 2
    111   ythickness = 2
    112 }
    113 
    114 # style to remove the border around the progress bar
    115 style "industrial-progress"
    116 {
    117   xthickness = 0
    118   ythickness = 0
    119 }
    120 
    121 # make scrollbar arrows lighter
    122 style "industrial-arrows"
    123 {
    124   fg[NORMAL] = mix (0.8, @fg_color, @bg_color)
    125 }
    126 
    127 # menuitems
    128 style "industrial-menuitem"
    129 {
    130   xthickness = 3
    131   ythickness = 3
    132 
    133   bg[PRELIGHT]  = @selected_bg_color
    134   bg[SELECTED]  = @selected_bg_color
    135   fg[PRELIGHT]  = @selected_fg_color
    136   fg[SELECTED]  = @selected_fg_color
    137 }
    138 
    139 style "industrial-menubar"
    140 {
    141   xthickness = 3
    142   ythickness = 3
    143 }
    144 
    145 style "industrial-tree-header"
    146 {
    147   engine "industrial" 
    148   {
    149     hint = "treeview-header"
    150   }
    151   xthickness = 2
    152   ythickness = 2
    153 }
    154 
    155 style "industrial-tooltips"
    156 {
    157   xthickness = 4
    158   ythickness = 4
    159   bg[NORMAL] = @tooltip_bg_color
    160   fg[NORMAL] = @tooltip_fg_color
    161 }
    162 
    163 style "industrial-druid"
    164 {
    165   bg[SELECTED] = @selected_bg_color
    166 }
    167 
    168 style "metacity-frame"
    169 {
    170 
    171 	# Normal base color
    172  	bg[NORMAL]      = @bg_color
    173 
    174 	# Unfocused title background color
    175 	bg[INSENSITIVE]	= @bg_color
    176 
    177 	# Unfocused title text color
    178 	fg[INSENSITIVE]	= mix (0.2, @fg_color, @bg_color) # "#808080"
    179 
    180 	# Focused icon color
    181 	fg[NORMAL]	= mix (0.8, @fg_color, @bg_color) # same as scrollbar arrow color
    182 
    183 	# Focused title background color
    184 	bg[SELECTED]	= @selected_bg_color
    185 	
    186 	# Focused title text color
    187 	fg[SELECTED]	= @selected_fg_color
    188 }
    189 
    190 style "industrial-spinbutton"
    191 {
    192 	engine "industrial"
    193 	{
    194 		hint	= "spinbutton"
    195 	}
    196 }
    197 
    198 style "industrial-comboboxentry"
    199 {
    200 	engine "industrial"
    201 	{
    202 		hint	= "comboboxentry"
    203 	}
    204 }
    205 
    206 # default style
    207 class "GtkWidget" style "industrial-default"
    208 
    209 # wide
    210 class "GtkNotebook"   style "industrial-wide"
    211 class "GtkButton"     style "industrial-wide"
    212 class "GtkRange"      style "industrial-wide"
    213 class "GtkMenu"       style "industrial-wide"
    214 class "GtkFrame"      style "industrial-wide"
    215 class "GtkStatusbar"  style "industrial-wide"
    216 class "GtkEntry"      style "industrial-wide"
    217 
    218 class "GtkEntry"      style "industrial-exterior-focus"
    219 class "GtkSpinButton" style "industrial-spinbutton"
    220 class "GtkProgress"   style "industrial-progress"
    221 class "GtkScale"      style "industrial-scale"
    222 
    223 class "GtkVScrollbar" style "industrial-arrows"
    224 class "GtkHScrollbar" style "industrial-arrows"
    225 
    226 widget_class "*<GtkComboBoxEntry>.*" style "industrial-comboboxentry"
    227 widget_class "*<GtkCombo>.*" style "industrial-comboboxentry"
    228 
    229 # treeview
    230 widget_class "*.<GtkTreeView>.GtkButton" style "industrial-tree-header"
    231 widget_class "*.<GtkList>.GtkButton"     style "industrial-tree-header"
    232 widget_class "*.<GtkCList>.GtkButton"    style "industrial-tree-header"
    233 widget_class "*.<ETree>.*"               style "industrial-tree-header"
    234 widget_class "*.<ETable>.*"              style "industrial-tree-header"
    235 
    236 # menuitems and interior
    237 widget_class "*<GtkMenuItem>*" style "industrial-menuitem"
    238 
    239 # druide
    240 widget_class "*GnomeDruidPage*" style "industrial-druid"
    241 
    242 widget "gtk-tooltip*" style "industrial-tooltips"
    243 
    244 widget "*.tasklist-button" style "industrial-squared"
    245 
    246 class "MetaFrames" style "metacity-frame"
    247 
    248 
    249 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
    250 # Note that the work around assumes that the combobox is _not_ in
    251 # appears-as-list mode.
    252 # This style does not affect GtkComboBoxEntry, it does have an effect
    253 # on comboboxes in appears-as-list mode though.
    254 style "industrial-text-is-fg-color-workaround"
    255 {
    256 	text[NORMAL]        = @fg_color
    257 	text[PRELIGHT]      = @fg_color
    258 	text[SELECTED]      = @selected_fg_color
    259 	text[ACTIVE]        = @fg_color
    260 	text[INSENSITIVE]   = darker (@bg_color)
    261 }
    262 widget_class "*.<GtkComboBox>.<GtkCellView>"   style "industrial-text-is-fg-color-workaround"
    263 
    264 style "industrial-menuitem-text-is-fg-color-workaround"
    265 {
    266 	text[NORMAL]        = @fg_color
    267 	text[PRELIGHT]      = @selected_fg_color
    268 	text[SELECTED]      = @selected_fg_color
    269 	text[ACTIVE]        = @fg_color
    270 	text[INSENSITIVE]   = darker (@bg_color)
    271 }
    272 widget "*.gtk-combobox-popup-menu.*"   style "industrial-menuitem-text-is-fg-color-workaround"
    273 
    274 # Work around the usage of GtkLabel inside GtkListItems to display text.
    275 # This breaks because the label is shown on a background that is based on the
    276 # base color set.
    277 style "industrial-fg-is-text-color-workaround"
    278 {
    279 	fg[NORMAL]      = @text_color
    280 	fg[PRELIGHT]    = @text_color
    281 	fg[ACTIVE]      = @selected_fg_color
    282 	fg[SELECTED]    = @selected_fg_color
    283 	fg[INSENSITIVE] = darker (@bg_color)
    284 }
    285 widget_class "*<GtkListItem>*" style "industrial-fg-is-text-color-workaround"
    286 # The same problem also exists for GtkCList and GtkCTree
    287 # Only match GtkCList and not the parent widgets, because that would also change the headers.
    288 widget_class "*<GtkCList>" style "industrial-fg-is-text-color-workaround"
    289 
    290