stackline
stackline copied to clipboard
Inactive pills disappear when in minimal mode
I notice that when icons are enabled, if you focus away from the stack, the inactive stack icons lose their background colour and become completely transparent.
This looks fine when icons are enabled, but causes the whole pill to disappear when in minimal mode with icons disabled. Here's a gif showing how the pills disappear when the focus is moved away from the stack...
I'm also looking for a fix for this. Any luck?
It has to do with the getColorAttrs, by modifying that function you can do as suits you
diff --git a/stackline/window.lua b/stackline/window.lua
index 82a6eb5..be962f2 100644
--- a/stackline/window.lua
+++ b/stackline/window.lua
@@ -265,20 +265,13 @@ function Window:getColorAttrs(isStackFocused, isWinFocused) -- {{{
['false'] = {
window = {
['true'] = {
- bg = u.extend(u.copy(opts.color), {
- alpha = opts.alpha / (opts.dimmer / 1.2),
- }),
- -- last-focused icon stays full alpha when stack unfocused
+ bg = u.extend(opts.color, {alpha = opts.alpha}),
img = opts.alpha,
},
['false'] = {
- bg = u.extend(u.copy(opts.color), {
- alpha = stackline.manager:getShowIconsState() and 0 or
- 0.2,
- }),
- -- unfocused icon has slightly lower alpha when stack also unfocused
- img = opts.alpha /
- (opts.iconDimmer + (opts.iconDimmer * 0.70)),
+ bg = u.extend(u.copy(opts.color),
+ {alpha = opts.alpha / opts.dimmer}),
+ img = opts.alpha / opts.iconDimmer,
},
},
},