more updates

This commit is contained in:
cmclark00 2024-08-13 01:50:28 -04:00
parent 73962713b0
commit a686115ca8
3 changed files with 91 additions and 46 deletions

View file

@ -18,6 +18,18 @@ Popup {
padding: 0
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
// Define the colors
property color beigeColor: "#c4bebb"
property color maroonColor: "#800000"
property color yellowColor: "#fcad01"
// Placeholder for detecting the selected CFW
property string selectedCFW: "" // This should be set dynamically
// Set the color scheme based on the selected CFW
property color backgroundColor: selectedCFW.toLowerCase().indexOf("muos") !== -1 ? yellowColor : beigeColor
property color accentColor: selectedCFW.toLowerCase().indexOf("muos") !== -1 ? yellowColor : maroonColor
property alias title: msgpopupheader.text
property alias text: msgpopupbody.text
property bool continueButton: true
@ -29,7 +41,7 @@ Popup {
// background of title
Rectangle {
color: "#f5f5f5"
color: accentColor
anchors.right: parent.right
anchors.top: parent.top
height: 35