Fix bug when the focused window deinitialized
[notion.git] / contrib / styles / look_gtk2.lua
blob8eba2b863042814b201e34816968fb7694d1000c
1 -- Authors: Rene van Bevern <rvb@pro-linux.de>
2 -- License: Unknown
3 -- Last Changed: Unknown
4 --
5 -- theme that goes well with the gtk2 default colors
6 -- it makes use of terminus als artwiz fonts
7 --
8 -- By Rene van Bevern <rvb@pro-linux.de>
10 if not gr.select_engine("de") then return end
12 de.reset()
14 de.defstyle("*", {
15 shadow_colour = "#9c9a94",
16 highlight_colour = "#ffffff",
17 background_colour = "#dedbd6",
18 foreground_colour = "#000000",
19 padding_pixels = 0,
20 highlight_pixels = 1,
21 shadow_pixels = 1,
22 border_style = "elevated",
23 -- font = "-*-helvetica-medium-r-normal-*-*-120-*-*-*-*-iso8859-15",
24 font = "-*-helvetica-medium-r-normal-*-*-120-*-*-*-*-iso8859-1",
25 text_align = "center",
28 de.defstyle("frame", {
29 based_on = "*",
30 shadow_colour = "#9c9a94",
31 highlight_colour = "#ffffff",
32 padding_colour = "#dedbd6",
33 background_colour = "#dedbd6",
34 transparent_background = true,
35 foreground_colour = "#ffffff",
36 padding_pixels = 2,
37 highlight_pixels = 1,
38 shadow_pixels = 1,
39 de.substyle("active", {
40 shadow_colour = "#9c9a94",
41 highlight_colour = "#ffffff",
42 background_colour = "#dedbd6",
43 foreground_colour = "#ffffff",
44 }),
47 de.defstyle("frame-ionframe", {
48 based_on = "frame",
49 border_style = "inlaid",
50 padding_pixels = 1,
51 spacing = 2,
54 de.defstyle("frame-floatframe", {
55 based_on = "frame",
56 border_style = "ridge",
57 padding_pixels = 1
60 de.defstyle("tab", {
61 based_on = "*",
62 border_style = "groove",
63 font = "anorexia",
64 de.substyle("active-selected", {
65 shadow_colour = "#1a3954",
66 highlight_colour = "#7aa9d4",
67 background_colour = "#4a6984",
68 foreground_colour = "#ffffff",
69 }),
70 de.substyle("active-unselected", {
71 shadow_colour = "#9c9a94",
72 highlight_colour = "#ffffff",
73 background_colour = "#dedbd6",
74 foreground_colour = "#000000",
75 }),
76 de.substyle("inactive-selected", {
77 shadow_colour = "#9c9a94",
78 highlight_colour = "#ffffff",
79 background_colour = "#efebe7",
80 foreground_colour = "#97979e",
81 }),
82 de.substyle("inactive-unselected", {
83 shadow_colour = "#9c9a94",
84 highlight_colour = "#ffffff",
85 background_colour = "#dedbd6",
86 foreground_colour = "#97979e",
87 }),
88 text_align = "center",
91 de.defstyle("tab-frame", {
92 based_on = "tab",
93 de.substyle("*-*-*-*-activity", {
94 shadow_colour = "#777777",
95 highlight_colour = "#eeeeee",
96 background_colour = "#990000",
97 foreground_colour = "#eeeeee",
98 }),
101 de.defstyle("tab-frame-ionframe", {
102 based_on = "tab-frame",
103 spacing = 3,
106 de.defstyle("tab-menuentry", {
107 based_on = "tab",
108 spacing = 2,
109 highlight_pixels = 1,
110 shadow_pixels = 1,
111 text_align = "left",
112 font = "fixed",
113 de.substyle("inactive-selected", {
114 shadow_colour = "#1a3954",
115 highlight_colour = "#7aa9d4",
116 background_colour = "#4a6984",
117 foreground_colour = "#ffffff",
119 de.substyle("inactive-unselected", {
120 shadow_colour = "#9c9a94",
121 highlight_colour = "#ffffff",
122 background_colour = "#dedbd6",
123 foreground_colour = "#000000",
128 de.defstyle("tab-menuentry-big", {
129 based_on = "tab-menuentry",
130 font = "-*-terminus-medium-r-*-*-17-120-*-*-*-*-iso8859-15",
133 de.defstyle("input", {
134 based_on = "tab",
135 font = "-*-terminus-medium-r-*-*-17-120-*-*-*-*-iso8859-15",
136 de.substyle("*-cursor", {
137 background_colour = "#000000",
138 foreground_colour = "#aaaaaa",
140 de.substyle("*-selection", {
141 background_colour = "#aaaaaa",
142 foreground_colour = "black",
146 gr.refresh()