added two new themes, reworked Crypto.qml and Stats.qml, standardized the buttons for the modules, added a new Sidebar widget which contains new 3 modules

This commit is contained in:
SomeElse
2026-05-28 08:24:03 +00:00
parent b9708ddfd0
commit 1b9ee3bbb3
39 changed files with 3652 additions and 267 deletions

View File

@@ -165,7 +165,7 @@ ModuleChip {
Rectangle {
id: volCard
width: parent.width
height: popupCol.implicitHeight + 32
height: popupCol.implicitHeight + 30
anchors.top: root.isTop ? parent.top : undefined
anchors.bottom: root.isTop ? undefined : parent.bottom
@@ -196,8 +196,8 @@ ModuleChip {
id: popupCol
anchors { left: parent.left; right: parent.right; top: parent.top }
anchors.margins: 16
anchors.topMargin: 18
spacing: 14
anchors.topMargin: 16
spacing: 16
VolumeSection {
id: outputSection
@@ -251,7 +251,7 @@ ModuleChip {
Text {
text: "Volume Limits"
color: root.t.textDim
font.pixelSize: 10
font.pixelSize: 11
font.bold: true
font.capitalization: Font.AllUppercase
Layout.fillWidth: true
@@ -292,14 +292,14 @@ ModuleChip {
onIncrement: root.inputMaxVolume = Math.min(300, root.inputMaxVolume + 10)
}
}
Item { height: 2 }
Item { height: 0 }
}
}
}
component VolumeSection: ColumnLayout {
id: vs
spacing: 8
spacing: 11
required property string label
required property string icon
required property color iconColor
@@ -336,7 +336,7 @@ ModuleChip {
Text {
text: vs.label
color: vs.textColor
font.pixelSize: 13
font.pixelSize: 14
font.bold: true
Layout.fillWidth: true
renderType: Text.NativeRendering
@@ -344,7 +344,7 @@ ModuleChip {
Text {
text: vs.muted ? "muted" : vs.volume + "%"
color: vs.muted ? vs.dimColor : vs.textColor
font.pixelSize: 12
font.pixelSize: 13
font.bold: !vs.muted
horizontalAlignment: Text.AlignHCenter
Layout.preferredWidth: 44
@@ -352,7 +352,7 @@ ModuleChip {
}
Rectangle {
width: 22; height: 22; radius: 6
width: 24; height: 24; radius: 8
color: muteHover.hovered ? (vs.muted ? "#33ffffff" : "#22ffffff") : (vs.muted ? root.t.volMuteBg : "transparent")
border.color: vs.muted ? vs.accentColor : vs.dimColor
border.width: Cfg.Config.popupBorderWidth
@@ -372,15 +372,16 @@ ModuleChip {
Item {
id: sliderItem
Layout.fillWidth: true
height: 22
height: 28
Rectangle {
anchors.verticalCenter: parent.verticalCenter
width: parent.width; height: Cfg.Config.volumeSliderHeight; radius: 2
width: parent.width; height: 6; radius: 3
color: vs.trackColor
Rectangle {
width: Math.min(parent.width, parent.width * (vs.volume / Math.max(1, vs.maxVolume)))
height: parent.height; radius: parent.radius
color: vs.muted ? vs.dimColor : vs.accentColor
Behavior on width { NumberAnimation { duration: 60; easing.type: Easing.OutCubic } }
}
}
@@ -427,7 +428,7 @@ ModuleChip {
}
Rectangle {
width: 20; height: 20; radius: 5
width: 24; height: 24; radius: 8
color: chevHover.hovered ? "#22ffffff" : "transparent"
border.color: vs.pickerOpen ? vs.accentColor : root.t.volPopupBorder
border.width: Cfg.Config.popupBorderWidth
@@ -502,7 +503,7 @@ ModuleChip {
component LimitRow: RowLayout {
id: lr
spacing: 8
spacing: 10
required property string icon
required property color iconColor
required property string labelText
@@ -519,7 +520,7 @@ ModuleChip {
signal decrement()
signal increment()
Text { text: lr.icon; color: lr.iconColor; font.pixelSize: 13; font.bold: true; renderType: Text.NativeRendering }
Text { text: lr.icon; color: lr.iconColor; font.pixelSize: 16; font.bold: true; renderType: Text.NativeRendering }
Text {
text: lr.labelText
color: lr.textColor
@@ -531,7 +532,7 @@ ModuleChip {
Rectangle {
id: decBtn
width: 22; height: 22; radius: 5
width: 24; height: 24; radius: 8
color: decMa.containsMouse
? (decMa.pressed ? lr.btnPress : lr.btnHover)
: lr.btnIdle
@@ -568,7 +569,7 @@ ModuleChip {
Rectangle {
id: incBtn
width: 22; height: 22; radius: 5
width: 24; height: 24; radius: 8
color: incMa.containsMouse
? (incMa.pressed ? lr.btnPress : lr.btnHover)
: lr.btnIdle