Skip to content

Commit 88227fb

Browse files
[ui] Expose warning color in Colors.qml
1 parent eb4d082 commit 88227fb

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
@@ -283,7 +283,7 @@ Item {
283283
border.color: {
284284

285285
if(hasWarnings === true) {
286-
return "orange"
286+
return Colors.warning
287287
}
288288

289289
if(root.mainSelected)
@@ -408,7 +408,7 @@ Item {
408408
MaterialLabel {
409409
visible: hasWarnings
410410
text: MaterialIcons.fmd_bad
411-
color: "orange"
411+
color: Colors.warning
412412
padding: 2
413413
font.pointSize: 7
414414
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)