File: look_atme.lua

package info (click to toggle)
notion 3%2B2012042300-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 4,724 kB
  • sloc: ansic: 45,614; makefile: 544; sh: 409; perl: 113
file content (159 lines) | stat: -rw-r--r-- 3,770 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
-- look_atme.lua drawing engine configuration file for Ion.
-- 
-- Author: Sadrul Habib Chowdhury (Adil)
-- imadil |at| gmail |dot| com

if not gr.select_engine("de") then return end

de.reset()

de.defstyle("*", {
    shadow_colour = "grey",
    highlight_colour = "grey",
    background_colour = "#eeeeff",
    foreground_colour = "#444466",
    padding_pixels = 0,
    highlight_pixels = 1,
    shadow_pixels = 1,
    border_style = "elevated",
    font = "fixed",
    text_align = "center",
})

de.defstyle("frame", {
    based_on = "*",
    padding_colour = "#444466",
    background_colour = "black",
    transparent_background = true,
    de.substyle("active", {
        shadow_colour = "grey",
        highlight_colour = "grey",
    }),
})

de.defstyle("frame-ionframe", {
    ionframe_bar_inside_border = true,
})

de.defstyle("frame-tiled", {
    based_on = "frame",
    padding_pixels = 0,
    highlight_pixels = 0,
    shadow_pixels = 0,
    spacing = 1,
})


de.defstyle("tab", {
    based_on = "*",
    de.substyle("active-selected", {
        shadow_colour = "#eeeeff",
        highlight_colour = "#eeeeff",
        background_colour = "#444466",
        foreground_colour = "#eeeeff",
        transparent_background = false,
    }),
    de.substyle("active-unselected", {
        shadow_colour = "#666688",
        highlight_colour = "#666688",
        background_colour = "#666688",
        foreground_colour = "#eeeeff",
    }),
    de.substyle("inactive-selected", {
        shadow_colour = "white",
        highlight_colour = "white",
        background_colour = "#999999",
        foreground_colour = "white",
    }),
    de.substyle("inactive-unselected", {
        shadow_colour = "#a0a0a0",
        highlight_colour = "#a0a0a0",
        background_colour = "#a0a0a0",
        foreground_colour = "white",
    }),
    text_align = "center",
})

de.defstyle("tab-frame", {
    based_on = "tab",
    de.substyle("*-*-*-*-activity", {
        shadow_colour = "#664444",
        highlight_colour = "#664444",
        background_colour = "#ffff00",
        foreground_colour = "#990000",
    }),
})

de.defstyle("tab-frame-tiled", {
    based_on = "tab-frame",
    spacing = 1,
})

de.defstyle("tab-menuentry", {
    based_on = "tab",
    text_align = "left",
})

de.defstyle("tab-menuentry-pmenu", {
    text_align = "left",
    de.substyle("*-selected", {
        shadow_colour = "#eeeeff",
        highlight_colour = "#eeeeff",
        background_colour = "#444466",
        foreground_colour = "#eeeeff",
    }),
    de.substyle("*-unselected", {
        shadow_colour = "#666688",
        highlight_colour = "#666688",
        background_colour = "#666688",
        foreground_colour = "#eeeeff",
    }),
})

de.defstyle("tab-menuentry-big", {
    based_on = "tab-menuentry",
    padding_pixels = 7,
})

de.defstyle("input", {
    based_on = "*",
    shadow_colour = "grey",
    highlight_colour = "grey",
    background_colour = "#444466",
    foreground_colour = "#eeeeff",
    padding_pixels = 1,
    highlight_pixels = 1,
    shadow_pixels = 1,
    border_style = "elevated",
    de.substyle("*-cursor", {
        background_colour = "white",
        foreground_colour = "#444466",
    }),
    de.substyle("*-selection", {
        background_colour = "#aaaaaa",
        foreground_colour = "white",
    }),
})

de.defstyle("stdisp", {
    based_on = "*",
    shadow_pixels = 0,
    highlight_pixels = 0,
    background_colour = "#444466",
    foreground_colour = "#eeeeff",
    text_align = "left",

    de.substyle("important", {
        foreground_colour = "green",
    }),

    de.substyle("critical", {
        foreground_colour = "red",
        background_colour = "yellow",
    }),

    transparent_background = false,
})

gr.refresh()