Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions colors/randombones_dark.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
if vim.g.colors_name then
vim.api.nvim_command [[highlight clear]]
end

vim.g.colors_name = "randombones_dark"

local util = require "zenbones.util"
local colorschemes = util.get_colorscheme_list()

math.randomseed(os.time())

local colorscheme = colorschemes[1]
while true do
local index = math.random(#colorschemes)
colorscheme = colorschemes[index]
if colorscheme.background ~= "light" then
break
end
end

vim.g.randombones_colors_name = colorscheme.name

vim.o.background = "dark"
vim.g.colors_name = colorscheme.name
Comment thread
blackhat-hemsworth marked this conversation as resolved.
Outdated

util.apply_colorscheme()
26 changes: 26 additions & 0 deletions colors/randombones_light.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
if vim.g.colors_name then
vim.api.nvim_command [[highlight clear]]
end

vim.g.colors_name = "randombones_dark"

local util = require "zenbones.util"
local colorschemes = util.get_colorscheme_list()

math.randomseed(os.time())

local colorscheme = colorschemes[1]
while true do
local index = math.random(#colorschemes)
colorscheme = colorschemes[index]
if colorscheme.background ~= "dark" then
break
end
end

vim.g.randombones_colors_name = colorscheme.name

vim.o.background = "light"
vim.g.colors_name = colorscheme.name

util.apply_colorscheme()