mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
UI tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user