Adjusted SettingNumber colors.

This commit is contained in:
armored-dragon 2025-04-20 06:45:13 -05:00
parent baee2d277b
commit 1de5cca70f
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B
2 changed files with 10 additions and 15 deletions

View file

@ -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.

View file

@ -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";
}
}