Skip to content
Permalink
Browse files

[QgsQuick] Styling of tab buttons in feature form

Added properties for color background setting
  • Loading branch information
vsklencar authored and wonder-sk committed Apr 16, 2019
1 parent 1055a8a commit 6f20b5c3cd65b92fadf14dc24f65d722eeb8604b
@@ -215,6 +215,11 @@ Item {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}

background: Rectangle {
color: !tabButton.enabled ? form.style.tabs.disabledBackgroundColor : tabButton.down ||
tabButton.checked ? form.style.tabs.activeBackgroundColor : form.style.tabs.normalBackgroundColor
}
}
}
}
@@ -37,7 +37,10 @@ QtObject {
property QtObject tabs: QtObject {
property color normalColor: "#4CAF50"
property color activeColor: "#1B5E20"
property color disabledColor: "#999999"
property color disabledColor: "#FFFFFF"
property color normalBackgroundColor: "#FFFFFF"
property color activeBackgroundColor: "#4CAF50"
property color disabledBackgroundColor: "#999999"
property real height: 48 * QgsQuick.Utils.dp
}

0 comments on commit 6f20b5c

Please sign in to comment.
You can’t perform that action at this time.