整理代码

This commit is contained in:
MrZ626
2021-05-01 02:27:16 +08:00
parent f8de8d4f16
commit bd8e55b977
9 changed files with 18 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ local themeColor={
}
function THEME.calculate(Y,M,D)
if not Y then Y,M,D=os.date"%Y",os.date"%m",os.date"%d"end
if not Y then Y,M,D=os.date("%Y"),os.date("%m"),os.date("%d")end
--Festival calculate within one statement
return
--Christmas
@@ -84,7 +84,7 @@ function THEME.getThemeColor(theme)
end
function THEME.fresh()
THEME.set(THEME.calculate(os.date"%Y",os.date"%m",os.date"%d"))
THEME.set(THEME.calculate(os.date("%Y"),os.date("%m"),os.date("%d")))
end
return THEME