]> git.decadent.org.uk Git - ion3.git/blob - etc/look_cleanviolet.lua
32dce5001f7735f0391d6cd55152670667a7cb62
[ion3.git] / etc / look_cleanviolet.lua
1 --
2 -- Look_cleanviolet for Ion's default drawing engine. 
3 -- Based on look-clean and look-violetgrey.
4 -- 
5
6 if not gr.select_engine("de") then
7     return
8 end
9
10 -- Clear existing styles from memory.
11 de.reset()
12
13 -- Base style
14 de.defstyle("*", {
15     -- Gray background
16     highlight_colour = "#eeeeee",
17     shadow_colour = "#eeeeee",
18     background_colour = "#aaaaaa",
19     foreground_colour = "#000000",
20     
21     shadow_pixels = 1,
22     highlight_pixels = 1,
23     padding_pixels = 1,
24     spacing = 0,
25     border_style = "elevated",
26     
27     font = "-*-helvetica-medium-r-normal-*-14-*-*-*-*-*-*-*",
28     text_align = "center",
29 })
30
31
32 de.defstyle("frame", {
33     based_on = "*",
34     padding_colour = "#aaaaaa",
35     background_colour = "#000000",
36     transparent_background = false,
37 })
38
39
40 de.defstyle("tab", {
41     based_on = "*",
42     font = "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*",
43     
44     de.substyle("active-selected", {
45         -- Violet tab
46         highlight_colour = "#aaaacc",
47         shadow_colour = "#aaaacc",
48         background_colour = "#666699",
49         foreground_colour = "#eeeeee",
50     }),
51
52     de.substyle("inactive-selected", {
53         -- Greyish violet tab
54         highlight_colour = "#eeeeff",
55         shadow_colour = "#eeeeff",
56         background_colour = "#9999aa",
57         foreground_colour = "#000000",
58     }),
59 })
60
61
62 de.defstyle("tab-menuentry", {
63     based_on = "tab",
64     text_align = "left",
65     spacing = 1,
66 })
67
68
69 de.defstyle("tab-menuentry-big", {
70     based_on = "tab-menuentry",
71     font = "-*-helvetica-medium-r-normal-*-17-*-*-*-*-*-*-*",
72     padding_pixels = 7,
73 })
74
75
76 de.defstyle("input", {
77     based_on = "*",
78     text_align = "left",
79     spacing = 1,
80     -- Greyish violet background
81     highlight_colour = "#eeeeff",
82     shadow_colour = "#eeeeff",
83     background_colour = "#9999aa",
84     foreground_colour = "#000000",
85     
86     de.substyle("*-selection", {
87         background_colour = "#777799",
88         foreground_colour = "#000000",
89     }),
90
91     de.substyle("*-cursor", {
92         background_colour = "#000000",
93         foreground_colour = "#9999aa",
94     }),
95 })
96
97 dopath("lookcommon_clean")
98     
99 -- Refresh objects' brushes.
100 gr.refresh()