Updated gen key button style. Fixes #1749
This commit is contained in:
parent
8cf669c3da
commit
262856d69e
|
@ -189,6 +189,7 @@ Item {
|
||||||
anchors.topMargin: 26
|
anchors.topMargin: 26
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
|
type: "secondary"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
setCurrentFlow(false);
|
setCurrentFlow(false);
|
||||||
onGenKeyClicked()
|
onGenKeyClicked()
|
||||||
|
|
|
@ -10,9 +10,10 @@ Button {
|
||||||
property string size: "large"
|
property string size: "large"
|
||||||
property string state: "default"
|
property string state: "default"
|
||||||
property color color: type === "warn" ? Style.current.danger : Style.current.buttonForegroundColor
|
property color color: type === "warn" ? Style.current.danger : Style.current.buttonForegroundColor
|
||||||
property color bgColor: Style.current.buttonBackgroundColor
|
property color bgColor: type === "warn" ? Style.current.buttonWarnBackgroundColor : Style.current.buttonBackgroundColor
|
||||||
property color borderColor: color
|
property color borderColor: color
|
||||||
property color bgHoverColor: Qt.darker(control.bgColor, 1.1)
|
property color bgHoverColor: bgColor !== Style.current.transparent ? Qt.darker(control.bgColor, 1.1) :
|
||||||
|
type === "warn" ? Style.current.buttonWarnBackgroundColor : Style.current.buttonBackgroundColor
|
||||||
property bool disableColorOverlay: false
|
property bool disableColorOverlay: false
|
||||||
property bool showBorder: false
|
property bool showBorder: false
|
||||||
property int iconRotation: 0
|
property int iconRotation: 0
|
||||||
|
@ -105,12 +106,8 @@ Button {
|
||||||
if (type === "secondary") {
|
if (type === "secondary") {
|
||||||
return hovered ? control.bgColor : "transparent"
|
return hovered ? control.bgColor : "transparent"
|
||||||
}
|
}
|
||||||
return !enabled ? Style.current.buttonDisabledBackgroundColor :
|
return !enabled ? (control.bgColor === Style.current.transparent ? control.bgColor : Style.current.buttonDisabledBackgroundColor) :
|
||||||
hovered ?
|
(hovered ? control.bgHoverColor : control.bgColor)
|
||||||
type === "warn" ? Qt.darker(Style.current.buttonWarnBackgroundColor, 1.1) :
|
|
||||||
control.bgHoverColor :
|
|
||||||
type === "warn" ? Style.current.buttonWarnBackgroundColor :
|
|
||||||
control.bgColor
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue