Ttk Themes

Check-in [b32541b548]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Imported new Arc theme, based on the corresponding Gtk+ 2/3 themes from https://github.com/horst3180/Arc-theme.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b32541b5482a08ffa48e959ea9a21e58ba02f631
User & Date: sgolovan 2016-01-24 12:31:50
Context
2016-01-24
18:55
Added spinbox to the demonstrated widgets. Added a few distinctive looks for the spinbox buttons. Leaf check-in: 84bc058bd0 user: sgolovan tags: trunk
12:31
Imported new Arc theme, based on the corresponding Gtk+ 2/3 themes from https://github.com/horst3180/Arc-theme. check-in: b32541b548 user: sgolovan tags: trunk
12:28
Fixed theme loading for newer Tk. check-in: 67d8413143 user: sgolovan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.

1
2
3
4
5
6



7
8
9
10
11
12
13
2016-01-24  Sergei Golovan <sgolovan@nes.ru>

	* *: Imported themes to a fossil repository.

	* themes/aquablue/pkgIndex.tcl, themes/clearlooks/pkgIndex.tcl,
	  themes/radiance/pkgIndex.tcl: Fixed theme loading for newer Tk.




2011-06-26  Schelte Bron  <sbron@users.sourceforge.net>
	* plastik/plastik.tcl: Make the visual appearance of a non-readonly
	combobox in disabled state different from the normal state.

2010-11-22  Schelte Bron  <sbron@users.sourceforge.net>
	* plastik/plastik.tcl: The plastik theme generated an error on Tcl/Tk






>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2016-01-24  Sergei Golovan <sgolovan@nes.ru>

	* *: Imported themes to a fossil repository.

	* themes/aquablue/pkgIndex.tcl, themes/clearlooks/pkgIndex.tcl,
	  themes/radiance/pkgIndex.tcl: Fixed theme loading for newer Tk.

	* themes/Arc/*: Imported new Arc theme, based on the corresponding
	  Gtk+ 2/3 themes from https://github.com/horst3180/Arc-theme.

2011-06-26  Schelte Bron  <sbron@users.sourceforge.net>
	* plastik/plastik.tcl: Make the visual appearance of a non-readonly
	combobox in disabled state different from the normal state.

2010-11-22  Schelte Bron  <sbron@users.sourceforge.net>
	* plastik/plastik.tcl: The plastik theme generated an error on Tcl/Tk

Added themes/Arc/Arc/arrow-down-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-down-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-down-small-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-down-small-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-down-small.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-down.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-left-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-left-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-left.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-right-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-right-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-right.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-up-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-up-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-up-small-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-up-small-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-up-small.png.

cannot compute difference between binary files

Added themes/Arc/Arc/arrow-up.png.

cannot compute difference between binary files

Added themes/Arc/Arc/button-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/button-empty.png.

cannot compute difference between binary files

Added themes/Arc/Arc/button-focus.png.

cannot compute difference between binary files

Added themes/Arc/Arc/button-hover.png.

cannot compute difference between binary files

Added themes/Arc/Arc/button-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/button.png.

cannot compute difference between binary files

Added themes/Arc/Arc/checkbox-checked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/checkbox-checked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/checkbox-unchecked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/checkbox-unchecked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button-active-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button-hover.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button-insensitive-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-button.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-focus-notebook-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-focus-notebook.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-focus-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-focus.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-insensitive-notebook-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-insensitive-notebook.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-insensitive-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-notebook-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-notebook.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/combo-entry.png.

cannot compute difference between binary files

Added themes/Arc/Arc/down-background-disable-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/down-background-disable.png.

cannot compute difference between binary files

Added themes/Arc/Arc/down-background-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/down-background.png.

cannot compute difference between binary files

Added themes/Arc/Arc/empty.png.

cannot compute difference between binary files

Added themes/Arc/Arc/entry-border-active-bg-solid.png.

cannot compute difference between binary files

Added themes/Arc/Arc/entry-border-active-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/entry-border-bg-solid.png.

cannot compute difference between binary files

Added themes/Arc/Arc/entry-border-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/entry-border-disabled-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/entry-border-fill.png.

cannot compute difference between binary files

Added themes/Arc/Arc/focus-line.png.

cannot compute difference between binary files

Added themes/Arc/Arc/frame-gap-end.png.

cannot compute difference between binary files

Added themes/Arc/Arc/frame-gap-start.png.

cannot compute difference between binary files

Added themes/Arc/Arc/frame.png.

cannot compute difference between binary files

Added themes/Arc/Arc/handle-h.png.

cannot compute difference between binary files

Added themes/Arc/Arc/handle-v.png.

cannot compute difference between binary files

Added themes/Arc/Arc/inline-toolbar.png.

cannot compute difference between binary files

Added themes/Arc/Arc/labelframe.png.

cannot compute difference between binary files

Added themes/Arc/Arc/line-h.png.

cannot compute difference between binary files

Added themes/Arc/Arc/line-v.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-arrow-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-arrow.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-checkbox-checked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-checkbox-checked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-checkbox-unchecked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-checkbox-unchecked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-radio-checked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-radio-checked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-radio-unchecked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menu-radio-unchecked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menubar.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menubar_button.png.

cannot compute difference between binary files

Added themes/Arc/Arc/menuitem.png.

cannot compute difference between binary files

Added themes/Arc/Arc/minus.png.

cannot compute difference between binary files

Added themes/Arc/Arc/notebook-entry-border-active-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/notebook-entry-border-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/notebook-entry-border-disabled-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/notebook-gap-horiz.png.

cannot compute difference between binary files

Added themes/Arc/Arc/notebook-gap-vert.png.

cannot compute difference between binary files

Added themes/Arc/Arc/notebook.png.

cannot compute difference between binary files

Added themes/Arc/Arc/null.png.

cannot compute difference between binary files

Added themes/Arc/Arc/plus.png.

cannot compute difference between binary files

Added themes/Arc/Arc/progressbar.png.

cannot compute difference between binary files

Added themes/Arc/Arc/progressbar_v.png.

cannot compute difference between binary files

Added themes/Arc/Arc/radio-checked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/radio-checked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/radio-unchecked-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/radio-unchecked.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-horiz-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-horiz-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-horiz-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-horiz.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-insensitive.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-vert-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-vert-insens.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-vert-prelight.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider-vert.png.

cannot compute difference between binary files

Added themes/Arc/Arc/slider.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tab-bottom-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tab-left-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tab-right-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tab-top-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tab-top-hover.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tab-top.png.

cannot compute difference between binary files

Added themes/Arc/Arc/toolbar-entry-border-active-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/toolbar-entry-border-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/toolbar-entry-border-disabled-bg.png.

cannot compute difference between binary files

Added themes/Arc/Arc/toolbar.png.

cannot compute difference between binary files

Added themes/Arc/Arc/tree_header.png.

cannot compute difference between binary files

Added themes/Arc/Arc/treeview.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-horizontal-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-horizontal.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-progressbar.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-progressbar_v.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-scrollbar-horiz.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-scrollbar-vert.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-vertical-active.png.

cannot compute difference between binary files

Added themes/Arc/Arc/trough-vertical.png.

cannot compute difference between binary files

Added themes/Arc/Arc/up-background-disable-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/up-background-disable.png.

cannot compute difference between binary files

Added themes/Arc/Arc/up-background-rtl.png.

cannot compute difference between binary files

Added themes/Arc/Arc/up-background.png.

cannot compute difference between binary files

Added themes/Arc/arc.tcl.

























































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
# arc.tcl --
#
# Arc pixmap theme for the ttk package.
#
#  Copyright (c) 2015 Sergei Golovan <sgolovan@nes.ru>

package require Tk 8.6.0

namespace eval ttk::theme::Arc {

    variable version 0.1
    package provide ttk::theme::Arc $version

    variable colors
    array set colors {
        -fg             "#5c616c"
        -bg             "#f5f6f7"
        -disabledbg     "#fbfcfc"
        -disabledfg     "#a9acb2"
        -selectbg       "#5294e2"
        -selectfg       "#ffffff"
        -window         "#ffffff"
        -focuscolor     "#5c616c"
        -checklight     "#fbfcfc"
    }

    proc LoadImages {imgdir} {
        variable I
        foreach file [glob -directory $imgdir *.png] {
            set img [file tail [file rootname $file]]
            set I($img) [image create photo -file $file -format png]
        }
    }

    LoadImages [file join [file dirname [info script]] Arc]

    ttk::style theme create Arc -parent default -settings {
        ttk::style configure . \
            -background $colors(-bg) \
            -foreground $colors(-fg) \
            -troughcolor $colors(-bg) \
            -selectbackground $colors(-selectbg) \
            -selectforeground $colors(-selectfg) \
            -fieldbackground $colors(-window) \
            -font TkDefaultFont \
            -borderwidth 1 \
            -focuscolor $colors(-focuscolor)

        ttk::style map . -foreground [list disabled $colors(-disabledfg)]

        #
        # Layouts:
        #

        ttk::style layout TButton {
            Button.button -children {
                Button.focus -children {
                    Button.padding -children {
                        Button.label -side left -expand true
                    }
                }
            }
        }

        ttk::style layout Toolbutton {
            Toolbutton.button -children {
                Toolbutton.focus -children {
                    Toolbutton.padding -children {
                        Toolbutton.label -side left -expand true
                    }
                }
            }
        }

        ttk::style layout Vertical.TScrollbar {
            Vertical.Scrollbar.trough -sticky ns -children {
                Vertical.Scrollbar.thumb -expand true
            }
        }

        ttk::style layout Horizontal.TScrollbar {
            Horizontal.Scrollbar.trough -sticky ew -children {
                Horizontal.Scrollbar.thumb -expand true
            }
        }

        ttk::style layout TMenubutton {
            Menubutton.button -children {
                Menubutton.focus -children {
                    Menubutton.padding -children {
                        Menubutton.indicator -side right
                        Menubutton.label -side right -expand true
                    }
                }
            }
        }

        ttk::style layout TCombobox {
            Combobox.field -sticky nswe -children {
                Combobox.downarrow -side right -sticky ns -children {
                    Combobox.arrow -side right
                }
                Combobox.padding -expand true -sticky nswe -children {
                    Combobox.textarea -sticky nswe
                }
            }
        }

        ttk::style layout TSpinbox {
            Spinbox.field -side top -sticky we -children {
                Spinbox.buttons -side right -children {
                    null -side right -sticky {} -children {
                        Spinbox.uparrow -side top -sticky nse -children {
                            Spinbox.arrowup -side right -sticky e
                        }
                        Spinbox.downarrow -side bottom -sticky nse -children {
                            Spinbox.arrowdown -side right -sticky e
                        }
                    }
                }
                Spinbox.padding -sticky nswe -children {
                    Spinbox.textarea -sticky nswe
                }
            }
        }

        #
        # Elements:
        #

        ttk::style element create Button.button image [list $I(button) \
                pressed     $I(button-active) \
                active      $I(button-hover) \
                disabled    $I(button-insensitive) \
            ] -border 3 -padding {3 2} -sticky ewns

        ttk::style element create Toolbutton.button image [list $I(button-empty) \
                selected            $I(button-active) \
                pressed             $I(button-active) \
                {active !disabled}  $I(button-hover) \
            ] -border 3 -padding {3 2} -sticky news

        ttk::style element create Checkbutton.indicator image [list $I(checkbox-unchecked) \
                disabled            $I(checkbox-unchecked-insensitive) \
                {active selected}   $I(checkbox-checked) \
                {pressed selected}  $I(checkbox-checked) \
                active              $I(checkbox-unchecked) \
                selected            $I(checkbox-checked) \
                {disabled selected} $I(checkbox-checked-insensitive) \
            ] -width 22 -sticky w

        ttk::style element create Radiobutton.indicator image [list $I(radio-unchecked) \
                disabled            $I(radio-unchecked-insensitive) \
                {active selected}   $I(radio-checked) \
                {pressed selected}  $I(radio-checked) \
                active              $I(radio-unchecked) \
                selected            $I(radio-checked) \
                {disabled selected} $I(radio-checked-insensitive) \
            ] -width 22 -sticky w

        ttk::style element create Horizontal.Scrollbar.trough image $I(trough-scrollbar-horiz)
        ttk::style element create Horizontal.Scrollbar.thumb \
            image [list $I(slider-horiz) \
                        {pressed !disabled} $I(slider-horiz-active) \
                        {active !disabled}  $I(slider-horiz-prelight) \
                        disabled            $I(slider-horiz-insens) \
            ] -border 6 -sticky ew

        ttk::style element create Vertical.Scrollbar.trough image $I(trough-scrollbar-vert)
        ttk::style element create Vertical.Scrollbar.thumb \
            image [list $I(slider-vert) \
                        {pressed !disabled} $I(slider-vert-active) \
                        {active !disabled}  $I(slider-vert-prelight) \
                        disabled            $I(slider-vert-insens) \
            ] -border 6 -sticky ns

        ttk::style element create Horizontal.Scale.trough \
            image [list $I(trough-horizontal-active) disabled $I(trough-horizontal)] \
            -border {8 5 8 5} -padding 0
        ttk::style element create Horizontal.Scale.slider \
            image [list $I(slider) disabled $I(slider-insensitive) active $I(slider-prelight)] \
            -sticky {}

        ttk::style element create Vertical.Scale.trough \
            image [list $I(trough-vertical-active) disabled $I(trough-vertical)] \
            -border {5 8 5 8} -padding 0
        ttk::style element create Vertical.Scale.slider \
            image [list $I(slider) disabled $I(slider-insensitive) active $I(slider-prelight)] \
            -sticky {}

        ttk::style element create Entry.field \
            image [list $I(entry-border-bg-solid) \
                        focus $I(entry-border-active-bg-solid) \
                        disabled $I(entry-border-disabled-bg)] \
            -border 3 -padding {6 4} -sticky news

        ttk::style element create Labelframe.border image $I(labelframe) \
            -border 4 -padding 4 -sticky news

        ttk::style element create Menubutton.button \
            image [list $I(button) \
                        pressed $I(button-active) \
                        active $I(button-hover) \
                        disabled $I(button-insensitive) \
            ] -sticky news -border 3 -padding {3 2}
        ttk::style element create Menubutton.indicator \
          image [list $I(arrow-down) \
                      active    $I(arrow-down-prelight) \
                      pressed   $I(arrow-down-prelight) \
                      disabled $I(arrow-down-insens) \
          ] -sticky e -width 20

        ttk::style element create Combobox.field \
            image [list $I(combo-entry) \
                {readonly disabled}  $I(button-insensitive) \
                {readonly pressed}   $I(button-active) \
                {readonly focus}     $I(button-focus) \
                {readonly hover}     $I(button-hover) \
                readonly             $I(button) \
                {disabled} $I(combo-entry-insensitive) \
                {focus}    $I(combo-entry-focus) \
                {hover}    $I(combo-entry) \
            ] -border 4 -padding {6 0 0 0}
        ttk::style element create Combobox.downarrow \
            image [list $I(combo-entry-button) \
                        pressed   $I(combo-entry-button-active) \
                        active    $I(combo-entry-button-hover) \
                        disabled  $I(combo-entry-button-insensitive) \
          ] -border 4 -padding {0 10 6 10}
        ttk::style element create Combobox.arrow \
            image [list $I(arrow-down) \
                        active    $I(arrow-down-prelight) \
                        pressed   $I(arrow-down-prelight) \
                        disabled  $I(arrow-down-insens) \
          ]  -sticky e -width 15

        ttk::style element create Spinbox.field \
            image [list $I(combo-entry) focus $I(combo-entry-focus)] \
            -border 4 -padding {6 0 0 0} -sticky news
        ttk::style element create Spinbox.uparrow \
            image [list $I(up-background) \
                        disabled  $I(up-background-disable) \
            ] -width 20 -border {0 2 3 0} -padding {0 5 6 2}
        ttk::style element create Spinbox.arrowup \
            image [list $I(arrow-up-small) \
                        disabled  $I(arrow-up-small-insens) \
                        active    $I(arrow-up-small-prelight) \
                        pressed   $I(arrow-up-small-prelight) \
            ]
        ttk::style element create Spinbox.downarrow \
            image [list $I(down-background) \
                        disabled  $I(down-background-disable) \
            ] -width 20 -border {0 0 3 2} -padding {0 2 6 5}
        ttk::style element create Spinbox.arrowdown \
            image [list $I(arrow-down-small) \
                        disabled  $I(arrow-down-small-insens) \
                        active    $I(arrow-down-small-prelight) \
                        pressed   $I(arrow-down-small-prelight) \
          ]

        ttk::style element create Notebook.client \
            image $I(notebook) -border 1
        ttk::style element create Notebook.tab \
            image [list $I(tab-top) \
                        selected    $I(tab-top-active) \
                        active      $I(tab-top-hover) \
            ] -padding {0 2 0 0} -border 2

        ttk::style element create Horizontal.Progressbar.trough \
            image $I(trough-progressbar_v) -border {5 1 5 1} -padding 1
        ttk::style element create Horizontal.Progressbar.pbar \
            image $I(progressbar_v) -border {4 0 4 0}

        ttk::style element create Vertical.Progressbar.trough \
            image $I(trough-progressbar) -border {1 5 1 5} -padding 1
        ttk::style element create Vertical.Progressbar.pbar \
            image $I(progressbar) -border {0 4 0 4}

        ttk::style element create Treeview.field \
            image $I(treeview) -border 1
        ttk::style element create Treeheading.cell \
            image [list $I(notebook) pressed $I(notebook)] \
            -border 1 -padding 4 -sticky ewns

        ttk::style element create Treeitem.indicator \
            image [list $I(plus) user2 $I(empty) user1 $I(minus)] \
            -width 15 -sticky w

        #ttk::style element create Separator.separator image $I()

        #
        # Settings:
        #

        ttk::style configure TButton -padding {8 4 8 4} -width -10 -anchor center
        ttk::style configure TMenubutton -padding {8 4 4 4}
        ttk::style configure Toolbutton -anchor center
        ttk::style map TCheckbutton -background [list active $colors(-checklight)]
        ttk::style configure TCheckbutton -padding 3
        ttk::style map TRadiobutton -background [list active $colors(-checklight)]
        ttk::style configure TRadiobutton -padding 3
        ttk::style configure TNotebook -tabmargins {0 2 0 0}
        ttk::style configure TNotebook.Tab -padding {6 2 6 2} -expand {0 0 2}
        ttk::style map TNotebook.Tab -expand [list selected {1 2 4 2}]
        ttk::style configure TSeparator -background $colors(-bg)

        # Treeview
        ttk::style configure Treeview -background $colors(-window)
        ttk::style configure Treeview.Item -padding {2 0 0 0}
        ttk::style map Treeview \
            -background [list selected $colors(-selectbg)] \
            -foreground [list selected $colors(-selectfg)]
    }
}

# vim:ts=8:sw=4:sts=4:et

Added themes/Arc/pkgIndex.tcl.































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# pkgIndex.tcl for additional tile pixmap theme Arc.
#
# We don't provide the package is the image subdirectory isn't present,
# or we don't have the right version of Tcl/Tk
#
# To use this automatically within tile, the tile-using application should
# use tile::availableThemes and tile::setTheme 

if {![file isdirectory [file join $dir Arc]]} { return }
if {![package vsatisfies [package provide Tcl] 8.6]} { return }

package ifneeded ttk::theme::Arc 0.1 \
    [list source [file join $dir arc.tcl]]

# vim:ts=8:sw=4:sts=4:et