~dashua/dusttheme/gtk-2.0_update

« back to all changes in this revision

Viewing changes to Dust/gtk-2.0/apps/nautilus.rc

  • Committer: James Schriver
  • Date: 2011-06-10 14:02:05 UTC
  • Revision ID: jws141@gmail.com-20110610140205-7ekc4irs9chzy0z6
* Add apps assests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ==============================================================================
 
2
# NAUTILUS SPECIFIC SETTINGS
 
3
# ==============================================================================
 
4
 
 
5
# Part of the code below and some widgets [artwork] have been taken from the elementary theme (copyright Daniel Fore) ...
 
6
# ... and from the Dust theme (preinstalled in Ubuntu).
 
7
# The nautilus elementary breadcrumbs are taken from the Ubuntu One Control Panel artwork.
 
8
# ... the rest of the code was written by Victor E and edited By Francisco V
 
9
# Re-written by me to my personal liking /me sniffles
 
10
 
 
11
style "nautilus_info_pane"
 
12
{
 
13
        bg[NORMAL] = @bg_color
 
14
}
 
15
 
 
16
style "nautilus-defaults"
 
17
{
 
18
 
 
19
        # Color scheme
 
20
        color["light_text_color"]       = "#DFDBD2"
 
21
        color["dark_text_color"]        = "#4C4C4C"
 
22
        color["bg_color_dark"]          = "#3C3B37"
 
23
        color["bg_color_light"]         = "#DFDBD2"
 
24
        color["fg_color_light"]         = "#DFDBD2"
 
25
        color["fg_color_dark"]          = "#4C4C4C"
 
26
        color["selected_fg_color_dark"] = "#3C3B37"
 
27
}
 
28
 
 
29
style "dark-toolbar" = "nautilus-defaults"
 
30
{
 
31
        engine "murrine" 
 
32
                        { 
 
33
                        contrast = 1.4
 
34
                        }
 
35
 
 
36
        GtkButton::child-displacement-y = 0
 
37
 
 
38
        fg[NORMAL]        = @fg_color_light
 
39
        fg[PRELIGHT]      = shade (1.15, @fg_color_dark)
 
40
        fg[ACTIVE]        = @fg_color_dark
 
41
        fg[SELECTED]      = @selected_fg_color_dark
 
42
        fg[INSENSITIVE]   = shade (0.5, @fg_color_dark)
 
43
 
 
44
        bg[NORMAL]        = @bg_color_dark
 
45
        bg[ACTIVE]        = shade (0.8, @bg_color_dark)
 
46
        bg[SELECTED]      = @selected_bg_color
 
47
        bg[PRELIGHT]      = shade (1.0, @fg_color_dark)
 
48
        bg[INSENSITIVE]   = shade (0.85, @bg_color_dark)
 
49
 
 
50
        text[NORMAL]      = @light_text_color
 
51
        text[PRELIGHT]    = shade (1.15, @light_text_color)
 
52
        text[SELECTED]    = @light_text_color
 
53
        text[ACTIVE]      = @light_text_color
 
54
        text[INSENSITIVE] = mix (0.5, @fg_color, @light_text_color)
 
55
}
 
56
 
 
57
style "ViewModeButton" = "nautilus-defaults"
 
58
{
 
59
        xthickness = 0
 
60
        ythickness = 0
 
61
 
 
62
        #painting the background (avoiding visual glitches on nautilus elementary 2.32.2 by using pixmap)
 
63
        
 
64
        engine "pixmap" 
 
65
        {
 
66
        
 
67
                image { 
 
68
                        function = BOX
 
69
                        state = NORMAL
 
70
                        file = "/img/ViewMode_background.png"
 
71
                        border = {0,0,0,0}
 
72
                        stretch = TRUE
 
73
                      }
 
74
 
 
75
                image { 
 
76
                        function = BOX
 
77
                        state = SELECTED
 
78
                        file = "/img/ViewMode_selected.png"
 
79
                        border = {0,0,0,0}
 
80
                        stretch = TRUE
 
81
                      }
 
82
                image { 
 
83
                        function = BOX
 
84
                        state = PRELIGHT
 
85
                        file = "/img/ViewMode_prelight.png"
 
86
                        border = { 0,0,0,0}
 
87
                        stretch = TRUE
 
88
                      }
 
89
        }
 
90
}
 
91
 
 
92
style "nautilus-breadcrumbs" = "nautilus-defaults"
 
93
{
 
94
        xthickness = 6
 
95
        ythickness = 3
 
96
 
 
97
        GtkButton::inner-border = {0,0,0,0}
 
98
 
 
99
        fg[NORMAL]      = @fg_color_dark
 
100
        fg[ACTIVE]      = @fg_color_light  # This lets you use a dark breadcrumb... for the SELECTED state
 
101
        
 
102
        fg[PRELIGHT]    = @fg_color_dark
 
103
        
 
104
        engine "pixmap"
 
105
        {       
 
106
                image
 
107
                {
 
108
                        function                = BOX
 
109
                        recolorable             = TRUE
 
110
                        state                   = PRELIGHT
 
111
                        file                    = "/img/breadcrumb_prelight.png"
 
112
                        border                  = {3,13,3,3}
 
113
                        stretch                 = TRUE
 
114
                }               
 
115
          
 
116
                image
 
117
                {
 
118
                        function                = BOX
 
119
                        recolorable             = TRUE
 
120
                        state                   = NORMAL
 
121
                        file                    = "/img/breadcrumb_normal.png"
 
122
                        border                  = {3,13,3,3 }
 
123
                        stretch                 = TRUE
 
124
                }
 
125
                
 
126
                image
 
127
                {
 
128
                        function                = BOX
 
129
                        recolorable             = TRUE
 
130
                        state                   = ACTIVE
 
131
                        file                    = "/img/breadcrumb_selected.png"
 
132
                        border                  = {3,13,3,3}
 
133
                        stretch                 = TRUE
 
134
                }
 
135
 
 
136
                image
 
137
                {
 
138
                        function                = BOX
 
139
                        recolorable             = TRUE
 
140
                        state                   = INSENSITIVE
 
141
                        file                    = "/img/breadcrumb_prelight.png"
 
142
                        border                  = {0,0,0,0}
 
143
                        stretch                 = TRUE
 
144
                } 
 
145
 
 
146
                image
 
147
                {
 
148
                        function                = BOX
 
149
                        recolorable             = TRUE
 
150
                        state                   = SELECTED
 
151
                        file                    = "/img/breadcrumb_normal.png"
 
152
                        border                  = {3,13,3,3}
 
153
                        stretch                 = TRUE
 
154
                }
 
155
        }
 
156
}
 
