mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-19 08:25:21 +01:00
more updates
This commit is contained in:
parent
73962713b0
commit
a686115ca8
3 changed files with 91 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue