diff options
author | Alex Auvolat <alex@adnab.me> | 2018-04-01 19:20:19 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-04-01 19:20:19 +0200 |
commit | 67db86ec53336da886153797deb643483e9596d0 (patch) | |
tree | 62ed2bb5d916f91d30017bd34c7089153a3a2b93 /src/config | |
parent | 45b7ea4c94bed7abcf8b27e5d716be240110740d (diff) | |
download | kogata-67db86ec53336da886153797deb643483e9596d0.tar.gz kogata-67db86ec53336da886153797deb643483e9596d0.zip |
themesretrowave
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/default/sysdir | 1 | ||||
-rw-r--r-- | src/config/default/theme.lua | 62 | ||||
-rw-r--r-- | src/config/retro/sysdir | 1 | ||||
-rw-r--r-- | src/config/retro/theme.lua | 55 |
4 files changed, 119 insertions, 0 deletions
diff --git a/src/config/default/sysdir b/src/config/default/sysdir new file mode 100644 index 0000000..cbe4219 --- /dev/null +++ b/src/config/default/sysdir @@ -0,0 +1 @@ +root:/sys diff --git a/src/config/default/theme.lua b/src/config/default/theme.lua new file mode 100644 index 0000000..2e42337 --- /dev/null +++ b/src/config/default/theme.lua @@ -0,0 +1,62 @@ +local theme = { + fonts = { + default = 'veramono.ttf', + title = 'veramono.ttf' + }, + fontsize = { + default = 16, + title = 16 + }, + colors = { + window_border = function(tk) return tk.rgb(255, 128, 0) end, + window_title_bg = function(tk) return tk.rgb(255, 255, 255) end, + window_title = function(tk) return tk.rgb(0, 0, 0) end, + default_bg = function(tk) return tk.rgb(240, 240, 240) end, + default = function(tk) return tk.rgb(0, 0, 0) end, + scrollbar = function(tk) return tk.rgb(0, 0, 0) end, + resizebox = function(tk) return tk.rgb(255, 255, 255) end, + resizebox_border = function(tk) return tk.rgb(0, 0, 0) end, + button = { + good = { + text = function(tk) return tk.rgb(0, 0, 0) end, + bg = function(tk) return tk.rgb(128, 255, 128) end + }, + bad = { + text = function(tk) return tk.rgb(0, 0, 0) end, + bg = function(tk) return tk.rgb(255, 128, 128) end + }, + action = { + text = function(tk) return tk.rgb(0, 0, 0) end, + bg = function(tk) return tk.rgb(128, 128, 255) end + } + } + + }, + draw_bg = function(x0, y0, buf) + local step = 32 + local halfstep = 16 + for x = x0 - (x0 % step), x0 + buf:width(), step do + for y = y0 - (y0 % step), y0 + buf:height(), step do + buf:fillrect(x - x0, y - y0, halfstep, halfstep, buf:rgb(110, 110, 140)) + buf:fillrect(x - x0 + halfstep, y - y0 + halfstep, halfstep, halfstep, buf:rgb(110, 110, 140)) + buf:fillrect(x - x0 + halfstep, y - y0, halfstep, halfstep, buf:rgb(110, 140, 110)) + buf:fillrect(x - x0, y - y0 + halfstep, halfstep, halfstep, buf:rgb(110, 140, 110)) + end + end + end, + draw_image_bg = function(x0, y0, buf) + local step = 20 + local halfstep = 10 + for x = x0 - (x0 % step), x0 + buf:width(), step do + for y = y0 - (y0 % step), y0 + buf:height(), step do + buf:fillrect(x - x0, y - y0, halfstep, halfstep, buf:rgb(150, 150, 150)) + buf:fillrect(x - x0 + halfstep, y - y0 + halfstep, halfstep, halfstep, buf:rgb(150, 150, 150)) + buf:fillrect(x - x0 + halfstep, y - y0, halfstep, halfstep, buf:rgb(170, 170, 170)) + buf:fillrect(x - x0, y - y0 + halfstep, halfstep, halfstep, buf:rgb(170, 170, 170)) + end + end + end + +} + +return theme diff --git a/src/config/retro/sysdir b/src/config/retro/sysdir new file mode 100644 index 0000000..cbe4219 --- /dev/null +++ b/src/config/retro/sysdir @@ -0,0 +1 @@ +root:/sys diff --git a/src/config/retro/theme.lua b/src/config/retro/theme.lua new file mode 100644 index 0000000..673ab3d --- /dev/null +++ b/src/config/retro/theme.lua @@ -0,0 +1,55 @@ +local theme = { + fonts = { + default = 'galax___.ttf', + title = 'faceptbs.ttf' + }, + fontsize = { + default = 16, + title = 16 + }, + colors = { + window_border = function(tk) return tk.rgb(0, 128, 128) end, + window_title_bg = function(tk) return tk.rgb(0, 0, 0) end, + window_title = function(tk) return tk.rgb(255, 0, 255) end, + default_bg = function(tk) return tk.rgb(0, 0, 0) end, + default = function(tk) return tk.rgb(255, 255, 255) end, + scrollbar = function(tk) return tk.rgb(0, 255, 255) end, + resizebox = function(tk) return tk.rgb(0, 0, 0) end, + resizebox_border = function(tk) return tk.rgb(0, 255, 255) end, + button = { + good = { + text = function(tk) return tk.rgb(0, 255, 0) end, + bg = function(tk) return tk.rgb(0, 0, 0) end + }, + bad = { + text = function(tk) return tk.rgb(255, 0, 0) end, + bg = function(tk) return tk.rgb(0, 0, 0) end + }, + action = { + text = function(tk) return tk.rgb(128, 128, 255) end, + bg = function(tk) return tk.rgb(0, 0, 0) end + } + } + }, + draw_bg = function(x0, y0, buf) + local step = 32 + local halfstep = 16 + buf:fillrect(0, 0, buf:width(), buf:height(), buf:rgb(0, 0, 0)) + for x = x0 - (x0 % step), x0 + buf:width(), step do + for y = y0 - (y0 % step), y0 + buf:height(), step do + buf:fillrect(x - x0, y - y0 + halfstep, step, 1, buf:rgb(0, 0, 255)) + buf:fillrect(x - x0 + halfstep, y - y0, 1, step, buf:rgb(0, 0, 255)) + end + end + end, + draw_image_bg = function(x0, y0, buf) + local step = 4 + local halfstep = 2 + for y = y0 - (y0 % step), y0 + buf:height(), step do + buf:fillrect(0, y - y0, buf:width(), halfstep, buf:rgb(64, 64, 64)) + buf:fillrect(0, y - y0 + halfstep, buf:width(), halfstep, buf:rgb(80, 80, 80)) + end + end +} + +return theme |