Skip to content

Commit

Permalink
fix!: remove popup as it is to difficult to manage
Browse files Browse the repository at this point in the history
Popup was a little made to see if it was possible to have separate
highlights for floating windows and for menu like popup items,
this proved to be very difficult to manage and outright impossible
to deal with very specific situations that add much to complexity
as well as straight up not working with out modifying use configurations
and that is outside the scope of a theme, maybe if something changes
or anything new arises in the future ill give it an other go but for now
it will just be removed.
  • Loading branch information
A-Lamia authored and mehalter committed Oct 11, 2023
1 parent 6490250 commit dd49c67
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 36 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ require("astrotheme").setup({
transparent = false, -- Bool value, toggles transparency.
inactive = true, -- Bool value, toggles inactive window color.
float = true, -- Bool value, toggles floating windows background colors.
popup = true, -- Bool value, toggles popup background color.
neotree = true, -- Bool value, toggles neo-trees background color.
border = true, -- Bool value, toggles borders.
title_invert = true, -- Bool value, swaps text and background colors.
Expand Down Expand Up @@ -176,7 +175,6 @@ ui.base
ui.inactive_base
ui.statusline
ui.split
ui.popup
ui.float
ui.title
ui.border
Expand Down
2 changes: 0 additions & 2 deletions doc/astrotheme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ OPTIONS *astrotheme-options*
transparent = false, -- Bool value, toggles transparency.
inactive = true, -- Bool value, toggles inactive window color.
float = true, -- Bool value, toggles floating windows background colors.
popup = true, -- Bool value, toggles popup background color.
neotree = true, -- Bool value, toggles neo-trees background color.
border = true, -- Bool value, toggles borders.
title_invert = true, -- Bool value, swaps text and background colors.
Expand Down Expand Up @@ -159,7 +158,6 @@ modifiable palette names ~
ui.inactive_base
ui.statusline
ui.split
ui.popup
ui.float
ui.title
ui.border
Expand Down
1 change: 0 additions & 1 deletion extras/wezterm/wezterm_astrodark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ c.ui.base = "#1A1D23"
c.ui.inactive_base = "#16181D"
c.ui.statusline = "#111317"
c.ui.split = "#111317"
c.ui.popup = "#16181D"
c.ui.float = "#16181D"
c.ui.title = c.ui.accent
c.ui.border = "#7A7C7E"
Expand Down
24 changes: 0 additions & 24 deletions lua/astrotheme/groups/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,6 @@ local function callback(opts)
blend = vim.o.winblend or 0,
},

--------------------
--- Popup
--------------------
PopupTitle = {
fg = (opts.title_invert and C.ui.tool) or C.ui.title,
bg = (opts.title_invert and C.ui.title)
or (opts.inactive and C.ui.base)
or (opts.popup and C.ui.popup)
or (opts.transparent and C.none)
or C.ui.base,
blend = opts.title_invert and 0 or vim.o.winblend or 0,
bold = true,
},
PopupBorder = {
fg = (opts.border and C.ui.border) or (opts.inactive and C.ui.base) or (opts.popup and C.ui.popup) or C.ui.base,
bg = (opts.inactive and C.ui.base) or (opts.popup and C.ui.popup) or (opts.transparent and C.none) or C.ui.base,
blend = vim.o.winblend or 0,
},
NormalPopup = {
fg = C.ui.text,
bg = (opts.inactive and C.ui.base) or (opts.popup and C.ui.popup) or (opts.transparent and C.none) or C.ui.base,
blend = vim.o.winblend or 0,
},

--------------------
--- Text
--------------------
Expand Down
4 changes: 2 additions & 2 deletions lua/astrotheme/groups/plugins/which-key.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local function callback(opts)
return {
WhichKey = { fg = C.ui.cyan },
WhichKeyFloat = { bg = opts.popup and C.ui.popup or C.ui.base },
WhichKeyBorder = { fg = C.none },
WhichKeyFloat = { link = "NormalFloat" },
WhichKeyBorder = { link = "FloatBorder" },
WhichKeySeparator = { fg = C.ui.none_text },
WhichKeyDesc = { fg = C.ui.purple },
WhichKeyGroup = { fg = C.ui.blue },
Expand Down
1 change: 0 additions & 1 deletion lua/astrotheme/lib/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ M.default = {
transparent = false,
inactive = true,
float = true,
popup = true,
neotree = true,
border = true,
title_invert = false,
Expand Down
2 changes: 0 additions & 2 deletions lua/astrotheme/palettes/astrodark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ c.ui.base = "#1A1D23"
c.ui.inactive_base = "#16181D"
c.ui.statusline = "#111317"
c.ui.split = "#111317"
c.ui.popup = "#16181D"
c.ui.float = "#16181D"
c.ui.title = c.ui.accent
c.ui.border = "#3A3E47"
c.ui.current_line = "#1E222A"
Expand Down
1 change: 0 additions & 1 deletion lua/astrotheme/palettes/astrolight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ c.ui.base = "#FEEEEE"
c.ui.inactive_base = "#F9DCD1"
c.ui.statusline = "#D8D6D5"
c.ui.split = "#D8D6D5"
c.ui.popup = "#D8D6D5"
c.ui.float = "#D8D6D5"
c.ui.title = c.ui.accent
c.ui.border = c.ui.accent
Expand Down
1 change: 0 additions & 1 deletion lua/astrotheme/palettes/astromars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ c.ui.base = "#1E1517"
c.ui.inactive_base = "#1A1113"
c.ui.statusline = "#281E22"
c.ui.split = "#281E22"
c.ui.popup = "#1A1113"
c.ui.float = "#1A1113"
c.ui.title = c.ui.accent
c.ui.border = "#736468"
Expand Down

0 comments on commit dd49c67

Please sign in to comment.