Fix bug when the focused window deinitialized
[notion.git] / contrib / styles / look_cleansteel_trans.lua
blob1b0df464c656992d97948c94a510a6a6c03fe38f
1 -- Authors: Steve Pomeroy <steve@staticfree.info>
2 -- License: Unknown
3 -- Last Changed: Unknown
4 --
5 -- look-cleansteel_trans.lua drawing engine configuration file for Ion.
7 -- Based on the default cleansteel look, but with added transparency
8 -- and a few other things that I like. -Steve Pomeroy <steve@staticfree.info>
10 if not gr.select_engine("de") then return end
12 de.reset()
14 de.defstyle("*", {
15 shadow_colour = "#404040",
16 highlight_colour = "#707070",
17 background_colour = "#505050",
18 foreground_colour = "#a0a0a0",
19 padding_pixels = 1,
20 highlight_pixels = 1,
21 shadow_pixels = 1,
22 border_style = "elevated",
23 font = "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*",
24 text_align = "center",
25 transparent_background = false,
28 de.defstyle("frame", {
29 based_on = "*",
30 --shadow_colour = "#404040",
31 --highlight_colour = "#707070",
32 padding_colour = "#505050",
33 background_colour = "#000000",
34 foreground_colour = "#ffffff",
35 padding_pixels = 1,
36 highlight_pixels = 1,
37 shadow_pixels = 1,
38 --de.substyle("active", {
39 -- shadow_colour = "#203040",
40 -- highlight_colour = "#607080",
41 -- padding_colour = "#405060",
42 -- foreground_colour = "#ffffff",
43 --}),
44 border_style = "ridge",
45 transparent_background = true,
48 de.defstyle("frame-tiled", {
49 based_on = "frame",
50 spacing = 1,
51 padding_pixels = 0,
52 highlight_pixels = 0,
53 shadow_pixels = 0,
56 --de.defstyle("frame-floatframe", {
57 -- based_on = "frame",
58 --})
60 de.defstyle("tab", {
61 based_on = "*",
62 font = "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*",
63 de.substyle("active-selected", {
64 shadow_colour = "#304050",
65 highlight_colour = "#708090",
66 background_colour = "#506070",
67 foreground_colour = "#ffffff",
68 }),
69 de.substyle("active-unselected", {
70 shadow_colour = "#203040",
71 highlight_colour = "#607080",
72 background_colour = "#405060",
73 foreground_colour = "#a0a0a0",
74 }),
75 de.substyle("inactive-selected", {
76 shadow_colour = "#404040",
77 highlight_colour = "#909090",
78 background_colour = "#606060",
79 foreground_colour = "#a0a0a0",
80 }),
81 de.substyle("inactive-unselected", {
82 shadow_colour = "#404040",
83 highlight_colour = "#707070",
84 background_colour = "#505050",
85 foreground_colour = "#a0a0a0",
86 }),
87 text_align = "center",
88 transparent_background = true,
91 de.defstyle("tab-frame", {
92 based_on = "tab",
93 de.substyle("*-*-*-*-activity", {
94 shadow_colour = "#404040",
95 highlight_colour = "#707070",
96 background_colour = "#990000",
97 foreground_colour = "#eeeeee",
98 }),
101 de.defstyle("tab-frame-ionframe", {
102 based_on = "tab-frame",
103 spacing = 1,
106 de.defstyle("tab-menuentry", {
107 based_on = "tab",
108 text_align = "left",
109 highlight_pixels = 0,
110 shadow_pixels = 0,
113 de.defstyle("tab-menuentry-big", {
114 based_on = "tab-menuentry",
115 font = "-*-helvetica-medium-r-normal-*-*-*-*-*-*-*-*-*",
116 padding_pixels = 7,
119 de.defstyle("input", {
120 based_on = "*",
121 shadow_colour = "#404040",
122 highlight_colour = "#707070",
123 background_colour = "#000030",
124 foreground_colour = "#ffffff",
125 padding_pixels = 1,
126 highlight_pixels = 1,
127 shadow_pixels = 1,
128 transparent_background = false,
130 border_style = "elevated",
131 de.substyle("*-cursor", {
132 background_colour = "#ffffff",
133 foreground_colour = "#000000",
135 de.substyle("*-selection", {
136 background_colour = "#505050",
137 foreground_colour = "#ffffff",
141 de.defstyle("input-edln", {
142 based_on = "input",
143 -- this is taken from the URxvt default font on my system. -SP
144 font = "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-*-*",
147 de.defstyle("input-menu", {
148 based_on = "*",
149 transparent_background = true,
151 de.substyle("active", {
152 shadow_colour = "#304050",
153 highlight_colour = "#708090",
154 background_colour = "#506070",
155 foreground_colour = "#ffffff",
159 de.defstyle("stdisp", {
160 based_on = "*",
161 shadow_pixels = 0,
162 highlight_pixels = 0,
163 background_colour = "#000000",
164 foreground_colour = "grey",
165 text_align = "left",
167 de.substyle("important", {
168 foreground_colour = "green",
171 de.substyle("critical", {
172 foreground_colour = "red",
175 de.substyle("actnotify", {
176 foreground_colour = "red",
180 de.defstyle("actnotify", {
181 based_on = "*",
182 shadow_colour = "#404040",
183 highlight_colour = "#707070",
184 background_colour = "#990000",
185 foreground_colour = "#eeeeee",
188 gr.refresh()