| 1 |
# gtkrc -- gtkrc for crux-engine theme |
| 2 |
# |
| 3 |
# Copyright (C) 2000, 2001 Eazel, Inc. |
| 4 |
# Copyright (C) 2005, 2006 Thomas Wood <[email protected]> |
| 5 |
|
| 6 |
# Authors |
| 7 |
# Design: Lapo Calamandrei <[email protected]> |
| 8 |
# Code: Thomas Wood <[email protected]> |
| 9 |
# |
| 10 |
# Original Authors |
| 11 |
# John Harper <[email protected]> |
| 12 |
|
| 13 |
|
| 14 |
# This program is free software; you can redistribute it and/or |
| 15 |
# modify it under the terms of the GNU General Public License as |
| 16 |
# published by the Free Software Foundation; either version 2 of the |
| 17 |
# License, or (at your option) any later version. |
| 18 |
# |
| 19 |
# This program is distributed in the hope that it will be useful, |
| 20 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 |
# General Public License for more details. |
| 23 |
# |
| 24 |
# You should have received a copy of the GNU General Public License |
| 25 |
# along with this program; if not, write to the Free Software |
| 26 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 |
# |
| 28 |
# $Id: gtkrc,v 1.11 2006/10/02 17:57:25 thos Exp $ |
| 29 |
|
| 30 |
# Default style for all widgets to build from |
| 31 |
|
| 32 |
gtk_color_scheme = "fg_color:#000;bg_color:#d3d7cf;base_color:#fff;text_color:#000;selected_bg_color:#75507b;selected_fg_color:#fff;tooltip_bg_color:#F5F5B5;tooltip_fg_color:#000" |
| 33 |
|
| 34 |
|
| 35 |
style "default" |
| 36 |
{ |
| 37 |
fg[NORMAL] = @fg_color # was 000000 --> OK |
| 38 |
fg[PRELIGHT] = @fg_color # was 000000 --> OK |
| 39 |
fg[SELECTED] = @selected_fg_color # was ffffff --> OK |
| 40 |
fg[ACTIVE] = @fg_color # was 000000 --> OK |
| 41 |
fg[INSENSITIVE] = darker (@bg_color) # was 888a85 --> ?? |
| 42 |
|
| 43 |
bg[NORMAL] = @bg_color # was d3d7cf --> NO? |
| 44 |
bg[PRELIGHT] = shade (1.02, @bg_color) # was ededeb --> NO? |
| 45 |
bg[SELECTED] = @selected_bg_color # was 75507b --> OK |
| 46 |
bg[INSENSITIVE] = @bg_color # was c4c6c0 --> OK? |
| 47 |
bg[ACTIVE] = shade (0.9, @bg_color) # was a3a69f --> ?? |
| 48 |
|
| 49 |
base[NORMAL] = @base_color # was ffffff --> OK |
| 50 |
base[PRELIGHT] = shade (0.95, @bg_color) # was 000000 --> NO? |
| 51 |
base[ACTIVE] = shade (0.9, @selected_bg_color) # undefined |
| 52 |
base[SELECTED] = @selected_bg_color # 75507b --> OK |
| 53 |
base[INSENSITIVE] = @bg_color # dddddd --> NO |
| 54 |
|
| 55 |
text[NORMAL] = @text_color # was 000000 --> OK |
| 56 |
text[PRELIGHT] = @text_color # was 000000 --> OK |
| 57 |
text[ACTIVE] = @selected_fg_color # was 000000 --> OK |
| 58 |
text[SELECTED] = @selected_fg_color # was undefined |
| 59 |
text[INSENSITIVE] = darker (@bg_color) # was 888a85 --> ?? |
| 60 |
|
| 61 |
GtkRange::slider_width = 13 |
| 62 |
GtkRange::stepper_size = 13 |
| 63 |
GtkRange::trough_border = 1 |
| 64 |
|
| 65 |
GtkScale::slider_width = 12 |
| 66 |
GtkScale::stepper_size = 12 |
| 67 |
GtkScale::trough_border = 0 |
| 68 |
|
| 69 |
GtkScale::slider_length = 16 |
| 70 |
GtkCheckButton::indicator_size = 12 |
| 71 |
GtkCheckButton::indicator_spacing = 3 |
| 72 |
GtkCheckMenuItem::indicator_size = 10 |
| 73 |
|
| 74 |
GtkOptionMenu::indicator_size = { 11, 6 } |
| 75 |
GtkOptionMenu::indicator_spacing = { 30, 5, 2, 2 } |
| 76 |
|
| 77 |
GtkScrollbar::min_slider_length = 25 |
| 78 |
|
| 79 |
engine "crux-engine" { } |
| 80 |
} |
| 81 |
|
| 82 |
# common default |
| 83 |
class "GtkWidget" style "default" |
| 84 |
|
| 85 |
# Style used for (prelighted) menu items |
| 86 |
style "menuitem" |
| 87 |
{ |
| 88 |
fg[PRELIGHT] = @selected_fg_color # was 000000 --> OK |
| 89 |
bg[PRELIGHT] = @selected_bg_color # was 75507b --> OK |
| 90 |
} |
| 91 |
|
| 92 |
class "GtkMenuItem" style "menuitem" |
| 93 |
widget_class "*.*MenuItem.*" style "menuitem" |
| 94 |
|
| 95 |
|
| 96 |
style "menu" |
| 97 |
{ |
| 98 |
xthickness = 3 |
| 99 |
} |
| 100 |
|
| 101 |
# This enables gradiented menu backgrounds |
| 102 |
class "GtkMenu" style "menu" |
| 103 |
|
| 104 |
style "entry" |
| 105 |
{ |
| 106 |
xthickness = 3 |
| 107 |
ythickness = 3 |
| 108 |
|
| 109 |
# Slightly lighter so that the selection will be visible properly |
| 110 |
bg[SELECTED] = mix(0.85, @selected_bg_color, @base_color) |
| 111 |
|
| 112 |
engine "crux-engine" |
| 113 |
{ |
| 114 |
thickness = 3 |
| 115 |
} |
| 116 |
} |
| 117 |
|
| 118 |
# some extra padding around text entries, so the focus marking fits |
| 119 |
class "GtkEntry" style "entry" |
| 120 |
class "GtkText" style "entry" |
| 121 |
|
| 122 |
style "trough" |
| 123 |
{ |
| 124 |
bg[NORMAL] = shade (0.9, @bg_color) |
| 125 |
# fg[PRELIGHT] is used for the text underneath the bar. |
| 126 |
fg[PRELIGHT] = @selected_fg_color |
| 127 |
} |
| 128 |
class "GtkProgressBar" style "trough" |
| 129 |
|
| 130 |
style "statusbar" |
| 131 |
{ |
| 132 |
xthickness = 3 |
| 133 |
ythickness = 3 |
| 134 |
} |
| 135 |
class "GtkStatusbar" style "statusbar" |
| 136 |
|
| 137 |
style "crux-tooltips" |
| 138 |
{ |
| 139 |
xthickness = 4 |
| 140 |
ythickness = 4 |
| 141 |
|
| 142 |
bg[NORMAL] = @tooltip_bg_color |
| 143 |
fg[NORMAL] = @tooltip_fg_color |
| 144 |
} |
| 145 |
|
| 146 |
# The window of the tooltip is called "gtk-tooltip" |
| 147 |
################################ |
| 148 |
# FIXME: |
| 149 |
# This will not work if one embeds eg. a button into the tooltip. |
| 150 |
# As far as I can tell right now we will need to rework the theme |
| 151 |
# quite a bit to get this working correctly. |
| 152 |
# (It will involve setting different priorities, etc.) |
| 153 |
################################ |
| 154 |
widget "gtk-tooltip*" style "crux-tooltips" |
| 155 |
|
| 156 |
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646 |
| 157 |
# Note that the work around assumes that the combobox is _not_ in |
| 158 |
# appears-as-list mode. |
| 159 |
# This style does not affect GtkComboBoxEntry, it does have an effect |
| 160 |
# on comboboxes in appears-as-list mode though. |
| 161 |
style "crux-text-is-fg-color-workaround" |
| 162 |
{ |
| 163 |
text[NORMAL] = @fg_color |
| 164 |
text[PRELIGHT] = @fg_color |
| 165 |
text[SELECTED] = @selected_fg_color |
| 166 |
text[ACTIVE] = @fg_color |
| 167 |
text[INSENSITIVE] = darker (@bg_color) |
| 168 |
} |
| 169 |
widget_class "*.<GtkComboBox>.<GtkCellView>" style "crux-text-is-fg-color-workaround" |
| 170 |
|
| 171 |
style "crux-menuitem-text-is-fg-color-workaround" |
| 172 |
{ |
| 173 |
text[NORMAL] = @fg_color |
| 174 |
text[PRELIGHT] = @selected_fg_color |
| 175 |
text[SELECTED] = @selected_fg_color |
| 176 |
text[ACTIVE] = @fg_color |
| 177 |
text[INSENSITIVE] = darker (@bg_color) |
| 178 |
} |
| 179 |
widget "*.gtk-combobox-popup-menu.*" style "crux-menuitem-text-is-fg-color-workaround" |
| 180 |
|
| 181 |
# Work around the usage of GtkLabel inside GtkListItems to display text. |
| 182 |
# This breaks because the label is shown on a background that is based on the |
| 183 |
# base color set. |
| 184 |
style "crux-fg-is-text-color-workaround" |
| 185 |
{ |
| 186 |
fg[NORMAL] = @text_color |
| 187 |
fg[PRELIGHT] = @text_color |
| 188 |
fg[ACTIVE] = @selected_fg_color |
| 189 |
fg[SELECTED] = @selected_fg_color |
| 190 |
fg[INSENSITIVE] = darker (@bg_color) |
| 191 |
} |
| 192 |
widget_class "*<GtkListItem>*" style "crux-fg-is-text-color-workaround" |
| 193 |
# The same problem also exists for GtkCList and GtkCTree |
| 194 |
# Only match GtkCList and not the parent widgets, because that would also change the headers. |
| 195 |
widget_class "*<GtkCList>" style "crux-fg-is-text-color-workaround" |
| 196 |
|
| 197 |
|