Merge 0f27a7c84c
into 8ec0e638ce
This commit is contained in:
commit
fbb447e6c4
1 changed files with 15 additions and 5 deletions
10
theme.lua
10
theme.lua
|
@ -5,11 +5,21 @@ local BASE = (...):match('(.-)[^%.]+$')
|
||||||
local theme = {}
|
local theme = {}
|
||||||
theme.cornerRadius = 4
|
theme.cornerRadius = 4
|
||||||
|
|
||||||
|
if love._version_major==0 and love._version_minor<=10 then
|
||||||
|
-- love2d 0.10.x or older
|
||||||
|
theme.color = {
|
||||||
|
normal = {bg = { 64, 64, 64}, fg = {186,186,186}},
|
||||||
|
hovered = {bg = { 48,186,186}, fg = {255,255,255}},
|
||||||
|
active = {bg = {255,153, 0}, fg = {255,255,255}}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
-- love2d 0.11.x or newer
|
||||||
theme.color = {
|
theme.color = {
|
||||||
normal = {bg = { 0.25, 0.25, 0.25}, fg = {0.73,0.73,0.73}},
|
normal = {bg = { 0.25, 0.25, 0.25}, fg = {0.73,0.73,0.73}},
|
||||||
hovered = {bg = { 0.19,0.6,0.73}, fg = {1,1,1}},
|
hovered = {bg = { 0.19,0.6,0.73}, fg = {1,1,1}},
|
||||||
active = {bg = {1,0.6, 0}, fg = {1,1,1}}
|
active = {bg = {1,0.6, 0}, fg = {1,1,1}}
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- HELPER
|
-- HELPER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue