mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
VolumeOSD: Increase animation duration and bugfix for audio applet page
This commit is contained in:
parent
07836309c2
commit
f9630ba178
3 changed files with 17 additions and 13 deletions
|
|
@ -21,16 +21,21 @@ import org.kde.plasma.private.volume 0.1
|
||||||
import "icon.js" as Icon
|
import "icon.js" as Icon
|
||||||
|
|
||||||
// adapted from https://invent.kde.org/plasma/plasma-pa/-/blob/master/applet/contents/ui/ListItemBase.qml
|
// adapted from https://invent.kde.org/plasma/plasma-pa/-/blob/master/applet/contents/ui/ListItemBase.qml
|
||||||
Controls.ItemDelegate {
|
Controls.Control {
|
||||||
id: baseItem
|
id: baseItem
|
||||||
|
|
||||||
property string label
|
property string label
|
||||||
property alias listIcon: clientIcon.source
|
property alias listIcon: clientIcon.source
|
||||||
property string type // sink, source, source-output
|
property string type // sink, source, source-output
|
||||||
|
|
||||||
onClicked: {
|
MouseArea {
|
||||||
if (selectButton.visible) {
|
id: clickArea
|
||||||
model.PulseObject.default = true;
|
anchors.fill: parent
|
||||||
|
z: -1
|
||||||
|
onClicked: {
|
||||||
|
if (selectButton.visible) {
|
||||||
|
model.PulseObject.default = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -119,7 +124,6 @@ Controls.ItemDelegate {
|
||||||
return sourceView.model;
|
return sourceView.model;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onVisibleChanged: window.suppressActiveClose = visible
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,10 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
function open() {
|
function open() {
|
||||||
|
window.visible = true;
|
||||||
cards.state = "open";
|
cards.state = "open";
|
||||||
// set window input transparency to accept touches
|
// set window input transparency to accept touches
|
||||||
ShellUtil.setInputTransparent(window, false);
|
ShellUtil.setInputTransparent(window, false);
|
||||||
window.visible = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
|
@ -116,10 +116,10 @@ Window {
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
properties: "offset"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration
|
properties: "offset"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration * 1.25
|
||||||
}
|
}
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
properties: "scale"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration
|
properties: "scale"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration * 1.25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ScriptAction {
|
ScriptAction {
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,10 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
function open() {
|
function open() {
|
||||||
|
window.visible = true;
|
||||||
flickable.state = "open";
|
flickable.state = "open";
|
||||||
// set window input transparency to accept touches
|
// set window input transparency to accept touches
|
||||||
ShellUtil.setInputTransparent(window, false);
|
ShellUtil.setInputTransparent(window, false);
|
||||||
window.visible = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
|
@ -115,16 +115,16 @@ Window {
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
properties: "offset"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration
|
properties: "offset"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration * 1.25
|
||||||
}
|
}
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
properties: "scale"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration
|
properties: "scale"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration * 1.25
|
||||||
}
|
}
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
properties: "opacity"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration
|
properties: "opacity"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration * 1.25
|
||||||
}
|
}
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
properties: "color"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration
|
properties: "color"; easing.type: Easing.OutExpo; duration: Kirigami.Units.veryLongDuration * 1.25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ScriptAction {
|
ScriptAction {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue