-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy paththeme.lua
More file actions
60 lines (53 loc) · 1.51 KB
/
theme.lua
File metadata and controls
60 lines (53 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
-- theme.lua - Shared color and theme definitions for alien conky suite
--
-- v1.1 2026-04-09 @rew62
local theme = {
bg_color = 0x1e1e2e,
fg_color = 0xcdd6f4,
--border_color = 0x89b4fa,
border_color = 0x98FB98,
border_width = 2,
--bg_alpha = 0.7,
--border_alpha = 1.0,
bg_alpha = 0.1,
border_alpha = 1.0,
font = "Sans 10",
cairo_font = "DejaVuSansM Nerd Font Propo",
}
-- Simulated frosted glass - dark
--local theme = {
-- bg_color = 0x1e1e2e,
-- fg_color = 0xcdd6f4,
-- border_color = 0xcdd6f4,
-- border_width = 2,
-- bg_alpha = 0.45,
-- border_alpha = 0.3,
-- font = "Sans 10",
-- cairo_font = "DejaVuSansM Nerd Font Propo",
--}
-- Simulated frosted glass - light
--local theme = {
-- bg_color = 0xe0e8f0,
-- fg_color = 0xcdd6f4,
-- border_color = 0xffffff,
-- border_width = 2,
-- bg_alpha = 0.12,
-- border_alpha = 0.35,
-- font = "Sans 10",
-- cairo_font = "DejaVuSansM Nerd Font Propo",
--}
-- bgtab format:
-- {radius,x,y,w,h,color,alpha,draw,lwidth,outline_color,outline_alpha}
--theme.bgtab = '{10,0,0,0,0,0x000000,0.7,3,2,0x2E8B57,1.0}'
--theme.bgtab = '{10,0,0,0,0,0x000000,0.7,3,2,0x2E8B57,1.0}'
function theme.build_bgtab()
return string.format(
'{10,0,0,0,0,0x%06X,%.2f,3,2,0x%06X,%.2f}',
theme.bg_color,
theme.bg_alpha,
theme.border_color,
theme.border_alpha
)
end
theme.bgtab = theme.build_bgtab()
return theme