mirror of
https://github.com/polybar/polybar.git
synced 2025-06-02 18:22:03 -04:00
fix(xft): Allocate xft color by value
- Solves the issue with transparency using Xft. - X11 fonts are still affected by the alpha issue. Closes jaagr/lemonbuddy#119
This commit is contained in:
parent
41ba9beeee
commit
efba06dc2d
8 changed files with 84 additions and 43 deletions
|
@ -144,9 +144,9 @@ namespace drawtypes {
|
|||
// avoid color bleed
|
||||
if (icon_empty && icon_indicator) {
|
||||
if (!icon_indicator->m_background.empty() && icon_empty->m_background.empty())
|
||||
icon_empty->m_background = bar.background.hex();
|
||||
icon_empty->m_background = bar.background.hex_to_rgba();
|
||||
if (!icon_indicator->m_foreground.empty() && icon_empty->m_foreground.empty())
|
||||
icon_empty->m_foreground = bar.foreground.hex();
|
||||
icon_empty->m_foreground = bar.foreground.hex_to_rgba();
|
||||
}
|
||||
|
||||
progressbar->set_empty(move(icon_empty));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue