add: tidy up the code, more modular

This commit is contained in:
asep.komarudin 2024-05-21 08:37:12 +07:00
parent 1f424a1225
commit 875631fc4e

View file

@ -19,7 +19,7 @@ return {
local colors = component.colors local colors = component.colors
-- check config for theme -- check config for theme
local set_theme local set_theme = "auto"
local bubbles_theme local bubbles_theme
local data_exists, config = pcall(require, "core.config") local data_exists, config = pcall(require, "core.config")
if data_exists then if data_exists then
@ -46,7 +46,7 @@ return {
colors.blue = clr.green colors.blue = clr.green
colors.black = clr.black colors.black = clr.black
colors.cyan = clr.yellow colors.cyan = clr.yellow
set_theme = bubbles_theme set_theme = "bubbles_theme"
end, end,
default = function() default = function()
set_theme = "auto" set_theme = "auto"