From c56fadceb1bf6700c1c5d25471464f32729fc6e9 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 18 Apr 2022 21:11:57 +0000 Subject: [PATCH] rose-pine-moon --- themer.lua | 2 +- themes/rose-pine-moon.lua | 19 +++++++++++++++++++ utils/template.lua | 3 +++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 themes/rose-pine-moon.lua diff --git a/themer.lua b/themer.lua index 39f5dc9..796dac6 100755 --- a/themer.lua +++ b/themer.lua @@ -2,7 +2,7 @@ local templater = require 'utils/template' -theme = require 'themes/rose-pine-dawn' +theme = require 'themes/rose-pine-moon' local status = os.execute("mkdir -p ~/.cache/themer.lua/") if not (status == 0) then return status end diff --git a/themes/rose-pine-moon.lua b/themes/rose-pine-moon.lua new file mode 100644 index 0000000..5cc5783 --- /dev/null +++ b/themes/rose-pine-moon.lua @@ -0,0 +1,19 @@ +local theme = { + base = "232136", + surface = "2a273f", + overlay = "393552", + muted = "6e6a86", + subtle = "908caa", + text = "e0def4", + love = "eb6f92", + gold = "f6c177", + rose = "ea9a97", + pine = "3e8fb0", + foam = "9ccfd8", + iris = "c4a7e7", + highlightLow = "2a283e", + highlightMed = "44415a", + highlightHigh = "56526e", + dark = true, +} +return require('utils/rose-pine-convert')(theme) diff --git a/utils/template.lua b/utils/template.lua index 7368082..aa6fbc1 100644 --- a/utils/template.lua +++ b/utils/template.lua @@ -3,6 +3,9 @@ return function (template, params) if params[s] == nil then expect_nil("No variable "..s) end + if params[s] == true then + return "true" + end if params[s] == false then return "false" end