mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
more icon in the answer swipe
This commit is contained in:
parent
130b201b2b
commit
f776a0f1d3
3 changed files with 27 additions and 5 deletions
|
|
@ -43,6 +43,28 @@ MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: height
|
radius: height
|
||||||
color: Qt.rgba((handlePosition > root.width/2 ? 0.6 : 0)+0.2, (handlePosition < root.width/2 ? 0.6 : 0)+0.2, 0.2, Math.abs(handlePosition - (root.width/2)) / answerHandle.width/2);
|
color: Qt.rgba((handlePosition > root.width/2 ? 0.6 : 0)+0.2, (handlePosition < root.width/2 ? 0.6 : 0)+0.2, 0.2, Math.abs(handlePosition - (root.width/2)) / answerHandle.width/2);
|
||||||
|
|
||||||
|
PlasmaCore.IconItem {
|
||||||
|
source: "call-start"
|
||||||
|
width: icon.width
|
||||||
|
height: width
|
||||||
|
anchors {
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
left: parent.left
|
||||||
|
leftMargin: units.largeSpacing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PlasmaCore.IconItem {
|
||||||
|
source: "call-stop"
|
||||||
|
width: icon.width
|
||||||
|
height: width
|
||||||
|
anchors {
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
right: parent.right
|
||||||
|
leftMargin: units.largeSpacing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: answerHandle
|
id: answerHandle
|
||||||
x: parent.width/2 - width/2
|
x: parent.width/2 - width/2
|
||||||
|
|
@ -51,6 +73,7 @@ MouseArea {
|
||||||
radius: width
|
radius: width
|
||||||
color: Qt.rgba(0.2, 0.8, 0.2, 1)
|
color: Qt.rgba(0.2, 0.8, 0.2, 1)
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
|
id: icon
|
||||||
source: "call-start"
|
source: "call-start"
|
||||||
width: parent.width * 0.7
|
width: parent.width * 0.7
|
||||||
height: width
|
height: width
|
||||||
|
|
|
||||||
|
|
@ -113,19 +113,17 @@ Item {
|
||||||
source: "call-start"
|
source: "call-start"
|
||||||
callback: call
|
callback: call
|
||||||
}
|
}
|
||||||
DialerButton {
|
Item {
|
||||||
Layout.minimumWidth: dialPadArea.width/3
|
Layout.minimumWidth: dialPadArea.width/3
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
enabled: status.text.length > 0
|
|
||||||
opacity: enabled ? 1 : 0.5
|
|
||||||
text: i18n("Call")
|
|
||||||
callback: call
|
|
||||||
}
|
}
|
||||||
DialerIconButton {
|
DialerIconButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.minimumWidth: dialPadArea.width/3
|
Layout.minimumWidth: dialPadArea.width/3
|
||||||
|
enabled: status.text.length > 0
|
||||||
|
opacity: enabled ? 1 : 0.5
|
||||||
source: "edit-clear"
|
source: "edit-clear"
|
||||||
callback: function() {
|
callback: function() {
|
||||||
if (status.text.length > 0) {
|
if (status.text.length > 0) {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import QtQuick.Controls 1.3
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.nemomobile.voicecall 1.0
|
import org.nemomobile.voicecall 1.0
|
||||||
import MeeGo.QOfono 0.2
|
import MeeGo.QOfono 0.2
|
||||||
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue