mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 11:57:58 +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.
|
||||
// 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.
|
||||
|
|
|
@ -6,20 +6,19 @@ import QtQuick.Layouts 1.3
|
|||
Item {
|
||||
id: root;
|
||||
property string settingText: "";
|
||||
property var settingValue: 0;
|
||||
property int settingValue: 0;
|
||||
|
||||
property real minValue: 0;
|
||||
property real maxValue: 9;
|
||||
property string suffixText: "";
|
||||
property real stepSize: 1;
|
||||
property color buttonColor: "#333";
|
||||
|
||||
signal valueChanged(int value);
|
||||
|
||||
height: 50;
|
||||
width: parent.width;
|
||||
|
||||
|
||||
|
||||
Rectangle {
|
||||
id: backgroundElement;
|
||||
width: parent.width;
|
||||
|
@ -71,9 +70,8 @@ Item {
|
|||
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||
|
||||
background: Rectangle {
|
||||
color: "transparent";
|
||||
border.width: 1;
|
||||
border.color: "white";
|
||||
color: "#111";
|
||||
border.width: 0;
|
||||
radius: 10;
|
||||
}
|
||||
|
||||
|
@ -97,9 +95,8 @@ Item {
|
|||
anchors.verticalCenter: parent.verticalCenter;
|
||||
|
||||
background: Rectangle {
|
||||
color: "transparent";
|
||||
border.color: "white";
|
||||
border.width: 1;
|
||||
color: buttonColor;
|
||||
border.width: 0;
|
||||
radius: 10;
|
||||
}
|
||||
|
||||
|
@ -124,9 +121,8 @@ Item {
|
|||
anchors.verticalCenter: parent.verticalCenter;
|
||||
|
||||
background: Rectangle {
|
||||
color: "transparent";
|
||||
border.color: "white";
|
||||
border.width: 1;
|
||||
color: buttonColor;
|
||||
border.width: 0;
|
||||
radius: 10;
|
||||
}
|
||||
|
||||
|
@ -148,7 +144,6 @@ Item {
|
|||
color: "transparent";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -173,10 +168,12 @@ Item {
|
|||
|
||||
onEntered: {
|
||||
backgroundElement.color = "#333";
|
||||
buttonColor = "#444";
|
||||
}
|
||||
|
||||
onExited: {
|
||||
backgroundElement.color = "transparent";
|
||||
buttonColor = "#333";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue