Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/RemorseItem.qml b/RemorseItem.qml
- index 931bf89..0a38035 100644
- --- a/RemorseItem.qml
- +++ b/RemorseItem.qml
- @@ -246,6 +246,34 @@ BackgroundItem {
- }
- }
- + BackgroundItem {
- + anchors {
- + right: parent.right
- + bottom: parent.bottom
- + }
- + property bool wideRemorse: parent.width >= (2 * parent.height)
- +
- + height: wideRemorse ? parent.height : (promptIcon.height + Theme.paddingMedium)
- + width: promptIcon.width + (Theme.paddingMedium * (wideRemorse ? 2 : 1))
- + Image {
- + id: promptIcon
- + anchors {
- + right: parent.right
- + rightMargin: Theme.paddingMedium
- + bottom: parent.bottom
- + bottomMargin: Theme.paddingSmall
- + }
- + source: "image://theme/icon-m-certificates" + (remorseItem.highlighted ? "?" + Theme.highlightColor : "")
- + smooth: true
- + fillMode: Image.PreserveAspectFit
- + opacity: remorseItem._contentOpacity
- + }
- + onClicked: {
- + remorseItem.state = "activePending"
- + _execute(true)
- + }
- + }
- +
- NumberAnimation {
- id: countdown
- target: remorseItem
- diff --git a/RemorsePopup.qml b/RemorsePopup.qml
- index b2b3069..a8cc90d 100644
- --- a/RemorsePopup.qml
- +++ b/RemorsePopup.qml
- @@ -202,26 +202,39 @@ BackgroundItem {
- }
- }
- }
- - Image {
- - id: promptIcon
- + BackgroundItem {
- anchors {
- - verticalCenter: parent.verticalCenter
- - verticalCenterOffset: row.height/2
- - left: row.left
- - leftMargin: Theme.paddingMedium
- + right: row.right
- + }
- + property bool wideRemorse: parent.width >= (2 * parent.height)
- +
- + height: wideRemorse ? parent.height : (promptIcon.height + Theme.paddingMedium)
- + width: promptIcon.width + (Theme.paddingLarge * (wideRemorse ? 2 : 1))
- + Image {
- + id: promptIcon
- + anchors {
- + verticalCenter: parent.verticalCenter
- + right: parent.right
- + rightMargin: Theme.paddingLarge
- + }
- + source: "image://theme/icon-m-certificates" + (remorsePopup.highlighted ? "?" + Theme.highlightColor : "")
- + smooth: true
- + fillMode: Image.PreserveAspectFit
- + opacity: remorsePopup._contentOpacity
- }
- - source: "image://theme/icon-m-clear" + (remorsePopup.highlighted ? "?" + Theme.highlightColor : "")
- - smooth: true
- - fillMode: Image.PreserveAspectFit
- - opacity: remorsePopup._contentOpacity
- + onClicked: {
- + _execute()
- + _close()
- + }
- }
- +
- Column {
- anchors {
- - verticalCenter: promptIcon.verticalCenter
- - left: promptIcon.right
- - leftMargin: Theme.paddingMedium
- - right: parent.right
- + verticalCenter: parent.verticalCenter
- + right: promptIcon.left
- + leftMargin: Theme.paddingLarge
- + left: parent.left
- }
- Label {
- truncationMode: TruncationMode.Fade
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement