1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

fix(progressbar): Pass label to builder

Ref #224
This commit is contained in:
Michael Carlberg 2016-12-05 05:04:42 +01:00
parent 7d1092db04
commit 1a48f825d1

View file

@ -73,7 +73,7 @@ namespace drawtypes {
if (i % m_colorstep == 0 && color < m_colors.size()) {
m_fill->m_foreground = m_colors[color++];
}
m_builder->node(m_fill->get());
m_builder->node(m_fill);
}
} else {
size_t color = math_util::percentage_to_value<size_t>(perc, m_colors.size() - 1);