mirror of
https://github.com/timmypidashev/darkbox.nvim.git
synced 2026-04-14 03:33:51 +00:00
Upload screenshots; update darkbox.lua
This commit is contained in:
BIN
.github/darkbox.png
vendored
BIN
.github/darkbox.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB |
BIN
.github/screenshot.png
vendored
BIN
.github/screenshot.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 547 KiB |
BIN
.github/screenshot_classic.png
vendored
Normal file
BIN
.github/screenshot_classic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 349 KiB |
BIN
.github/screenshot_dim.png
vendored
Normal file
BIN
.github/screenshot_dim.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 330 KiB |
BIN
.github/screenshot_retro.png
vendored
Normal file
BIN
.github/screenshot_retro.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 342 KiB |
@@ -11,12 +11,12 @@ A pure-black refresh of the retro-groove aesthetic for modern displays. Darkbox
|
|||||||
|
|
||||||
## 📸 Screenshots
|
## 📸 Screenshots
|
||||||
|
|
||||||
### Base
|
|
||||||

|
|
||||||
|
|
||||||
### Classic
|
### Classic
|
||||||

|

|
||||||
|
|
||||||
|
### Retro
|
||||||
|

|
||||||
|
|
||||||
### Dim
|
### Dim
|
||||||

|

|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ require("darkbox").setup({
|
|||||||
invert_tabline = false,
|
invert_tabline = false,
|
||||||
invert_intend_guides = false,
|
invert_intend_guides = false,
|
||||||
inverse = true, -- invert background for search, diffs, statuslines and errors
|
inverse = true, -- invert background for search, diffs, statuslines and errors
|
||||||
contrast = "", -- can be "classic", "dim" or empty string
|
contrast = "", -- can be "retro", "dim" or empty string for classic
|
||||||
palette_overrides = {},
|
palette_overrides = {},
|
||||||
overrides = {},
|
overrides = {},
|
||||||
dim_inactive = false,
|
dim_inactive = false,
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ Darkbox.palette = {
|
|||||||
background_3 = "#665c54",
|
background_3 = "#665c54",
|
||||||
background_4 = "#7c6f64",
|
background_4 = "#7c6f64",
|
||||||
classic_foreground = "#ebdbb2",
|
classic_foreground = "#ebdbb2",
|
||||||
base_foreground = "#bdae93",
|
retro_foreground = "#bdae93",
|
||||||
dim_foreground = "#a89984",
|
dim_foreground = "#a89984",
|
||||||
foreground_1 = "#bdae93",
|
foreground_1 = "#bdae93",
|
||||||
foreground_2 = "#d5c4a1",
|
foreground_2 = "#d5c4a1",
|
||||||
@@ -100,13 +100,13 @@ Darkbox.palette = {
|
|||||||
classic_purple = "#d3869b",
|
classic_purple = "#d3869b",
|
||||||
classic_aqua = "#8ec07c",
|
classic_aqua = "#8ec07c",
|
||||||
classic_orange = "#fe8019",
|
classic_orange = "#fe8019",
|
||||||
base_red = "#cc241d",
|
retro_red = "#cc241d",
|
||||||
base_green = "#98971a",
|
retro_green = "#98971a",
|
||||||
base_yellow = "#d79921",
|
retro_yellow = "#d79921",
|
||||||
base_blue = "#458588",
|
retro_blue = "#458588",
|
||||||
base_purple = "#b16286",
|
retro_purple = "#b16286",
|
||||||
base_aqua = "#689d6a",
|
retro_aqua = "#689d6a",
|
||||||
base_orange = "#d65d0e",
|
retro_orange = "#d65d0e",
|
||||||
dim_red = "#9d0006",
|
dim_red = "#9d0006",
|
||||||
dim_green = "#79740e",
|
dim_green = "#79740e",
|
||||||
dim_yellow = "#b57614",
|
dim_yellow = "#b57614",
|
||||||
@@ -131,15 +131,15 @@ local function get_colors()
|
|||||||
foreground_4 = palette.foreground_4,
|
foreground_4 = palette.foreground_4,
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.contrast == "classic" then
|
if config.contrast == "retro" then
|
||||||
colors.foreground = palette.classic_foreground
|
colors.foreground = palette.retro_foreground
|
||||||
colors.red = palette.classic_red
|
colors.red = palette.retro_red
|
||||||
colors.green = palette.classic_green
|
colors.green = palette.retro_green
|
||||||
colors.yellow = palette.classic_yellow
|
colors.yellow = palette.retro_yellow
|
||||||
colors.blue = palette.classic_blue
|
colors.blue = palette.retro_blue
|
||||||
colors.purple = palette.classic_purple
|
colors.purple = palette.retro_purple
|
||||||
colors.aqua = palette.classic_aqua
|
colors.aqua = palette.retro_aqua
|
||||||
colors.orange = palette.classic_orange
|
colors.orange = palette.retro_orange
|
||||||
colors.gray = palette.gray
|
colors.gray = palette.gray
|
||||||
elseif config.contrast == "dim" then
|
elseif config.contrast == "dim" then
|
||||||
colors.foreground = palette.dim_foreground
|
colors.foreground = palette.dim_foreground
|
||||||
@@ -151,15 +151,15 @@ local function get_colors()
|
|||||||
colors.aqua = palette.dim_aqua
|
colors.aqua = palette.dim_aqua
|
||||||
colors.orange = palette.dim_orange
|
colors.orange = palette.dim_orange
|
||||||
colors.gray = palette.gray
|
colors.gray = palette.gray
|
||||||
else -- base/default
|
else -- classic/default
|
||||||
colors.foreground = palette.base_foreground
|
colors.foreground = palette.classic_foreground
|
||||||
colors.red = palette.base_red
|
colors.red = palette.classic_red
|
||||||
colors.green = palette.base_green
|
colors.green = palette.classic_green
|
||||||
colors.yellow = palette.base_yellow
|
colors.yellow = palette.classic_yellow
|
||||||
colors.blue = palette.base_blue
|
colors.blue = palette.classic_blue
|
||||||
colors.purple = palette.base_purple
|
colors.purple = palette.classic_purple
|
||||||
colors.aqua = palette.base_aqua
|
colors.aqua = palette.classic_aqua
|
||||||
colors.orange = palette.base_orange
|
colors.orange = palette.classic_orange
|
||||||
colors.gray = palette.gray
|
colors.gray = palette.gray
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -174,36 +174,10 @@ end
|
|||||||
local function get_groups()
|
local function get_groups()
|
||||||
local colors = get_colors()
|
local colors = get_colors()
|
||||||
local config = Darkbox.config
|
local config = Darkbox.config
|
||||||
local palette = Darkbox.palette
|
|
||||||
|
|
||||||
if config.terminal_colors then
|
|
||||||
local term_colors = {
|
|
||||||
palette.background, -- color_0 (black)
|
|
||||||
palette.base_red, -- color_1 (red)
|
|
||||||
palette.base_green, -- color_2 (green)
|
|
||||||
palette.base_yellow, -- color_3 (yellow)
|
|
||||||
palette.base_blue, -- color_4 (blue)
|
|
||||||
palette.base_purple, -- color_5 (purple)
|
|
||||||
palette.base_aqua, -- color_6 (cyan/aqua)
|
|
||||||
palette.foreground_4, -- color_7 (white)
|
|
||||||
palette.gray, -- color_8 (bright black)
|
|
||||||
palette.classic_red, -- color_9 (bright red)
|
|
||||||
palette.classic_green, -- color_10 (bright green)
|
|
||||||
palette.classic_yellow, -- color_11 (bright yellow)
|
|
||||||
palette.classic_blue, -- color_12 (bright blue)
|
|
||||||
palette.classic_purple, -- color_13 (bright purple)
|
|
||||||
palette.classic_aqua, -- color_14 (bright cyan/aqua)
|
|
||||||
colors.foreground, -- color_15 (specified contrast foreground)
|
|
||||||
}
|
|
||||||
|
|
||||||
for index, value in ipairs(term_colors) do
|
|
||||||
vim.g["terminal_color_" .. index - 1] = value
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local groups = {
|
local groups = {
|
||||||
DarkboxFg0 = { fg = colors.foreground },
|
DarkboxFg0 = { fg = colors.foreground },
|
||||||
DarkboxFg1 = { fg = colors.foreground },
|
DarkboxFg1 = { fg = colors.foreground_1 },
|
||||||
DarkboxFg2 = { fg = colors.foreground_2 },
|
DarkboxFg2 = { fg = colors.foreground_2 },
|
||||||
DarkboxFg3 = { fg = colors.foreground_3 },
|
DarkboxFg3 = { fg = colors.foreground_3 },
|
||||||
DarkboxFg4 = { fg = colors.foreground_4 },
|
DarkboxFg4 = { fg = colors.foreground_4 },
|
||||||
@@ -248,8 +222,8 @@ local function get_groups()
|
|||||||
DarkboxPurpleUnderline = { undercurl = config.undercurl, sp = colors.purple },
|
DarkboxPurpleUnderline = { undercurl = config.undercurl, sp = colors.purple },
|
||||||
DarkboxAquaUnderline = { undercurl = config.undercurl, sp = colors.aqua },
|
DarkboxAquaUnderline = { undercurl = config.undercurl, sp = colors.aqua },
|
||||||
DarkboxOrangeUnderline = { undercurl = config.undercurl, sp = colors.orange },
|
DarkboxOrangeUnderline = { undercurl = config.undercurl, sp = colors.orange },
|
||||||
Normal = config.transparent_mode and { fg = colors.foreground_1, bg = nil }
|
Normal = config.transparent_mode and { fg = colors.foreground, bg = nil }
|
||||||
or { fg = colors.foreground_1, bg = colors.background },
|
or { fg = colors.foreground, bg = colors.background },
|
||||||
NormalFloat = config.transparent_mode and { fg = colors.foreground_1, bg = nil }
|
NormalFloat = config.transparent_mode and { fg = colors.foreground_1, bg = nil }
|
||||||
or { fg = colors.foreground_1, bg = colors.background_1 },
|
or { fg = colors.foreground_1, bg = colors.background_1 },
|
||||||
NormalNC = config.dim_inactive and { fg = colors.foreground_1, bg = colors.background_1 } or { link = "Normal" },
|
NormalNC = config.dim_inactive and { fg = colors.foreground_1, bg = colors.background_1 } or { link = "Normal" },
|
||||||
|
|||||||
Reference in New Issue
Block a user