157
 
 
158
style "nautilus-left-slider" = "nautilus-defaults"
 
159
{
 
160
        fg[NORMAL] = @fg_color_dark
 
161
 
 
162
        xthickness = 0
 
163
        ythickness = 3
 
164
        
 
165
        engine "pixmap"
 
166
        {
 
167
                image
 
168
                {
 
169
                        function                = BOX
 
170
                        file                    = "/img/left_slider_normal.png"
 
171
                        border                  = {3,3,3,3}
 
172
                        stretch                 = TRUE
 
173
                }
 
174
        }
 
175
 
 
176
}
 
177
 
 
178
style "nautilus-right-slider" = "nautilus-defaults"
 
179
{
 
180
        fg[NORMAL] = @fg_color_dark
 
181
 
 
182
        xthickness = 0
 
183
        ythickness = 3
 
184
        
 
185
        engine "pixmap"
 
186
        {
 
187
                image
 
188
                {
 
189
                        function                = BOX
 
190
                        file                    = "/img/right_slider_normal.png"
 
191
                        border                  = {3,3,3,3}
 
192
                        stretch                 = TRUE
 
193
                }
 
194
        }
 
195
}
 
196
 
 
197
style "nautilus-menubar-remove-shadow"
 
198
{
 
199
        GtkMenuBar::shadow-type = GTK_SHADOW_NONE
 
200
}
 
201
 
 
202
style "nautilus-sidebar"
 
203
{
 
204
        GtkTreeView::horizontal_separator       = 12
 
205
        GtkTreeView::vertical_separator         = 4
 
206
        GtkTreeView::even_row_color             = @bg_color #Background color of the sidebar
 
207
        
 
208
}
 
209
 
 
210
style "Nautilus-Vertical-Separator" {
 
211
 
 
212
        GtkPaned::handle-size           = 0     # NO SEPARATOR
 
213
 
 
214
}
 
215
 
 
216
style "dark-toolbar-light-text" = "nautilus-defaults"
 
217
{
 
218
 
 
219
        fg[NORMAL]        = @fg_color_light
 
220
        fg[PRELIGHT]      = shade (1.15, @fg_color_light)
 
221
        fg[ACTIVE]        = @fg_color_light
 
222
        fg[INSENSITIVE]   = shade (0.5, @fg_color_dark)
 
223
 
 
224
        bg[NORMAL]        = @bg_color_dark
 
225
        bg[ACTIVE]        = shade (0.8, @bg_color_dark)
 
226
        bg[SELECTED]      = @bg_color_dark
 
227
        bg[INSENSITIVE]   = shade (0.85, @bg_color_dark)
 
228
        
 
229
        text[NORMAL]      = @light_text_color
 
230
        text[PRELIGHT]    = shade (1.15, @fg_color_light)
 
231
        text[ACTIVE]      = @fg_color_light
 
232
        text[INSENSITIVE] = mix (0.5, @fg_color, @fg_color_dark)
 
233
}
 
234
 
 
235
widget_class    "*Nautilus*<GtkNotebook>*<GtkEventBox>" style   "nautilus_info_pane"
 
236
 
 
237
# Nautilus elementary breadcrumbs:
 
238
widget_class    "*NautilusPathBar.*ToggleButton*"       style   "nautilus-breadcrumbs" 
 
239
widget          "Nautilus*left_slider*"                 style   "nautilus-left-slider" 
 
240
widget          "Nautilus*right_slider*"                style   "nautilus-right-slider"
 
241
 
 
242
# Removing the menubar shadow from Nautilus since there's no menu inside the window.
 
243
# Comment the following line out (add a '#' at the beginning of the line) to enable the menu shadow if you're using Nautilus without a global menu and the menu is enabled.
 
244
widget          "*Nautilus**"                           style   "nautilus-menubar-remove-shadow"
 
245
 
 
246
# The following line enables the elementary-styled zoom slider for Nautilus
 
247
#widget_class   "*Nautilus*Scale*"                      style   "nautilus-scale"
 
248
 
 
249
#Enable the custom style for the SidePane
 
250
widget_class    "*Nautilus*NautilusSidePane*"           style   "nautilus-sidebar"
 
251
 
 
252
#Comment out the following line if you'd like to have a vertical separator between the sidebar and the principal panel
 
253
widget          "*Nautilus*Splitter"                    style   "Nautilus-Vertical-Separator"
 
254
 
 
255
#Enables a custom style for the ViewModeButton
 
256
widget          "*Nautilus*ModeButton*"                 style   "ViewModeButton"
 
257
 
 
258
# Workarounds:
 
259
widget          "*Nautilus*Zoom*"                       style   "dark-toolbar-light-text"