From 589ead0d6474b2115cde6a2716f3db1719e017c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Mon, 21 Nov 2022 14:57:52 +0100 Subject: [PATCH] [ui] Use a third icon for the file watcher's "enabled" status Each file watcher's status now has its own icon: - Enabled: "published_with_changes" - Disabled: "sync_disabled" - Minimal: "sync" --- meshroom/ui/qml/main.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index c0ca66a0..e7e8e355 100644 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -954,7 +954,14 @@ ApplicationWindow { } MaterialToolButton { id: filePollerRefreshStatus - text: (_reconstruction.filePollerRefresh === 0 || _reconstruction.filePollerRefresh === 2) ? MaterialIcons.sync : MaterialIcons.sync_disabled + text: { + if (_reconstruction.filePollerRefresh === 0) + return MaterialIcons.published_with_changes + else if (_reconstruction.filePollerRefresh === 2) + return MaterialIcons.sync + else + return MaterialIcons.sync_disabled + } font.pointSize: 11 padding: 2 enabled: true @@ -989,7 +996,7 @@ ApplicationWindow { } // Prevents cases where the user unchecks the currently checked option enableAutoRefresh.checked = true - filePollerRefreshStatus.text = MaterialIcons.sync + filePollerRefreshStatus.text = MaterialIcons.published_with_changes } } MenuItem {