mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-25 03:35:59 +01:00
hyprbars: use unscaled size for font calcs
This commit is contained in:
parent
f203d69f98
commit
69dd204c52
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ void CHyprBar::renderBarButtonsText(wlr_box* barBox, const float scale) {
|
||||||
|
|
||||||
const bool LIGHT = button.col.r + button.col.g + button.col.b < 1;
|
const bool LIGHT = button.col.r + button.col.g + button.col.b < 1;
|
||||||
|
|
||||||
renderText(button.iconTex, button.icon, LIGHT ? CColor(0xFFFFFFFF) : CColor(0xFF000000), BUFSIZE, scale, scaledButtonSize * 0.62);
|
renderText(button.iconTex, button.icon, LIGHT ? CColor(0xFFFFFFFF) : CColor(0xFF000000), BUFSIZE, scale, button.size * 0.62);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (button.iconTex.m_iTexID == 0)
|
if (button.iconTex.m_iTexID == 0)
|
||||||
|
|
Loading…
Reference in a new issue