]> git.decadent.org.uk Git - ion3.git/blob - etc/look_cleanviolet.lua
d52efacdfb32e1bd0079d76cad8b2c0a85278bb2
[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("tab", {
33     based_on = "*",
34     font = "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*",
35     
36     de.substyle("active-selected", {
37         -- Violet tab
38         highlight_colour = "#aaaacc",
39         shadow_colour = "#aaaacc",
40         background_colour = "#666699",
41         foreground_colour = "#eeeeee",
42     }),
43
44     de.substyle("inactive-selected", {
45         -- Greyish violet tab
46         highlight_colour = "#eeeeff",
47         shadow_colour = "#eeeeff",
48         background_colour = "#9999aa",
49         foreground_colour = "#000000",
50     }),
51 })
52
53
54 de.defstyle("input", {
55     based_on = "*",
56     text_align = "left",
57     spacing = 1,
58     -- Greyish violet background
59     highlight_colour = "#eeeeff",
60     shadow_colour = "#eeeeff",
61     background_colour = "#9999aa",
62     foreground_colour = "#000000",
63     
64     de.substyle("*-selection", {
65         background_colour = "#777799",
66         foreground_colour = "#000000",
67     }),
68
69     de.substyle("*-cursor", {
70         background_colour = "#000000",
71         foreground_colour = "#9999aa",
72     }),
73 })
74
75
76 dopath("lookcommon_clean")
77
78
79 -- Refresh objects' brushes.
80 gr.refresh()