mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-12-18 05:09:49 +01:00
hyprbars: chase hyprland
This commit is contained in:
parent
d39901fe17
commit
17ef806444
2 changed files with 6 additions and 6 deletions
|
@ -562,13 +562,13 @@ void CHyprBar::updateRules() {
|
|||
m_bTitleColorChanged = true;
|
||||
}
|
||||
|
||||
void CHyprBar::applyRule(const SWindowRule& r) {
|
||||
auto arg = r.szRule.substr(r.szRule.find_first_of(' ') + 1);
|
||||
void CHyprBar::applyRule(const SP<CWindowRule>& r) {
|
||||
auto arg = r->szRule.substr(r->szRule.find_first_of(' ') + 1);
|
||||
|
||||
if (r.szRule == "plugin:hyprbars:nobar")
|
||||
if (r->szRule == "plugin:hyprbars:nobar")
|
||||
m_bHidden = true;
|
||||
else if (r.szRule.starts_with("plugin:hyprbars:bar_color"))
|
||||
else if (r->szRule.starts_with("plugin:hyprbars:bar_color"))
|
||||
m_bForcedBarColor = CHyprColor(configStringToInt(arg).value_or(0));
|
||||
else if (r.szRule.starts_with("plugin:hyprbars:title_color"))
|
||||
else if (r->szRule.starts_with("plugin:hyprbars:title_color"))
|
||||
m_bForcedTitleColor = CHyprColor(configStringToInt(arg).value_or(0));
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class CHyprBar : public IHyprWindowDecoration {
|
|||
PHLWINDOW getOwner();
|
||||
|
||||
void updateRules();
|
||||
void applyRule(const SWindowRule&);
|
||||
void applyRule(const SP<CWindowRule>&);
|
||||
|
||||
private:
|
||||
SBoxExtents m_seExtents;
|
||||
|
|
Loading…
Reference in a new issue