mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:29:03 +02:00
Adjusted SettingNumber colors.
This commit is contained in:
parent
baee2d277b
commit
1de5cca70f
2 changed files with 10 additions and 15 deletions
|
@ -174,8 +174,6 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Updates the contents of a combobox.
|
// Updates the contents of a combobox.
|
||||||
// This is only required if the desired contents needs to be gathered from a javascript function and then set after the fact.
|
// This is only required if the desired contents needs to be gathered from a javascript function and then set after the fact.
|
||||||
// Ideally, this would not be used, but sometimes you gotta do what you gotta do.
|
// Ideally, this would not be used, but sometimes you gotta do what you gotta do.
|
||||||
|
|
|
@ -6,20 +6,19 @@ import QtQuick.Layouts 1.3
|
||||||
Item {
|
Item {
|
||||||
id: root;
|
id: root;
|
||||||
property string settingText: "";
|
property string settingText: "";
|
||||||
property var settingValue: 0;
|
property int settingValue: 0;
|
||||||
|
|
||||||
property real minValue: 0;
|
property real minValue: 0;
|
||||||
property real maxValue: 9;
|
property real maxValue: 9;
|
||||||
property string suffixText: "";
|
property string suffixText: "";
|
||||||
property real stepSize: 1;
|
property real stepSize: 1;
|
||||||
|
property color buttonColor: "#333";
|
||||||
|
|
||||||
signal valueChanged(int value);
|
signal valueChanged(int value);
|
||||||
|
|
||||||
height: 50;
|
height: 50;
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: backgroundElement;
|
id: backgroundElement;
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
|
@ -71,9 +70,8 @@ Item {
|
||||||
validator: RegExpValidator { regExp: /[0-9]*/ }
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: "transparent";
|
color: "#111";
|
||||||
border.width: 1;
|
border.width: 0;
|
||||||
border.color: "white";
|
|
||||||
radius: 10;
|
radius: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,9 +95,8 @@ Item {
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: "transparent";
|
color: buttonColor;
|
||||||
border.color: "white";
|
border.width: 0;
|
||||||
border.width: 1;
|
|
||||||
radius: 10;
|
radius: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,9 +121,8 @@ Item {
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: "transparent";
|
color: buttonColor;
|
||||||
border.color: "white";
|
border.width: 0;
|
||||||
border.width: 1;
|
|
||||||
radius: 10;
|
radius: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +144,6 @@ Item {
|
||||||
color: "transparent";
|
color: "transparent";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -173,10 +168,12 @@ Item {
|
||||||
|
|
||||||
onEntered: {
|
onEntered: {
|
||||||
backgroundElement.color = "#333";
|
backgroundElement.color = "#333";
|
||||||
|
buttonColor = "#444";
|
||||||
}
|
}
|
||||||
|
|
||||||
onExited: {
|
onExited: {
|
||||||
backgroundElement.color = "transparent";
|
backgroundElement.color = "transparent";
|
||||||
|
buttonColor = "#333";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue