author | Radek Brich <radek.brich@devl.cz> |
Sun, 22 Feb 2015 09:53:13 +0100 | |
changeset 119 | dd91747504dd |
parent 109 | 105b1affc3c2 |
permissions | -rw-r--r-- |
89 | 1 |
from tuikit.core.unigraph import unigraph_default as unigraph |
2 |
||
3 |
||
4 |
class ColorTheme: |
|
5 |
||
6 |
"""Default color style""" |
|
7 |
||
119
dd91747504dd
Redraw widgets on request. Add scrollbar demo.
Radek Brich <radek.brich@devl.cz>
parents:
109
diff
changeset
|
8 |
clr_normal = 'lightgray' |
dd91747504dd
Redraw widgets on request. Add scrollbar demo.
Radek Brich <radek.brich@devl.cz>
parents:
109
diff
changeset
|
9 |
clr_active = 'black on cyan' |
dd91747504dd
Redraw widgets on request. Add scrollbar demo.
Radek Brich <radek.brich@devl.cz>
parents:
109
diff
changeset
|
10 |
clr_button = 'black on lightgray' |
dd91747504dd
Redraw widgets on request. Add scrollbar demo.
Radek Brich <radek.brich@devl.cz>
parents:
109
diff
changeset
|
11 |
clr_button_active = 'black on cyan' |
89 | 12 |
|
13 |
||
14 |
class GraphicalTheme: |
|
15 |
||
16 |
"""Default graphical symbols""" |
|
17 |
||
18 |
# Frame |
|
19 |
frame_hline = unigraph.HLINE |
|
20 |
frame_vline = unigraph.VLINE |
|
21 |
frame_ulcorner = unigraph.ULCORNER |
|
22 |
frame_urcorner = unigraph.URCORNER |
|
23 |
frame_llcorner = unigraph.LLCORNER |
|
24 |
frame_lrcorner = unigraph.LRCORNER |
|
25 |
frame_ltee = unigraph.LTEE |
|
26 |
frame_rtee = unigraph.RTEE |
|
27 |
||
28 |
# Scrollbar |
|
29 |
sb_thumb = unigraph.CIRCLE |
|
30 |
sb_htrack = unigraph.DOTTED_HLINE |
|
31 |
sb_vtrack = unigraph.DOTTED_VLINE |
|
32 |
sb_left = unigraph.LEFT_ARROW |
|
33 |
sb_right = unigraph.RIGHT_ARROW |
|
34 |
sb_up = unigraph.UP_ARROW |
|
35 |
sb_down = unigraph.DOWN_ARROW |
|
36 |
||
37 |
||
38 |
class Theme(ColorTheme, GraphicalTheme): |
|
39 |
||
40 |
def __getitem__(self, name): |
|
41 |
return getattr(self, name) |
|
42 |
||
43 |
||
44 |
default_theme = Theme() |