Compare commits
2 commits
43c2541ccd
...
e96ccf7f63
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e96ccf7f63 | ||
|
|
784ded0a32 |
2 changed files with 14 additions and 4 deletions
|
|
@ -36,6 +36,16 @@ Item {
|
||||||
shadowHorizontalOffset: 0
|
shadowHorizontalOffset: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Background gradient — accent color fading down, connects to bar's top gradient
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
radius: M.Theme.radius
|
||||||
|
gradient: Gradient {
|
||||||
|
GradientStop { position: 0; color: Qt.rgba(root.borderColor.r, root.borderColor.g, root.borderColor.b, 0.15) }
|
||||||
|
GradientStop { position: 1; color: "transparent" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Visible border (on top of the glow)
|
// Visible border (on top of the glow)
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,10 @@ M.BarSection {
|
||||||
onRead: line => {
|
onRead: line => {
|
||||||
try {
|
try {
|
||||||
const d = JSON.parse(line);
|
const d = JSON.parse(line);
|
||||||
const cls = d.class ?? "";
|
const alt = d.alt ?? "";
|
||||||
root.count = d.count ?? 0;
|
root.count = parseInt(d.text) || 0;
|
||||||
root.dnd = cls.includes("dnd");
|
root.dnd = alt.startsWith("dnd");
|
||||||
root.inhibited = cls.includes("inhibited");
|
root.inhibited = alt.includes("inhibited");
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue