}
}
}
+
+ CustomButton {
+ height: Style.standardPrimaryButtonHeight
+
+ imageSource: "image://svgimage-custom-color/close.svg/" + Style.errorBoxBackgroundColor
+ imageSourceHover: "image://svgimage-custom-color/close.svg/" + Style.ncHeaderTextColor
+ text: qsTr("Unshare")
+ textColor: Style.errorBoxBackgroundColor
+ textColorHovered: "white"
+ contentsFont.bold: true
+ bgNormalColor: Style.buttonBackgroundColor
+ bgHoverColor: Style.errorBoxBackgroundColor
+ bgNormalOpacity: 1.0
+ bgHoverOpacity: 1.0
+
+ onClicked: root.deleteShare()
+ }
}
}
RowLayout {
Layout.fillWidth: true
- CustomButton {
- Layout.fillWidth: true
- implicitWidth: parent.width / 2
- height: Style.standardPrimaryButtonHeight
-
- imageSource: "image://svgimage-custom-color/close.svg/" + Style.ncHeaderTextColor
- text: qsTr("Unshare")
- textColor: Style.ncHeaderTextColor
- contentsFont.bold: true
- bgColor: Style.errorBoxBackgroundColor
- bgNormalOpacity: 1.0
- bgHoverOpacity: Style.hoverOpacity
- onClicked: root.deleteShare()
- }
CustomButton {
Layout.fillWidth: true
property alias contentsFont: contents.font
property alias bgColor: bgRectangle.color
+ property alias bgNormalColor: bgRectangle.normalColor
+ property alias bgHoverColor: bgRectangle.hoverColor
property alias bgNormalOpacity: bgRectangle.normalOpacity
property alias bgHoverOpacity: bgRectangle.hoverOpacity
import QtQuick 2.15
+import Style 1.0
+
Rectangle {
property bool hovered: false
property real normalOpacity: 0.3
property real hoverOpacity: 1.0
+ property color normalColor: Style.buttonBackgroundColor
+ property color hoverColor: Style.buttonBackgroundColor
- color: "transparent"
+ color: hovered ? hoverColor : normalColor
opacity: hovered ? hoverOpacity : normalOpacity
radius: width / 2
}