From 547e00c776115ac9a89f179fc501ff295f2fcf9d Mon Sep 17 00:00:00 2001 From: VannRR <92082133+VannRR@users.noreply.github.com> Date: Tue, 12 Sep 2023 22:24:40 -0700 Subject: Add solarized_dark theme --- README.md | 1 + colors/solarized_dark.lua | 28 ++++++++++++++++++++++++++++ previews/solarized_dark.svg | 13 +++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 colors/solarized_dark.lua create mode 100644 previews/solarized_dark.svg diff --git a/README.md b/README.md index 17207a1..c394bec 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ Theme | Preview [`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) [`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1)| ![rose_pine_review](previews/rose-pine-moon.svg) [`rose-pine`](colors/rose-pine.lua?raw=1)| ![rose_pine_review](previews/rose-pine.svg) +[`solarized_dark`](colors/solarized_dark.lua?raw=1) | ![solarized_dark_preview](previews/solarized_dark.svg) [`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) [`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) [`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) diff --git a/colors/solarized_dark.lua b/colors/solarized_dark.lua new file mode 100644 index 0000000..31eef0d --- /dev/null +++ b/colors/solarized_dark.lua @@ -0,0 +1,28 @@ +local style = require "core.style" +local common = require "core.common" + +style.background = { common.color "#002b36" } +style.background2 = { common.color "#073642" } +style.background3 = { common.color "#073642" } +style.text = { common.color "#93A1A1" } +style.caret = { common.color "#586e75" } +style.accent = { common.color "#268bd2" } +style.dim = { common.color "#586e75" } +style.divider = { common.color "#23424A" } +style.selection = { common.color "#073642" } +style.line_number = { common.color "#586e75" } +style.line_number2 = { common.color "#93A1A1" } +style.line_highlight = { common.color "#073642" } +style.scrollbar = { common.color "#304A50" } +style.scrollbar2 = { common.color "#465356" } + +style.syntax["normal"] = { common.color "#93A1A1" } +style.syntax["symbol"] = { common.color "#93A1A1" } +style.syntax["comment"] = { common.color "#586e75" } +style.syntax["keyword"] = { common.color "#859900" } +style.syntax["keyword2"] = { common.color "#268bd2" } +style.syntax["number"] = { common.color "#d33682" } +style.syntax["literal"] = { common.color "#2aa198" } +style.syntax["string"] = { common.color "#2aa198" } +style.syntax["operator"] = { common.color "#859900" } +style.syntax["function"] = { common.color "#268bd2" } diff --git a/previews/solarized_dark.svg b/previews/solarized_dark.svg new file mode 100644 index 0000000..3e05437 --- /dev/null +++ b/previews/solarized_dark.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3 From 3e078c689789cea2e9798899f4e2f5f5a0b9b5a0 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 14:09:40 -0400 Subject: Added manifest.json. --- make_preview_image.lua | 51 ----- manifest.json | 410 +++++++++++++++++++++++++++++++++++++++++ scripts/make_preview_image.lua | 51 +++++ 3 files changed, 461 insertions(+), 51 deletions(-) delete mode 100755 make_preview_image.lua create mode 100644 manifest.json create mode 100755 scripts/make_preview_image.lua diff --git a/make_preview_image.lua b/make_preview_image.lua deleted file mode 100755 index 6bcaac8..0000000 --- a/make_preview_image.lua +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/lua - -local filename = ... -local name = filename:match("([^\\/]+)%..*$") - - --- get colors -local text = io.open(filename):read("*a") -local colors = {} -for r, g, b in text:gmatch("#(%x%x)(%x%x)(%x%x)") do - r = tonumber(r, 16) - g = tonumber(g, 16) - b = tonumber(b, 16) - table.insert(colors, { r, g, b }) -end - -table.sort(colors, function(a, b) - return a[1] + a[2] + a[3] < b[1] + b[2] + b[3] -end) - -local function eq(a, b) - return a[1] == b[1] and a[2] == b[2] and a[3] == b[3] -end - -local prev = {} -for i = #colors, 1, -1 do - if eq(colors[i], prev) then - table.remove(colors, i) - else - prev = colors[i] - end -end - - ---generate svg file -local w = 200 -local h = 16 -local fp = io.open("previews/" .. name .. ".svg", "wb") - -fp:write(' \n') - -for i = 1, #colors do - local width = w/#colors - local r, g, b = table.unpack(colors[i]) - local rect = ' \n' - fp:write(rect) -end - -fp:write('') -fp:close() - diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..4e7d70f --- /dev/null +++ b/manifest.json @@ -0,0 +1,410 @@ +{ + "addons" : [ + { + "id": "ayu-dark", + "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", + "tags": [ + "dark" + ] + }, + { + "id": "ayu-light", + "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", + "tags": [ + "light" + ] + }, + { + "id": "ayu-mirage", + "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", + "tags": [ + "dark" + ] + }, + { + "id" : "abyss", + "mod_version" : "3.0.0", + "name" : "abyss", + "path" : "colors/abyss.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "betelgeuse", + "mod_version" : "3.0.0", + "name" : "betelgeuse", + "path" : "colors/betelgeuse.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "c0mfy", + "mod_version" : "3.0.0", + "name" : "c0mfy", + "path" : "colors/c0mfy.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "cold_lime", + "mod_version" : "3.0.0", + "name" : "cold_lime", + "path" : "colors/cold_lime.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "dracula", + "mod_version" : "3.0.0", + "name" : "dracula", + "path" : "colors/dracula.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "duorand", + "mod_version" : "3.0.0", + "name" : "duorand", + "path" : "colors/duorand.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "duotone", + "mod_version" : "3.0.0", + "name" : "duotone", + "path" : "colors/duotone.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "everforest", + "mod_version" : "3.0.0", + "name" : "everforest", + "path" : "colors/everforest.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "github", + "mod_version" : "3.0.0", + "name" : "github", + "path" : "colors/github.lua", + "tags" : [ + "light" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "github-dark-dimmed", + "mod_version" : "3.0.0", + "name" : "github-dark-dimmed", + "path" : "colors/github-dark-dimmed.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "github_dark", + "mod_version" : "3.0.0", + "name" : "github_dark", + "path" : "colors/github_dark.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "gruvbox_dark", + "mod_version" : "3.0.0", + "name" : "gruvbox_dark", + "path" : "colors/gruvbox_dark.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "gruvbox_light", + "mod_version" : "3.0.0", + "name" : "gruvbox_light", + "path" : "colors/gruvbox_light.lua", + "tags" : [ + "light" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "jb-fleet", + "mod_version" : "3.0.0", + "name" : "jb-fleet", + "path" : "colors/jb-fleet.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "jellybeans", + "mod_version" : "3.0.0", + "name" : "jellybeans", + "path" : "colors/jellybeans.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "liqube", + "mod_version" : "3.0.0", + "name" : "liqube", + "path" : "colors/liqube.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "mariana", + "mod_version" : "3.0.0", + "name" : "mariana", + "path" : "colors/mariana.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "moe", + "mod_version" : "3.0.0", + "name" : "moe", + "path" : "colors/moe.lua", + "tags" : [ + "light" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "monodark", + "mod_version" : "3.0.0", + "name" : "monodark", + "path" : "colors/monodark.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "monokai", + "mod_version" : "3.0.0", + "name" : "monokai", + "path" : "colors/monokai.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "monokai-pro-classic", + "mod_version" : "3.0.0", + "name" : "monokai-pro-classic", + "path" : "colors/monokai-pro-classic.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "nord", + "mod_version" : "3.0.0", + "name" : "nord", + "path" : "colors/nord.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "onedark", + "mod_version" : "3.0.0", + "name" : "onedark", + "path" : "colors/onedark.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "only_dark", + "mod_version" : "3.0.0", + "name" : "only_dark", + "path" : "colors/only_dark.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "plasma", + "mod_version" : "3.0.0", + "name" : "plasma", + "path" : "colors/plasma.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "rose-pine", + "mod_version" : "3.0.0", + "name" : "rose-pine", + "path" : "colors/rose-pine.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "rose-pine-dawn", + "mod_version" : "3.0.0", + "name" : "rose-pine-dawn", + "path" : "colors/rose-pine-dawn.lua", + "tags" : [ + "light" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "rose-pine-moon", + "mod_version" : "3.0.0", + "name" : "rose-pine-moon", + "path" : "colors/rose-pine-moon.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "solarized_light", + "mod_version" : "3.0.0", + "name" : "solarized_light", + "path" : "colors/solarized_light.lua", + "tags" : [ + "light" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "solarobj", + "mod_version" : "3.0.0", + "name" : "solarobj", + "path" : "colors/solarobj.lua", + "tags" : [ + "light" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "synthwave", + "mod_version" : "3.0.0", + "name" : "synthwave", + "path" : "colors/synthwave.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "tokyo-night", + "mod_version" : "3.0.0", + "name" : "tokyo-night", + "path" : "colors/tokyo-night.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "vscode-dark", + "mod_version" : "3.0.0", + "name" : "vscode-dark", + "path" : "colors/vscode-dark.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "winter", + "mod_version" : "3.0.0", + "name" : "winter", + "path" : "colors/winter.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, + { + "id" : "zenburn", + "mod_version" : "3.0.0", + "name" : "zenburn", + "path" : "colors/zenburn.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + } + ] +} diff --git a/scripts/make_preview_image.lua b/scripts/make_preview_image.lua new file mode 100755 index 0000000..6bcaac8 --- /dev/null +++ b/scripts/make_preview_image.lua @@ -0,0 +1,51 @@ +#!/usr/bin/lua + +local filename = ... +local name = filename:match("([^\\/]+)%..*$") + + +-- get colors +local text = io.open(filename):read("*a") +local colors = {} +for r, g, b in text:gmatch("#(%x%x)(%x%x)(%x%x)") do + r = tonumber(r, 16) + g = tonumber(g, 16) + b = tonumber(b, 16) + table.insert(colors, { r, g, b }) +end + +table.sort(colors, function(a, b) + return a[1] + a[2] + a[3] < b[1] + b[2] + b[3] +end) + +local function eq(a, b) + return a[1] == b[1] and a[2] == b[2] and a[3] == b[3] +end + +local prev = {} +for i = #colors, 1, -1 do + if eq(colors[i], prev) then + table.remove(colors, i) + else + prev = colors[i] + end +end + + +--generate svg file +local w = 200 +local h = 16 +local fp = io.open("previews/" .. name .. ".svg", "wb") + +fp:write(' \n') + +for i = 1, #colors do + local width = w/#colors + local r, g, b = table.unpack(colors[i]) + local rect = ' \n' + fp:write(rect) +end + +fp:write('') +fp:close() + -- cgit v1.2.3 From 5bc91eaa6dc45019a98dc27b98923e446b767c28 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 14:59:06 -0400 Subject: Reordered manifest. --- manifest.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/manifest.json b/manifest.json index 4e7d70f..ff98624 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,16 @@ { "addons" : [ + { + "id" : "abyss", + "mod_version" : "3.0.0", + "name" : "abyss", + "path" : "colors/abyss.lua", + "tags" : [ + "dark" + ], + "type" : "color", + "version" : "0.1" + }, { "id": "ayu-dark", "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", @@ -21,17 +32,6 @@ "dark" ] }, - { - "id" : "abyss", - "mod_version" : "3.0.0", - "name" : "abyss", - "path" : "colors/abyss.lua", - "tags" : [ - "dark" - ], - "type" : "color", - "version" : "0.1" - }, { "id" : "betelgeuse", "mod_version" : "3.0.0", -- cgit v1.2.3 From 5f7a391fd1efff6fad4bc507acc38e82c90276b6 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 15:34:31 -0400 Subject: Added in auto-generation and ran for the first time. --- .github/workflows/workflow.yml | 34 +++++++++++++++++ README.md | 82 +++++++++++++++++++++-------------------- manifest.json | 3 ++ previews/ayu-dark.svg | 30 +++++++++++++++ previews/ayu-light.svg | 28 ++++++++++++++ previews/ayu-mirage.svg | 30 +++++++++++++++ previews/github-dark-dimmed.svg | 22 +++++------ scripts/make_preview_image.lua | 79 ++++++++++++++++++++------------------- 8 files changed, 217 insertions(+), 91 deletions(-) create mode 100644 .github/workflows/workflow.yml create mode 100644 previews/ayu-dark.svg create mode 100644 previews/ayu-light.svg create mode 100644 previews/ayu-mirage.svg diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..4117b73 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,34 @@ +name: Update README + +on: + push: + branches: [master] + +jobs: + reorganize: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Generate table with `lpm` + run: | + wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm && chmod +x lpm + # Unstub all stubs so we can make proper previews. + ./lpm --userdir . init . && ./lpm --userdir . color install "*" && ./lpm purge --userdir . + ./lpm exec scripts/make_preview_image.lua + perl -pi -e 'exit(0) if $_ =~ m/^\-\-\-/' README.md + echo "---" >> README.md + echo -e "\n## Dark\n" >> README.md + echo "| Theme | Preview" >> README.md + echo "| :------------------------------------------------------------ | :----------------------------------------------------" >> README.md + ./lpm table manifest.json --type color --tag "dark" | tail -n +3 | perl -pe '($w) = $_ =~ m/`([^`]+)`/; $_ =~ s/$/ \!\[$w\_preview\](previews\/$w.svg)/ if $w' >> README.md + echo -e "\n## Light\n" >> README.md + echo "| Theme | Preview" >> README.md + echo "| :------------------------------------------------------------ | :----------------------------------------------------" >> README.md + ./lpm table manifest.json --type color --tag "light" | tail -n +3 | perl -pe '($w) = $_ =~ m/`([^`]+)`/; $_ =~ s/$/ \!\[$w\_preview\](previews\/$w.svg)/ if $w' >> README.md + if ! git diff --exit-code -s README.md; then + git config --global user.name "Github Actions" && git config --global user.email "<>" + git add README.md previews + git commit -m '[CI] Updated README.md.' + git push + fi + diff --git a/README.md b/README.md index c394bec..ba47468 100644 --- a/README.md +++ b/README.md @@ -25,46 +25,48 @@ embedded in the table.* ## Dark -Theme | Preview -------|----------------------------------------- -[`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) -[`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) -[`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) -[`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) -[`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) -[`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) -[`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) -[`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) -[`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![duotone_preview](previews/github-dark-dimmed.svg) -[`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) -[`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) -[`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) -[`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) -[`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) -[`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) -[`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) -[`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) -[`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) -[`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) -[`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) -[`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) -[`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1)| ![rose_pine_review](previews/rose-pine-moon.svg) -[`rose-pine`](colors/rose-pine.lua?raw=1)| ![rose_pine_review](previews/rose-pine.svg) -[`solarized_dark`](colors/solarized_dark.lua?raw=1) | ![solarized_dark_preview](previews/solarized_dark.svg) -[`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) -[`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) -[`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) -[`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) -[`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) +| Theme | Preview +| :------------------------------------------------------------ | :---------------------------------------------------- +| [`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) +| [`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) +| [`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) +| [`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) +| [`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) +| [`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) +| [`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) +| [`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) +| [`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) +| [`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) +| [`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) +| [`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) +| [`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) +| [`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) +| [`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) +| [`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) +| [`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) +| [`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) +| [`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) +| [`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) +| [`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) +| [`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) +| [`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) +| [`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) +| [`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) +| [`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) +| [`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) +| [`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) +| [`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) +| [`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) +| [`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) ## Light -Theme | Preview -------|----------------------------------------- -[`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) -[`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) -[`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) -[`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1)| ![rose_pine_review](previews/rose-pine-dawn.svg) -[`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) -[`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) - +| Theme | Preview +| :------------------------------------------------------------ | :---------------------------------------------------- +| [`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) +| [`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) +| [`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) +| [`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) +| [`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) +| [`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) +| [`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) diff --git a/manifest.json b/manifest.json index ff98624..bfb83c1 100644 --- a/manifest.json +++ b/manifest.json @@ -14,6 +14,7 @@ { "id": "ayu-dark", "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", + "type": "color", "tags": [ "dark" ] @@ -21,6 +22,7 @@ { "id": "ayu-light", "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", + "type": "color", "tags": [ "light" ] @@ -28,6 +30,7 @@ { "id": "ayu-mirage", "remote": "https://github.com/juliardi/lite-xl-ayu-theme.git:33a514527d4870480554771c273e667eb6418873", + "type": "color", "tags": [ "dark" ] diff --git a/previews/ayu-dark.svg b/previews/ayu-dark.svg new file mode 100644 index 0000000..b7b3895 --- /dev/null +++ b/previews/ayu-dark.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/previews/ayu-light.svg b/previews/ayu-light.svg new file mode 100644 index 0000000..eab30f0 --- /dev/null +++ b/previews/ayu-light.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/previews/ayu-mirage.svg b/previews/ayu-mirage.svg new file mode 100644 index 0000000..def7694 --- /dev/null +++ b/previews/ayu-mirage.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/previews/github-dark-dimmed.svg b/previews/github-dark-dimmed.svg index b68bb2c..8a689c0 100644 --- a/previews/github-dark-dimmed.svg +++ b/previews/github-dark-dimmed.svg @@ -1,12 +1,12 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/scripts/make_preview_image.lua b/scripts/make_preview_image.lua index 6bcaac8..d1d48be 100755 --- a/scripts/make_preview_image.lua +++ b/scripts/make_preview_image.lua @@ -1,51 +1,50 @@ #!/usr/bin/lua -local filename = ... -local name = filename:match("([^\\/]+)%..*$") - - --- get colors -local text = io.open(filename):read("*a") -local colors = {} -for r, g, b in text:gmatch("#(%x%x)(%x%x)(%x%x)") do - r = tonumber(r, 16) - g = tonumber(g, 16) - b = tonumber(b, 16) - table.insert(colors, { r, g, b }) -end +for i, filename in ipairs({ ... }) do + local name = filename:match("([^\\/]+)%..*$") + + -- get colors + local text = io.open(filename):read("*a") + local colors = {} + for r, g, b in text:gmatch("#(%x%x)(%x%x)(%x%x)") do + r = tonumber(r, 16) + g = tonumber(g, 16) + b = tonumber(b, 16) + table.insert(colors, { r, g, b }) + end -table.sort(colors, function(a, b) - return a[1] + a[2] + a[3] < b[1] + b[2] + b[3] -end) + table.sort(colors, function(a, b) + return a[1] + a[2] + a[3] < b[1] + b[2] + b[3] + end) -local function eq(a, b) - return a[1] == b[1] and a[2] == b[2] and a[3] == b[3] -end - -local prev = {} -for i = #colors, 1, -1 do - if eq(colors[i], prev) then - table.remove(colors, i) - else - prev = colors[i] + local function eq(a, b) + return a[1] == b[1] and a[2] == b[2] and a[3] == b[3] end -end + local prev = {} + for i = #colors, 1, -1 do + if eq(colors[i], prev) then + table.remove(colors, i) + else + prev = colors[i] + end + end ---generate svg file -local w = 200 -local h = 16 -local fp = io.open("previews/" .. name .. ".svg", "wb") -fp:write(' \n') + --generate svg file + local w = 200 + local h = 16 + local fp = io.open("previews/" .. name .. ".svg", "wb") -for i = 1, #colors do - local width = w/#colors - local r, g, b = table.unpack(colors[i]) - local rect = ' \n' - fp:write(rect) -end + fp:write(' \n') -fp:write('') -fp:close() + for i = 1, #colors do + local width = w/#colors + local r, g, b = table.unpack(colors[i]) + local rect = ' \n' + fp:write(rect) + end + fp:write('') + fp:close() +end -- cgit v1.2.3 From 9e404835133cd1f4f3568778ae4b1704fe9d3e35 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 17:38:44 -0400 Subject: Updated with new lpm style table output. --- .github/workflows/workflow.yml | 8 +--- README.md | 84 +++++++++++++++++++++--------------------- 2 files changed, 44 insertions(+), 48 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4117b73..b0fc92f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -18,13 +18,9 @@ jobs: perl -pi -e 'exit(0) if $_ =~ m/^\-\-\-/' README.md echo "---" >> README.md echo -e "\n## Dark\n" >> README.md - echo "| Theme | Preview" >> README.md - echo "| :------------------------------------------------------------ | :----------------------------------------------------" >> README.md - ./lpm table manifest.json --type color --tag "dark" | tail -n +3 | perl -pe '($w) = $_ =~ m/`([^`]+)`/; $_ =~ s/$/ \!\[$w\_preview\](previews\/$w.svg)/ if $w' >> README.md + ./lpm list --repository . --type color --tag "dark" --table 'url,{string.format("![%s_preview](previews/%s.svg)", addon.id,addon.id)}' --type color --header Theme,Preview >> README.md echo -e "\n## Light\n" >> README.md - echo "| Theme | Preview" >> README.md - echo "| :------------------------------------------------------------ | :----------------------------------------------------" >> README.md - ./lpm table manifest.json --type color --tag "light" | tail -n +3 | perl -pe '($w) = $_ =~ m/`([^`]+)`/; $_ =~ s/$/ \!\[$w\_preview\](previews\/$w.svg)/ if $w' >> README.md + ./lpm list --repository . --type color --tag "light" --table 'url,{string.format("![%s_preview](previews/%s.svg)", addon.id,addon.id)}' --type color --header Theme,Preview >> README.md if ! git diff --exit-code -s README.md; then git config --global user.name "Github Actions" && git config --global user.email "<>" git add README.md previews diff --git a/README.md b/README.md index ba47468..d185079 100644 --- a/README.md +++ b/README.md @@ -25,48 +25,48 @@ embedded in the table.* ## Dark -| Theme | Preview -| :------------------------------------------------------------ | :---------------------------------------------------- -| [`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) -| [`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) -| [`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) -| [`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) -| [`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) -| [`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) -| [`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) -| [`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) -| [`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) -| [`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) -| [`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) -| [`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) -| [`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) -| [`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) -| [`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) -| [`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) -| [`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) -| [`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) -| [`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) -| [`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) -| [`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) -| [`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) -| [`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) -| [`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) -| [`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) -| [`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) -| [`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) -| [`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) -| [`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) -| [`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) -| [`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) +Theme | Preview +------------------------------------------------------------------- | ---------------------------------------------------------------- +[`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) +[`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) +[`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) +[`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) +[`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) +[`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) +[`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) +[`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) +[`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) +[`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) +[`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) +[`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) +[`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) +[`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) +[`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) +[`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) +[`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) +[`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) +[`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) +[`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) +[`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) +[`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) +[`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) +[`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) +[`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) +[`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) +[`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) +[`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) +[`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) +[`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) +[`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) ## Light -| Theme | Preview -| :------------------------------------------------------------ | :---------------------------------------------------- -| [`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) -| [`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) -| [`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) -| [`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) -| [`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) -| [`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) -| [`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) +Theme | Preview +------------------------------------------------------------------ | -------------------------------------------------------- +[`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) +[`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) +[`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) +[`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) +[`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) +[`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) +[`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) -- cgit v1.2.3 From 0a69c480204d41c5c9e2667972f1abe4d8f32c7a Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 17:43:29 -0400 Subject: Fixed minor bug. --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b0fc92f..0994fdf 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -14,7 +14,7 @@ jobs: wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm && chmod +x lpm # Unstub all stubs so we can make proper previews. ./lpm --userdir . init . && ./lpm --userdir . color install "*" && ./lpm purge --userdir . - ./lpm exec scripts/make_preview_image.lua + ./lpm exec scripts/make_preview_image.lua colors/* perl -pi -e 'exit(0) if $_ =~ m/^\-\-\-/' README.md echo "---" >> README.md echo -e "\n## Dark\n" >> README.md -- cgit v1.2.3 From ab7c00081dcf777212280a8f880ff81356b56e6e Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 17:45:21 -0400 Subject: Changed message. --- README.md | 83 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index d185079..0c7bc88 100644 --- a/README.md +++ b/README.md @@ -16,57 +16,56 @@ Then, add a call to `core.reload_module` to your user module (the gear in the bo core.reload_module("colors.github_dark") ``` -*Note: if you make a pull request, the relevant table should be updated and kept -in alphabetical order. The [`make_preview_image.lua`](make_preview_image.lua) -script should be used to create a preview image for your theme which should be -embedded in the table.* +*Note: if you make a pull request, please update the manifest.json. +The below table will be automatically updated as part of CI; please +do not bother modifying it.* --- ## Dark -Theme | Preview +Theme | Preview ------------------------------------------------------------------- | ---------------------------------------------------------------- -[`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) -[`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) -[`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) -[`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) -[`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) -[`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) -[`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) -[`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) -[`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) -[`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) -[`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) -[`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) -[`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) -[`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) -[`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) -[`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) -[`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) -[`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) -[`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) +[`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) +[`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) +[`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) +[`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) +[`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) +[`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) +[`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) +[`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) +[`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) +[`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) +[`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) +[`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) +[`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) +[`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) +[`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) +[`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) +[`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) +[`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) +[`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) [`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) -[`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) -[`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) -[`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) -[`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) -[`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) -[`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) -[`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) -[`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) -[`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) -[`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) -[`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) +[`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) +[`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) +[`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) +[`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) +[`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) +[`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) +[`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) +[`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) +[`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) +[`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) +[`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) ## Light -Theme | Preview +Theme | Preview ------------------------------------------------------------------ | -------------------------------------------------------- -[`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) -[`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) -[`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) -[`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) -[`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) +[`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) +[`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) +[`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) +[`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) +[`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) [`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) -[`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) +[`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) -- cgit v1.2.3 From 38e6cc281d72eb3c7d9ffb8c245cfa7c707d9816 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 17:47:50 -0400 Subject: Added in extra warning. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0c7bc88..ee40436 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,11 @@ core.reload_module("colors.github_dark") The below table will be automatically updated as part of CI; please do not bother modifying it.* + + + + + --- ## Dark -- cgit v1.2.3 From 0b38ec93e8a625c6e5c8e6d33fd6cc960aab867f Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 17:49:38 -0400 Subject: Added explanatory comment. --- .github/workflows/workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 0994fdf..6022eae 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -15,6 +15,7 @@ jobs: # Unstub all stubs so we can make proper previews. ./lpm --userdir . init . && ./lpm --userdir . color install "*" && ./lpm purge --userdir . ./lpm exec scripts/make_preview_image.lua colors/* + # Remove everything after the --- so we can regenerate it. perl -pi -e 'exit(0) if $_ =~ m/^\-\-\-/' README.md echo "---" >> README.md echo -e "\n## Dark\n" >> README.md -- cgit v1.2.3 From bc75163b8b0dac536b1ccccf9d4325537a8ce4eb Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Sep 2023 23:15:36 -0400 Subject: Updated with bordered tables. --- README.md | 84 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index ee40436..6741a54 100644 --- a/README.md +++ b/README.md @@ -29,48 +29,48 @@ do not bother modifying it.* ## Dark -Theme | Preview -------------------------------------------------------------------- | ---------------------------------------------------------------- -[`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) -[`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) -[`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) -[`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) -[`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) -[`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) -[`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) -[`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) -[`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) -[`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) -[`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) -[`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) -[`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) -[`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) -[`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) -[`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) -[`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) -[`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) -[`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) -[`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) -[`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) -[`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) -[`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) -[`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) -[`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) -[`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) -[`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) -[`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) -[`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) -[`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) -[`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) +| Theme | Preview | +| ------------------------------------------------------------------- | ---------------------------------------------------------------- | +| [`abyss`](colors/abyss.lua?raw=1) | ![abyss_preview](previews/abyss.svg) | +| [`ayu-dark`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-dark_preview](previews/ayu-dark.svg) | +| [`ayu-mirage`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-mirage_preview](previews/ayu-mirage.svg) | +| [`betelgeuse`](colors/betelgeuse.lua?raw=1) | ![betelgeuse_preview](previews/betelgeuse.svg) | +| [`c0mfy`](colors/c0mfy.lua?raw=1) | ![c0mfy_preview](previews/c0mfy.svg) | +| [`cold_lime`](colors/cold_lime.lua?raw=1) | ![cold_lime_preview](previews/cold_lime.svg) | +| [`dracula`](colors/dracula.lua?raw=1) | ![dracula_preview](previews/dracula.svg) | +| [`duorand`](colors/duorand.lua?raw=1) | ![duorand_preview](previews/duorand.svg) | +| [`duotone`](colors/duotone.lua?raw=1) | ![duotone_preview](previews/duotone.svg) | +| [`everforest`](colors/everforest.lua?raw=1) | ![everforest_preview](previews/everforest.svg) | +| [`github-dark-dimmed`](colors/github-dark-dimmed.lua?raw=1) | ![github-dark-dimmed_preview](previews/github-dark-dimmed.svg) | +| [`github_dark`](colors/github_dark.lua?raw=1) | ![github_dark_preview](previews/github_dark.svg) | +| [`gruvbox_dark`](colors/gruvbox_dark.lua?raw=1) | ![gruvbox_dark_preview](previews/gruvbox_dark.svg) | +| [`jb-fleet`](colors/jb-fleet.lua?raw=1) | ![jb-fleet_preview](previews/jb-fleet.svg) | +| [`jellybeans`](colors/jellybeans.lua?raw=1) | ![jellybeans_preview](previews/jellybeans.svg) | +| [`liqube`](colors/liqube.lua?raw=1) | ![liqube_preview](previews/liqube.svg) | +| [`mariana`](colors/mariana.lua?raw=1) | ![mariana_preview](previews/mariana.svg) | +| [`monodark`](colors/monodark.lua?raw=1) | ![monodark_preview](previews/monodark.svg) | +| [`monokai`](colors/monokai.lua?raw=1) | ![monokai_preview](previews/monokai.svg) | +| [`monokai-pro-classic`](colors/monokai-pro-classic.lua?raw=1) | ![monokai-pro-classic_preview](previews/monokai-pro-classic.svg) | +| [`nord`](colors/nord.lua?raw=1) | ![nord_preview](previews/nord.svg) | +| [`onedark`](colors/onedark.lua?raw=1) | ![onedark_preview](previews/onedark.svg) | +| [`only_dark`](colors/only_dark.lua?raw=1) | ![only_dark_preview](previews/only_dark.svg) | +| [`plasma`](colors/plasma.lua?raw=1) | ![plasma_preview](previews/plasma.svg) | +| [`rose-pine`](colors/rose-pine.lua?raw=1) | ![rose-pine_preview](previews/rose-pine.svg) | +| [`rose-pine-moon`](colors/rose-pine-moon.lua?raw=1) | ![rose-pine-moon_preview](previews/rose-pine-moon.svg) | +| [`synthwave`](colors/synthwave.lua?raw=1) | ![synthwave_preview](previews/synthwave.svg) | +| [`tokyo-night`](colors/tokyo-night.lua?raw=1) | ![tokyo-night_preview](previews/tokyo-night.svg) | +| [`vscode-dark`](colors/vscode-dark.lua?raw=1) | ![vscode-dark_preview](previews/vscode-dark.svg) | +| [`winter`](colors/winter.lua?raw=1) | ![winter_preview](previews/winter.svg) | +| [`zenburn`](colors/zenburn.lua?raw=1) | ![zenburn_preview](previews/zenburn.svg) | ## Light -Theme | Preview ------------------------------------------------------------------- | -------------------------------------------------------- -[`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) -[`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) -[`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) -[`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) -[`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) -[`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) -[`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) +| Theme | Preview | +| ------------------------------------------------------------------ | -------------------------------------------------------- | +| [`ayu-light`](https://github.com/juliardi/lite-xl-ayu-theme.git)\* | ![ayu-light_preview](previews/ayu-light.svg) | +| [`github`](colors/github.lua?raw=1) | ![github_preview](previews/github.svg) | +| [`gruvbox_light`](colors/gruvbox_light.lua?raw=1) | ![gruvbox_light_preview](previews/gruvbox_light.svg) | +| [`moe`](colors/moe.lua?raw=1) | ![moe_preview](previews/moe.svg) | +| [`rose-pine-dawn`](colors/rose-pine-dawn.lua?raw=1) | ![rose-pine-dawn_preview](previews/rose-pine-dawn.svg) | +| [`solarized_light`](colors/solarized_light.lua?raw=1) | ![solarized_light_preview](previews/solarized_light.svg) | +| [`solarobj`](colors/solarobj.lua?raw=1) | ![solarobj_preview](previews/solarobj.svg) | -- cgit v1.2.3