UI tweaks

This commit is contained in:
Lasan Mahaliyana
2026-03-07 11:15:58 +05:30
parent 44d112df10
commit 4cf1f8b6ab
2 changed files with 1 additions and 28 deletions
@@ -74,7 +74,7 @@ Item {
ctx.closePath()
var grad = ctx.createRadialGradient(cx - 40, cy - 40, 0, cx, cy, 150)
grad.addColorStop(0, "#e8faf0")
grad.addColorStop(0, "#acdac4")
ctx.fillStyle = grad
ctx.fill()
}
@@ -34,34 +34,7 @@ Item {
Item { Layout.fillWidth: true }
Label {
text: fileShareController.running ? "● Running" : "○ Stopped"
color: fileShareController.running ? accent : textMuted
font.pixelSize: 13
font.weight: Font.Medium
}
Rectangle {
height: 40
width: startStopLabel.implicitWidth + 32
radius: 12
color: fileShareController.running ? "#fee2e2" : "#dcfce7"
border.color: fileShareController.running ? "#fca5a5" : "#86efac"
Label {
id: startStopLabel
anchors.centerIn: parent
text: fileShareController.running ? "Stop" : "Start"
color: fileShareController.running ? "#dc2626" : accent
font.weight: Font.Medium
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: fileShareController.running ? fileShareController.stop() : fileShareController.start()
}
}
Rectangle {
width: 40