removed slop comments and SysInfoRow doesnt uses hardcoded values

This commit is contained in:
SomeElse
2026-05-28 08:30:00 +00:00
parent 1b9ee3bbb3
commit 7606b96a09
2 changed files with 8 additions and 14 deletions

View File

@@ -81,7 +81,6 @@ PanelWindow {
onClicked: root.close() onClicked: root.close()
} }
// ── Full right-side background panel ──────────────────────────────────
Rectangle { Rectangle {
id: sidebarPanel id: sidebarPanel
transform: Translate { id: panelSlide; x: root.slideFrom } transform: Translate { id: panelSlide; x: root.slideFrom }
@@ -96,7 +95,6 @@ PanelWindow {
clip: true clip: true
// ── Widget area ───────────────────────────────────────────────────
Item { Item {
id: widgetArea id: widgetArea
anchors { anchors {
@@ -179,7 +177,6 @@ PanelWindow {
} }
} }
// ── Enter animation ───────────────────────────────────────────────────
ParallelAnimation { ParallelAnimation {
id: enterAnim id: enterAnim
NumberAnimation { NumberAnimation {
@@ -192,7 +189,6 @@ PanelWindow {
} }
} }
// ── Exit animation ────────────────────────────────────────────────────
ParallelAnimation { ParallelAnimation {
id: exitAnim id: exitAnim
onStopped: hideTimer.restart() onStopped: hideTimer.restart()

View File

@@ -1,22 +1,23 @@
import QtQuick import QtQuick
import QtQuick.Layouts import QtQuick.Layouts
import "../../../config" as Cfg
// ── SysInfoRow ────────────────────────────────────────────────────────────────
// Metric row with icon badge, label, right-aligned value, and an optional
// animated progress bar underneath.
Item { Item {
id: root id: root
readonly property var t: Cfg.Config.theme
property string icon: "" property string icon: ""
property string label: "" property string label: ""
property string value: "—" property string value: "—"
property color iconColor: "#ffffffff" property color iconColor: t.accent
property color dimColor: "#997a8996" property color dimColor: t.textDim
property color textColor: "#ffe8eef2" property color textColor: t.textMain
property bool showBar: false property bool showBar: false
property int barPct: 0 // 0-100 property int barPct: 0 // 0-100
property color barColor: iconColor property color barColor: iconColor
property color trackColor: "#15ffffff" property color trackColor: t.statsTrackColor
implicitHeight: col.implicitHeight implicitHeight: col.implicitHeight
implicitWidth: col.implicitWidth implicitWidth: col.implicitWidth
@@ -26,12 +27,10 @@ Item {
anchors { left: parent.left; right: parent.right } anchors { left: parent.left; right: parent.right }
spacing: 5 spacing: 5
// ── Label row ─────────────────────────────────────────────────────────
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
spacing: 10 spacing: 10
// Icon in a tinted pill badge
Rectangle { Rectangle {
width: 18; height: 18 width: 18; height: 18
radius: 4 radius: 4
@@ -63,7 +62,6 @@ Item {
} }
} }
// ── Progress bar (optional) ───────────────────────────────────────────
Rectangle { Rectangle {
visible: root.showBar visible: root.showBar
Layout.fillWidth: true Layout.fillWidth: true