Compare commits
No commits in common. "7633ed75a9699dbf3a302c0483f008f90949dc52" and "13b737daf713c9de9d60450ae9b7b334d60c952a" have entirely different histories.
7633ed75a9
...
13b737daf7
3 changed files with 4 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ import "." as M
|
||||||
M.BarSection {
|
M.BarSection {
|
||||||
id: root
|
id: root
|
||||||
spacing: Math.max(1, M.Theme.moduleSpacing - 2)
|
spacing: Math.max(1, M.Theme.moduleSpacing - 2)
|
||||||
tooltip: ""
|
tooltip: "CPU: " + root.usage + "%\n" + root.freqGhz.toFixed(2) + " GHz"
|
||||||
|
|
||||||
property int usage: 0
|
property int usage: 0
|
||||||
property real freqGhz: 0
|
property real freqGhz: 0
|
||||||
|
|
|
||||||
|
|
@ -111,10 +111,7 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
onHoveredChanged: {
|
onHoveredChanged: root.panelHovered = hovered
|
||||||
console.log("[hoverpanel:" + root.panelNamespace + "] hovered →", hovered);
|
|
||||||
root.panelHovered = hovered;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
M.PopupBackground {
|
M.PopupBackground {
|
||||||
|
|
|
||||||
|
|
@ -43,14 +43,8 @@ M.BarSection {
|
||||||
readonly property bool _anyHover: root._hovered || hoverPanel.panelHovered
|
readonly property bool _anyHover: root._hovered || hoverPanel.panelHovered
|
||||||
readonly property bool _showPanel: _anyHover || _expanded || _osdActive
|
readonly property bool _showPanel: _anyHover || _expanded || _osdActive
|
||||||
|
|
||||||
on_ShowPanelChanged: {
|
on_ShowPanelChanged: if (!_showPanel)
|
||||||
console.log("[vol] showPanel:", _showPanel, "| anyHover:", _anyHover, "| expanded:", _expanded, "| osd:", _osdActive);
|
_expanded = false
|
||||||
if (!_showPanel)
|
|
||||||
_expanded = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
on_ExpandedChanged: console.log("[vol] expanded →", _expanded)
|
|
||||||
on_AnyHoverChanged: console.log("[vol] anyHover →", _anyHover, "| barHover:", root._hovered, "| panelHover:", hoverPanel.panelHovered)
|
|
||||||
|
|
||||||
onVolumeChanged: _flashPanel()
|
onVolumeChanged: _flashPanel()
|
||||||
onMutedChanged: _flashPanel()
|
onMutedChanged: _flashPanel()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue