]> git.decadent.org.uk Git - ion3.git/blob - etc/look_greenlight.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / etc / look_greenlight.lua
1 --
2 -- look_greenlight for Ion's default drawing engine. 
3 -- 
4
5 if not gr.select_engine("de") then
6     return
7 end
8
9 -- Clear existing styles from memory.
10 de.reset()
11
12 -- Base style
13 de.defstyle("*", {
14     highlight_colour = "#666666",
15     shadow_colour = "#666666",
16     background_colour = "#333333",
17     foreground_colour = "#cccccc",
18     
19     shadow_pixels = 1,
20     highlight_pixels = 1,
21     padding_pixels = 1,
22     spacing = 0,
23     border_style = "elevated",
24     border_sides = "tb",
25     
26     font = "-*-helvetica-medium-r-normal-*-14-*-*-*-*-*-*-*",
27     text_align = "center",
28 })
29
30
31 de.defstyle("frame", {
32     background_colour = "#000000",
33     transparent_background = false,
34 })
35
36
37 de.defstyle("tab", {
38     font = "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*",
39     spacing = 1,
40     
41     de.substyle("active-selected", {
42         highlight_colour = "#8ac267",
43         shadow_colour = "#8ac267",
44         background_colour = "#354743",
45     }),
46
47     de.substyle("inactive-selected", {
48         highlight_colour = "#6aa247",
49         shadow_colour = "#6aa247",
50     }),
51 })
52
53
54 de.defstyle("input", {
55     text_align = "left",
56     spacing = 1,
57     
58     de.substyle("*-selection", {
59         background_colour = "#354743",
60     }),
61
62     de.substyle("*-cursor", {
63         background_colour = "#8ac267",
64         foreground_colour = "#333333",
65     }),
66 })
67
68
69 dopath("lookcommon_clean")
70
71     
72 -- Refresh objects' brushes.
73 gr.refresh()