Fix bug when the focused window deinitialized
[notion.git] / contrib / styles / look_minimalist.lua
blob35eb8d448b76d24c657d80d2e0250cefe008fc04
1 -- Authors: Unknown
2 -- License: Unknown
3 -- Last Changed: Unknown
4 --
5 -- look_minimalist.lua drawing engine configuration file for Ion.
7 --one basic style motivated by the need to work with min_tabs.lua
8 --borders are slightly wider, and active-selected colour is much more
9 --vivid so it's easy to tell which frame has the focus even without tabs
10 --also, use relatively small font for the tabs -- which are always on
11 --screen -- but use a much bigger & easier on the eye font for pop-up
12 --menus which only take up space on screen transiently
14 if not gr.select_engine("de") then return end
16 de.reset()
18 de.defstyle("*", {
19 shadow_colour = "#606060",
20 highlight_colour = "#ffffff",
21 background_colour = "#d8d8d8",
22 foreground_colour = "#000000",
23 padding_pixels = 1,
24 highlight_pixels = 1,
25 shadow_pixels = 1,
26 border_style = "elevated",
27 font = "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*",
28 text_align = "center",
31 de.defstyle("frame", {
32 based_on = "*",
33 shadow_colour = "#404000",
34 highlight_colour = "#c0c000",
35 padding_colour = "#808000",
36 background_colour = "#000000",
37 foreground_colour = "#000000",
38 padding_pixels = 1,
39 highlight_pixels = 1,
40 shadow_pixels = 1,
41 de.substyle("active", {
42 shadow_colour = "#ff0000",
43 highlight_colour = "#ff0000",
44 padding_colour = "#ff0000",
45 background_colour = "#d8d8d8",
46 foreground_colour = "#000000",
47 }),
50 de.defstyle("frame-ionframe", {
51 based_on = "frame",
52 border_style = "inlaid",
53 padding_pixels = 1,
54 spacing = 0,
57 de.defstyle("frame-floatframe", {
58 based_on = "frame",
59 border_style = "ridge"
62 de.defstyle("tab", {
63 based_on = "*",
64 font = "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*",
65 padding_pixels = 0,
66 highlight_pixels = 0,
67 shadow_pixels = 0,
68 de.substyle("active-selected", {
69 shadow_colour = "#df2900",
70 highlight_colour = "#ff5900",
71 background_colour = "#ff3900",
72 foreground_colour = "#000000",
73 }),
74 de.substyle("active-unselected", {
75 shadow_colour = "#dfb700",
76 highlight_colour = "#ffe700",
77 background_colour = "#ffc700",
78 foreground_colour = "#000000",
79 }),
80 de.substyle("inactive-selected", {
81 shadow_colour = "#6b2900",
82 highlight_colour = "#ab6900",
83 background_colour = "#8b4900",
84 foreground_colour = "#000000",
85 }),
86 de.substyle("inactive-unselected", {
87 shadow_colour = "#6b5500",
88 highlight_colour = "#ab9500",
89 background_colour = "#8b7500",
90 foreground_colour = "#000000",
91 }),
92 text_align = "center",
95 de.defstyle("tab-frame", {
96 based_on = "tab",
97 de.substyle("*-*-*-*-activity", {
98 shadow_colour = "#600000",
99 highlight_colour = "#ff0000",
100 background_colour = "#32bc32",
101 foreground_colour = "#ff0000",
105 de.defstyle("tab-frame-ionframe", {
106 based_on = "tab-frame",
107 spacing = 0,
110 de.defstyle("tab-menuentry", {
111 based_on = "tab",
112 font = "-*-helvetica-medium-r-normal-*-24-*-*-*-*-*-*-*",
113 text_align = "left",
114 highlight_pixels = 0,
115 shadow_pixels = 0,
116 --make tab menus bright rather than drab even with inactive tabs
117 de.substyle("inactive-unselected", {
118 shadow_colour = "#dfb700",
119 highlight_colour = "#ffe700",
120 background_colour = "#ffc700",
121 foreground_colour = "#000000",
125 de.defstyle("tab-menuentry-big", {
126 based_on = "tab-menuentry",
127 font = "-*-helvetica-medium-r-normal-*-24-*-*-*-*-*-*-*",
128 padding_pixels = 7,
129 de.substyle("inactive-unselected", {
130 shadow_colour = "#dfb700",
131 highlight_colour = "#ffe700",
132 background_colour = "#ffc700",
133 foreground_colour = "#000000",
137 de.defstyle("input", {
138 based_on = "*",
139 shadow_colour = "#606060",
140 highlight_colour = "#ffffff",
141 background_colour = "#d8d8d8",
142 foreground_colour = "#000000",
143 padding_pixels = 1,
144 highlight_pixels = 1,
145 shadow_pixels = 1,
146 font = "-*-helvetica-medium-r-normal-*-24-*-*-*-*-*-*-*",
147 border_style = "elevated",
148 de.substyle("*-cursor", {
149 background_colour = "#000000",
150 foreground_colour = "#d8d8d8",
152 de.substyle("*-selection", {
153 background_colour = "#f0c000",
154 foreground_colour = "#000000",
158 de.defstyle("stdisp", {
159 based_on = "*",
160 shadow_pixels = 0,
161 highlight_pixels = 0,
162 text_align = "left",
165 gr.refresh()