~cimi/light-themes/gtk+3

« back to all changes in this revision

Viewing changes to Light/gtk-2.0/scrollbars/scrollbar.rc

  • Committer: Kenneth Wimer
  • Date: 2010-03-04 19:25:28 UTC
  • Revision ID: kwwii@clive-20100304192528-rs73rasgqhx32w25
Final naming

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
################################################################################
2
 
# SCROLLBAR
3
 
################################################################################
4
 
 
5
 
style "scrollbar"
6
 
{
7
 
        # The values I set here have to do with the relative size of three graphic elements
8
 
    # I have used: the slider, the arrow box, and the trough. They all have the same width
9
 
    # of 15 pixels, but gtk wants to put in some spacing between them. It seems like it
10
 
    # places the sliders inside the trough with a default 1 pixel border on either side of the slider,
11
 
    # so that the trough has its width stretched by an additional two pixels(?). Setting the
12
 
    # trough border makes the arrow box sit on top of the trough squarely, by making sure that
13
 
    # the trough stays the same width as the arrowbox(?). I could be totally wrong here.
14
 
    GtkRange::trough_border = 0
15
 
    GtkRange::slider_width = 17
16
 
 
17
 
    # This sets the size of the steppers (arrow buttons on the end of the scrollbar). 
18
 
    # The image I am using is 15x15 pixels, and if I dont set this a one pixel line 
19
 
    # gets cut off of the top of the "up" stepper.
20
 
    GtkRange::stepper_size = 17
21
 
 
22
 
    # Set a minimum length for the slider. Since I set the border on the slider 
23
 
    # image to 15 pixels on either end of the slider I want the min length to be 
24
 
    # at least 30 pixels to avoid an ugly slider when gtk wants to make it smaller 
25
 
    # than 30 pixels.
26
 
    GtkScrollbar::min-slider-length = 64
27
 
 
28
 
        engine "pixmap" 
29
 
        {
30
 
                # Horizontal slider background
31
 
                image 
32
 
                {
33
 
            function        = BOX
34
 
            recolorable     = TRUE
35
 
            detail          = "trough"
36
 
            file            = "scrollbars/trough-scrollbar-horiz.png"
37
 
            border          = { 30, 30, 0, 0 }
38
 
            stretch         = TRUE
39
 
            orientation     = HORIZONTAL
40
 
        }
41
 
            
42
 
            # Vertical slider background
43
 
            image 
44
 
                {
45
 
            function        = BOX
46
 
            recolorable     = TRUE
47
 
            detail          = "trough"
48
 
            file            = "scrollbars/trough-scrollbar-vert.png"
49
 
            border          = { 0, 0, 30, 30 }
50
 
            stretch         = TRUE
51
 
            orientation     = VERTICAL
52
 
        }
53
 
 
54
 
                # Normal horizontal slider
55
 
            image 
56
 
                {
57
 
                function        = SLIDER
58
 
                recolorable     = TRUE
59
 
                state           = NORMAL
60
 
                file            = "scrollbars/slider-horiz.png"
61
 
                border          = { 15, 15, 6, 6 }
62
 
                stretch         = TRUE
63
 
                orientation     = HORIZONTAL
64
 
                overlay_file    = "scrollbars/thumb-h-scrollbar.png"
65
 
                overlay_stretch = FALSE
66
 
            }
67
 
                
68
 
                # Horizontal slider (active)
69
 
                image 
70
 
                {
71
 
                function        = SLIDER
72
 
                recolorable     = TRUE
73
 
                state           = ACTIVE
74
 
                file            = "scrollbars/slider-horiz-prelight.png"
75
 
                border          = { 15, 15, 6, 6 }
76
 
                stretch         = TRUE
77
 
                orientation     = HORIZONTAL
78
 
                overlay_file    = "scrollbars/thumb-h-scrollbar.png"
79
 
                overlay_stretch = FALSE
80
 
                }
81
 
 
82
 
                # Horizontal slider (mouse over)
83
 
            image 
84
 
                {
85
 
                function        = SLIDER 
86
 
                recolorable     = TRUE
87
 
                state           = PRELIGHT
88
 
                file            = "scrollbars/slider-horiz-prelight.png"
89
 
                border          = { 15, 15, 6, 6 }
90
 
                stretch         = TRUE
91
 
                orientation     = HORIZONTAL
92
 
                overlay_file    = "scrollbars/thumb-h-scrollbar.png"
93
 
                overlay_stretch = FALSE
94
 
            }
95
 
            
96
 
            # Horizontal slider (Insesitive)
97
 
                image 
98
 
                {
99
 
                function        = SLIDER 
100
 
                recolorable     = TRUE
101
 
                state           = INSENSITIVE
102
 
                file            = "scrollbars/slider-horiz.png"
103
 
                border          = { 15, 15, 6, 6 }
104
 
                stretch         = TRUE
105
 
                orientation     = HORIZONTAL
106
 
                overlay_file    = "scrollbars/thumb-h-scrollbar.png"
107
 
                overlay_stretch = FALSE
108
 
            }
109
 
 
110
 
            # Normal vertical slider
111
 
            image 
112
 
                {
113
 
                function        = SLIDER
114
 
                recolorable     = TRUE
115
 
                state           = NORMAL
116
 
                file            = "scrollbars/slider-vert.png"
117
 
                border          = { 6, 6, 15, 15 }
118
 
                stretch         = TRUE
119
 
                orientation     = VERTICAL
120
 
                overlay_file    = "scrollbars/thumb-v-scrollbar.png"
121
 
                overlay_stretch = FALSE
122
 
                }
123
 
                
124
 
                # Vertical slider (Active)
125
 
                image 
126
 
                {
127
 
                function        = SLIDER
128
 
                recolorable     = TRUE
129
 
                state           = ACTIVE
130
 
                file            = "scrollbars/slider-vert.png"
131
 
                border          = { 6, 6, 15, 15 }
132
 
                stretch         = TRUE
133
 
                orientation     = VERTICAL
134
 
                overlay_file    = "scrollbars/thumb-v-scrollbar.png"
135
 
                overlay_stretch = FALSE
136
 
                }
137
 
 
138
 
                # Vertical slider (mouse over)
139
 
            image 
140
 
                {
141
 
                function        = SLIDER 
142
 
                recolorable     = TRUE
143
 
                state           = PRELIGHT
144
 
                file            = "scrollbars/slider-vert-prelight.png"
145
 
                border          = { 6, 6, 15, 15 }
146
 
                stretch         = TRUE
147
 
                orientation     = VERTICAL
148
 
                overlay_file    = "scrollbars/thumb-v-scrollbar.png"
149
 
                overlay_stretch = FALSE
150
 
            }
151
 
            
152
 
            # Vertical slider (Insesitive)
153
 
                image 
154
 
                {
155
 
                function        = SLIDER 
156
 
                recolorable     = TRUE
157
 
                state           = INSENSITIVE
158
 
                file            = "scrollbars/slider-vert-prelight.png"
159
 
                border          = { 6, 6, 15, 15 }
160
 
                stretch         = TRUE
161
 
                orientation     = VERTICAL
162
 
                overlay_file    = "scrollbars/thumb-v-scrollbar.png"
163
 
                overlay_stretch = FALSE
164
 
            }
165
 
 
166
 
################################################################################
167
 
# SCROLLBAR STEPPERS
168
 
################################################################################
169
 
 
170
 
        # Up
171
 
    image 
172
 
    {
173
 
      function                  = STEPPER
174
 
      recolorable               = TRUE
175
 
      state                             = NORMAL
176
 
      file                              = "scrollbars/stepper-up.png"
177
 
      #border                   = { 2, 2, 2, 2 }
178
 
      stretch                   = TRUE
179
 
      arrow_direction   = UP
180
 
    }
181
 
        image 
182
 
    {
183
 
      function                  = STEPPER
184
 
      recolorable               = TRUE
185
 
      state                             = PRELIGHT
186
 
      file                              = "scrollbars/stepper-up.png"
187
 
      #border                   = { 12, 2, 2, 9 }
188
 
      stretch                   = TRUE
189
 
      arrow_direction   = UP
190
 
    }
191
 
 image 
192
 
    {
193
 
      function                  = STEPPER
194
 
      recolorable               = TRUE
195
 
      state                             = ACTIVE
196
 
      file                              = "scrollbars/stepper-up.png"
197
 
      #border                   = { 12, 2, 2, 9 }
198
 
      stretch                   = TRUE
199
 
      arrow_direction   = UP
200
 
    }
201
 
 image 
202
 
    {
203
 
      function                  = STEPPER
204
 
      recolorable               = TRUE
205
 
      state                             = INSENSITIVE
206
 
      file                              = "scrollbars/stepper-up.png"
207
 
      #border                   = { 12, 2, 2, 9 }
208
 
      stretch                   = TRUE
209
 
      arrow_direction   = UP
210
 
    }
211
 
 
212
 
 ######### DOWN ############
213
 
 
214
 
 
215
 
    image 
216
 
    {
217
 
      function                  = STEPPER
218
 
      recolorable               = TRUE
219
 
      state                             = NORMAL
220
 
      file                              = "scrollbars/stepper-down.png"
221
 
      #border                   = { 12, 2, 10, 2 }
222
 
      stretch                   = TRUE
223
 
      arrow_direction   = DOWN
224
 
    }
225
 
 image 
226
 
    {
227
 
      function                  = STEPPER
228
 
      recolorable               = TRUE
229
 
      state                             = PRELIGHT
230
 
      file                              = "scrollbars/stepper-down.png"
231
 
      #border                   = { 12, 2, 10, 2 }
232
 
      stretch                   = TRUE
233
 
      arrow_direction   = DOWN
234
 
    }
235
 
 image 
236
 
    {
237
 
      function                  = STEPPER
238
 
      recolorable               = TRUE
239
 
      state                             = ACTIVE
240
 
      file                              = "scrollbars/stepper-down.png"
241
 
      #border                   = { 12, 2, 10, 2 }
242
 
      stretch                   = TRUE
243
 
      arrow_direction   = DOWN
244
 
    }
245
 
 image 
246
 
    {
247
 
      function                  = STEPPER
248
 
      recolorable               = TRUE
249
 
      state                             = INSENSITIVE
250
 
      file                              = "scrollbars/stepper-down.png"
251
 
      #border                   = { 12, 2, 10, 2 }
252
 
      stretch                   = TRUE
253
 
      arrow_direction   = DOWN
254
 
    }
255
 
 
256
 
############ RIGHT ################
257
 
 
258
 
    image 
259
 
    {
260
 
      function                  = STEPPER
261
 
      recolorable               = TRUE
262
 
      state                             = NORMAL
263
 
      file                              = "scrollbars/stepper-right.png"
264
 
      #border                   = { 2, 9, 2, 13 }
265
 
      stretch                   = TRUE
266
 
      arrow_direction   = RIGHT
267
 
    }
268
 
 image 
269
 
    {
270
 
      function                  = STEPPER
271
 
      recolorable               = TRUE
272
 
      state                             = PRELIGHT
273
 
      file                              = "scrollbars/stepper-right.png"
274
 
      #border                   = { 2, 9, 2, 13 }
275
 
      stretch                   = TRUE
276
 
      arrow_direction   = RIGHT
277
 
    }
278
 
 image 
279
 
    {
280
 
      function                  = STEPPER
281
 
      recolorable               = TRUE
282
 
      state                             = ACTIVE
283
 
      file                              = "scrollbars/stepper-right.png"
284
 
      #border                   = { 2, 9, 2, 13 }
285
 
      stretch                   = TRUE
286
 
      arrow_direction   = RIGHT
287
 
    }
288
 
 image 
289
 
    {
290
 
      function                  = STEPPER
291
 
      recolorable               = TRUE
292
 
      state                             = INSENSITIVE
293
 
      file                              = "scrollbars/stepper-right.png"
294
 
      #border                   = { 2, 9, 2, 13 }
295
 
      stretch                   = TRUE
296
 
      arrow_direction   = RIGHT
297
 
    }
298
 
 
299
 
############### LEFT ###################
300
 
 
301
 
 
302
 
    image 
303
 
    {
304
 
      function                  = STEPPER
305
 
      recolorable               = TRUE
306
 
      state                             = NORMAL
307
 
      file                              = "scrollbars/stepper-left.png"
308
 
      #border                   = { 2, 9, 2, 13 }
309
 
      stretch                   = TRUE
310
 
      arrow_direction   = LEFT
311
 
    }
312
 
  image 
313
 
    {
314
 
      function                  = STEPPER
315
 
      recolorable               = TRUE
316
 
      state                             = PRELIGHT
317
 
      file                              = "scrollbars/stepper-left.png"
318
 
      #border                   = { 2, 9, 2, 13 }
319
 
      stretch                   = TRUE
320
 
      arrow_direction   = LEFT
321
 
    }
322
 
  image 
323
 
    {
324
 
      function                  = STEPPER
325
 
      recolorable               = TRUE
326
 
      state                             = ACTIVE
327
 
      file                              = "scrollbars/stepper-left.png"
328
 
      #border                   = { 2, 9, 2, 13 }
329
 
      stretch                   = TRUE
330
 
      arrow_direction   = LEFT
331
 
    }
332
 
  image 
333
 
    {
334
 
      function                  = STEPPER
335
 
      recolorable               = TRUE
336
 
      state                             = INSENSITIVE
337
 
      file                              = "scrollbars/stepper-left.png"
338
 
      #border                   = { 2, 9, 2, 13 }
339
 
      stretch                   = TRUE
340
 
      arrow_direction   = LEFT
341
 
    }
342
 
        }
343
 
}
344
 
class "GtkScrollbar"                    style "scrollbar"
345
 
class "GtkHScrollbar"           style "scrollbar"
346
 
class "GtkVScrollbar"           style "scrollbar"