Files
slate32/sdcard/lib/theme.lua

20 lines
811 B
Lua

-- Canned themes. A theme is three 8-bit RGB seeds; ui.lua derives the rest, so
-- adding a component never means editing this file. Add an entry to add a theme.
--
-- Any derived role can be pinned here: muted and accent_fg take one {r,g,b},
-- face and face_pressed take two (top and bottom of the button gradient), and
-- radius takes pixels.
return {
light = {bg = {255, 255, 255}, fg = {0, 0, 0}, accent = {0, 120, 255}},
-- Faces are pinned because the derived pair (bg mixed toward fg) is a flat grey on a
-- near-black background: the button edge disappears at this contrast.
dark = {
bg = {18, 18, 20},
fg = {235, 235, 235},
accent = {166, 118, 255},
face = {{68, 46, 104}, {36, 24, 58}},
},
mono = {bg = {255, 255, 255}, fg = {0, 0, 0}, accent = {0, 0, 0}, radius = 0},
}