Compare commits
No commits in common. "cd0f8fa8736dceb7582466cbeacfc2637acb4b55" and "2f575bc54182aa4b87def6149c49d0f39a1fda69" have entirely different histories.
cd0f8fa873
...
2f575bc541
4 changed files with 1 additions and 81 deletions
|
|
@ -1,58 +0,0 @@
|
||||||
import qs.config
|
|
||||||
import QtQuick
|
|
||||||
import QtQuick.Controls
|
|
||||||
|
|
||||||
ProgressBar {
|
|
||||||
id: control
|
|
||||||
value: 0.5
|
|
||||||
padding: 2
|
|
||||||
|
|
||||||
HoverHandler {
|
|
||||||
enabled: !control.indeterminate
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
}
|
|
||||||
|
|
||||||
background: Rectangle {
|
|
||||||
implicitWidth: 200
|
|
||||||
implicitHeight: 6
|
|
||||||
color: Theme.palette.base100
|
|
||||||
radius: 8
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: Item {
|
|
||||||
implicitWidth: 200
|
|
||||||
implicitHeight: 4
|
|
||||||
|
|
||||||
// Progress indicator for determinate state.
|
|
||||||
Rectangle {
|
|
||||||
width: control.visualPosition * parent.width
|
|
||||||
height: parent.height
|
|
||||||
radius: 8
|
|
||||||
color: Theme.palette.primary
|
|
||||||
visible: !control.indeterminate
|
|
||||||
}
|
|
||||||
|
|
||||||
// Scrolling animation for indeterminate state.
|
|
||||||
Item {
|
|
||||||
anchors.fill: parent
|
|
||||||
visible: control.indeterminate
|
|
||||||
clip: true
|
|
||||||
|
|
||||||
Row {
|
|
||||||
Rectangle {
|
|
||||||
id: rect
|
|
||||||
color: Theme.palette.primary
|
|
||||||
width: 40
|
|
||||||
height: control.height
|
|
||||||
}
|
|
||||||
XAnimator on x {
|
|
||||||
from: control.width + rect.width
|
|
||||||
to: -rect.width
|
|
||||||
duration: 1000
|
|
||||||
loops: Animation.Infinite
|
|
||||||
running: control.indeterminate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +1,7 @@
|
||||||
import qs.config
|
import qs.config
|
||||||
import QtQuick
|
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
|
|
||||||
WrapperRectangle {
|
WrapperRectangle {
|
||||||
radius: 8
|
|
||||||
color: Theme.palette.base300
|
color: Theme.palette.base300
|
||||||
Behavior on color {
|
radius: 8
|
||||||
ColorAnimation {
|
|
||||||
duration: 200
|
|
||||||
easing.type: Easing.InOutQuad
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,21 +96,6 @@ StyledWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
StyledText {
|
|
||||||
text: "Progress Bar"
|
|
||||||
font.pixelSize: 18
|
|
||||||
}
|
|
||||||
StyledProgressBar {
|
|
||||||
id: progressBar
|
|
||||||
indeterminate: true
|
|
||||||
implicitHeight: 10
|
|
||||||
from: 0
|
|
||||||
to: 100
|
|
||||||
value: 50
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
StyledText {
|
StyledText {
|
||||||
text: "Mpris Player Selector"
|
text: "Mpris Player Selector"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue