mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 21:33:59 +02:00
brmbarv3: Grey out non-working buttons as disabled
This commit is contained in:
parent
6a71841112
commit
325033231b
3 changed files with 6 additions and 2 deletions
|
@ -6,18 +6,19 @@ Rectangle {
|
||||||
width: 240
|
width: 240
|
||||||
height: 83
|
height: 83
|
||||||
color: "#000000"
|
color: "#000000"
|
||||||
border.color: "#ffffff"
|
border.color: btnColor
|
||||||
|
|
||||||
property string text: "Button"
|
property string text: "Button"
|
||||||
property int fontSize: 44
|
property int fontSize: 44
|
||||||
|
property variant btnColor: "#ffffff"
|
||||||
|
|
||||||
signal buttonClick
|
signal buttonClick
|
||||||
onButtonClick: { /* Supplied by component user. */ }
|
onButtonClick: { /* Supplied by component user. */ }
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: text1
|
id: text1
|
||||||
color: "#ffffff"
|
|
||||||
text: parent.text
|
text: parent.text
|
||||||
|
color: parent.btnColor
|
||||||
font.pointSize: parent.fontSize
|
font.pointSize: parent.fontSize
|
||||||
scale: if (!mousearea1.pressed) { 1 } else { 0.95 }
|
scale: if (!mousearea1.pressed) { 1 } else { 0.95 }
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
|
@ -32,6 +32,7 @@ Item {
|
||||||
width: 360
|
width: 360
|
||||||
text: "Withdrawal"
|
text: "Withdrawal"
|
||||||
fontSize: 44
|
fontSize: 44
|
||||||
|
btnColor: "#666666"
|
||||||
}
|
}
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
|
@ -50,6 +51,7 @@ Item {
|
||||||
y: 582
|
y: 582
|
||||||
width: 360
|
width: 360
|
||||||
text: "Select Item"
|
text: "Select Item"
|
||||||
|
btnColor: "#666666"
|
||||||
}
|
}
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
|
|
|
@ -88,6 +88,7 @@ Item {
|
||||||
width: 360
|
width: 360
|
||||||
text: "Add User"
|
text: "Add User"
|
||||||
fontSize: 44
|
fontSize: 44
|
||||||
|
btnColor: "#666666"
|
||||||
}
|
}
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue