author | Radek Brich <radek.brich@devl.cz> |
Wed, 03 Sep 2014 19:08:21 +0200 | |
changeset 109 | 105b1affc3c2 |
parent 89 | 94f5baef19ac |
child 119 | dd91747504dd |
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 |
||
8 |
normal = 'lightgray' |
|
109
105b1affc3c2
Update keypress propagation. Allow focus change by tab key. Add log property to Widget for smart logging.
Radek Brich <radek.brich@devl.cz>
parents:
89
diff
changeset
|
9 |
active = 'black on cyan' |
89 | 10 |
button = 'black on lightgray' |
11 |
button_active = 'black on cyan' |
|
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() |