Skip to content

Commit 7154a48

Browse files
[ui] Expose warning color in Colors.qml
1 parent 82ff3cd commit 7154a48

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

meshroom/ui/qml/Application.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Page {
427427
title: "Nodes Containing Warnings"
428428
text: "Some nodes contain warnings. Are you sure you want to submit?"
429429
helperText: "Submit even if some nodes have warnings"
430-
standardButtons: Dialog.Cancel | Dialog.Ok
430+
standardButtons: Dialog.Cancel | Dialog.Yes
431431

432432
property var nodes: []
433433

meshroom/ui/qml/GraphEditor/Node.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Item {
157157
border.color: {
158158

159159
if(hasWarnings === true) {
160-
return "orange"
160+
return Colors.warning
161161
}
162162

163163
if(root.mainSelected)
@@ -282,7 +282,7 @@ Item {
282282
MaterialLabel {
283283
visible: hasWarnings
284284
text: MaterialIcons.fmd_bad
285-
color: "orange"
285+
color: Colors.warning
286286
padding: 2
287287
font.pointSize: 7
288288
palette.text: Colors.sysPalette.text

meshroom/ui/qml/Utils/Colors.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ QtObject {
2020
readonly property color lime: "#CDDC39"
2121
readonly property color grey: "#555555"
2222
readonly property color lightgrey: "#999999"
23+
readonly property color warning: "#FF9800"
2324

2425
readonly property var statusColors: {
2526
"NONE": "transparent",

0 commit comments

Comments
 (0)