mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-08 11:48:01 +02:00
fix bar_color and title_color rules
This commit is contained in:
parent
a70775789c
commit
15140f4343
1 changed files with 2 additions and 2 deletions
|
|
@ -764,9 +764,9 @@ void CHyprBar::updateRules() {
|
|||
if (PWINDOW->m_ruleApplicator->m_otherProps.props.contains(g_pGlobalState->nobarRuleIdx))
|
||||
m_hidden = truthy(PWINDOW->m_ruleApplicator->m_otherProps.props.at(g_pGlobalState->nobarRuleIdx)->effect);
|
||||
if (PWINDOW->m_ruleApplicator->m_otherProps.props.contains(g_pGlobalState->barColorRuleIdx))
|
||||
m_bForcedBarColor = CHyprColor(configStringToInt(PWINDOW->m_ruleApplicator->m_otherProps.props.at(g_pGlobalState->nobarRuleIdx)->effect).value_or(0));
|
||||
m_bForcedBarColor = CHyprColor(configStringToInt(PWINDOW->m_ruleApplicator->m_otherProps.props.at(g_pGlobalState->barColorRuleIdx)->effect).value_or(0));
|
||||
if (PWINDOW->m_ruleApplicator->m_otherProps.props.contains(g_pGlobalState->titleColorRuleIdx))
|
||||
m_bForcedTitleColor = CHyprColor(configStringToInt(PWINDOW->m_ruleApplicator->m_otherProps.props.at(g_pGlobalState->nobarRuleIdx)->effect).value_or(0));
|
||||
m_bForcedTitleColor = CHyprColor(configStringToInt(PWINDOW->m_ruleApplicator->m_otherProps.props.at(g_pGlobalState->titleColorRuleIdx)->effect).value_or(0));
|
||||
|
||||
if (prevHidden != m_hidden)
|
||||
g_pDecorationPositioner->repositionDeco(this);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue