diff --git a/sources/presentation/common/gui_style/gui_style_manager.cpp b/sources/presentation/common/gui_style/gui_style_manager.cpp index 1ac50942..77cd17e8 100644 --- a/sources/presentation/common/gui_style/gui_style_manager.cpp +++ b/sources/presentation/common/gui_style/gui_style_manager.cpp @@ -29,16 +29,15 @@ GuiStyleManager::~GuiStyleManager() void GuiStyleManager::setPaletteStyle(PaletteStyle paletteStyle) { + m_configurator->setPrimaryColor("#01c5a5"); + m_configurator->setOnPrimaryColor("#000000"); + switch (paletteStyle) { case Day: - m_configurator->setPrimaryColor("#00c98f"); - m_configurator->setOnPrimaryColor("#202020"); m_configurator->setBaseColor("#F5F5F5"); m_configurator->setOnBaseColor("#F5F5F5"); break; case Night: - m_configurator->setPrimaryColor("#02eec8"); - m_configurator->setOnPrimaryColor("#000000"); m_configurator->setBaseColor("#2d373e"); m_configurator->setOnBaseColor("#ffffff"); break; diff --git a/sources/presentation/qml/Dashboard/DashboardControls/CommandBox.qml b/sources/presentation/qml/Dashboard/DashboardControls/CommandBox.qml index e0198ef8..c724adae 100644 --- a/sources/presentation/qml/Dashboard/DashboardControls/CommandBox.qml +++ b/sources/presentation/qml/Dashboard/DashboardControls/CommandBox.qml @@ -24,7 +24,8 @@ Controls.ComboBox { font.pixelSize: industrial.auxFontSize font.bold: true displayText: processingText - contentColor: status == Command.Idle ? industrial.colors.onSurface: industrial.colors.onSelection + contentColor: status == Command.Idle ? industrial.colors.onSurface: industrial.colors.onHighlight + labelColor: status == Command.Idle ? industrial.colors.onSurface: industrial.colors.onHighlight onActivated: presenter.executeCommand(model[index].command, []) onStatusChanged: if (status == Command.Completed || status == Command.Rejected) timer.start() diff --git a/sources/presentation/qml/Dashboard/DashboardControls/ModeBox.qml b/sources/presentation/qml/Dashboard/DashboardControls/ModeBox.qml index 407b3b42..e7b382ae 100644 --- a/sources/presentation/qml/Dashboard/DashboardControls/ModeBox.qml +++ b/sources/presentation/qml/Dashboard/DashboardControls/ModeBox.qml @@ -24,19 +24,13 @@ Controls.ComboBox { if (status != Command.Idle) return industrial.colors.surface; return industrial.colors.onSurface; } + labelColor: status == Command.Idle ? industrial.colors.onSurface : industrial.colors.onHighlight currentIndex: { for (var i = 0; i < model.length; ++i) { if (mode == model[i]) return i; // works only with == } return -1; } - labelColor: { - if (status == Command.Idle) { - return control.activeFocus ? industrial.colors.highlight : - industrial.colors.onBackground - } - return industrial.colors.onSelection; - } backgroundColor: { switch (status) { case Command.Rejected: return Indicators.Theme.dangerColor; diff --git a/sources/presentation/qml/Dashboard/DashboardControls/WaypointBox.qml b/sources/presentation/qml/Dashboard/DashboardControls/WaypointBox.qml index d242c29d..3971de43 100644 --- a/sources/presentation/qml/Dashboard/DashboardControls/WaypointBox.qml +++ b/sources/presentation/qml/Dashboard/DashboardControls/WaypointBox.qml @@ -15,7 +15,8 @@ Controls.ComboBox { labelText: qsTr("Waypoint") font.pixelSize: industrial.auxFontSize font.bold: true - contentColor: status == Command.Idle ? industrial.colors.onSurface: industrial.colors.onSelection + contentColor: status == Command.Idle ? industrial.colors.onSurface: industrial.colors.selection + labelColor: status == Command.Idle ? industrial.colors.onSurface: industrial.colors.onHighlight backgroundColor: { if (status == Command.Rejected) return Indicators.Theme.dangerColor; if (status == Command.Sending) return Indicators.Theme.cautionColor; diff --git a/sources/presentation/qml/Drawer/Logs/LogView.qml b/sources/presentation/qml/Drawer/Logs/LogView.qml index c30f5b5e..77d1c899 100644 --- a/sources/presentation/qml/Drawer/Logs/LogView.qml +++ b/sources/presentation/qml/Drawer/Logs/LogView.qml @@ -34,7 +34,7 @@ RowLayout { switch (msg.urgency) { case Notification.Common: return industrial.colors.onSurface; case Notification.Positive: return industrial.colors.positive; - case Notification.Warning: return industrial.colors.caution; + case Notification.Warning: return industrial.colors.neutral; case Notification.Critical: return industrial.colors.negative; default: return industrial.colors.background; diff --git a/sources/presentation/qml/Map/LocationMapViews/Overlays/TargetPointOverlayView.qml b/sources/presentation/qml/Map/LocationMapViews/Overlays/TargetPointOverlayView.qml index 159069e5..5c6d6afc 100644 --- a/sources/presentation/qml/Map/LocationMapViews/Overlays/TargetPointOverlayView.qml +++ b/sources/presentation/qml/Map/LocationMapViews/Overlays/TargetPointOverlayView.qml @@ -43,25 +43,25 @@ MapItemView { presenter.navTo(vehicleId, coordinate.latitude, coordinate.longitude, targetPosition.altitude - homePosition.altitude); } - onHolded: popup.open() +// onHolded: popup.open() - Controls.Popup { - id: popup - y: pointView.height - closePolicy: Controls.Popup.CloseOnEscape | Controls.Popup.CloseOnPressOutsideParent +// Controls.Popup { +// id: popup +// y: pointView.height +// closePolicy: Controls.Popup.CloseOnEscape | Controls.Popup.CloseOnPressOutsideParent - SetPoint { - title: qsTr("Nav to") + " " + vehicleName - onVisibleChanged: { - if (!visible) return; +// SetPoint { +// title: qsTr("Nav to") + " " + vehicleName +// onVisibleChanged: { +// if (!visible) return; - latitude = targetPosition.latitude; - longitude = targetPosition.longitude; - altitude = targetPosition.altitude - homePosition.altitude; - } - onSetPoint: presenter.navTo(vehicleId, latitude, longitude, altitude); - } - } +// latitude = targetPosition.latitude; +// longitude = targetPosition.longitude; +// altitude = targetPosition.altitude - homePosition.altitude; +// } +// onSetPoint: presenter.navTo(vehicleId, latitude, longitude, altitude); +// } +// } } } } diff --git a/sources/presentation/qml/Topbar/Notification/NotificationButton.qml b/sources/presentation/qml/Topbar/Notification/NotificationButton.qml index ff09514d..80390243 100644 --- a/sources/presentation/qml/Topbar/Notification/NotificationButton.qml +++ b/sources/presentation/qml/Topbar/Notification/NotificationButton.qml @@ -37,7 +37,7 @@ TopbarButton { case Notification.Positive: return industrial.colors.positive; case Notification.Warning: - return industrial.colors.caution; + return industrial.colors.neutral; case Notification.Critical: return industrial.colors.negative; case Notification.Common: diff --git a/sources/presentation/qml/Topbar/Notification/NotificationView.qml b/sources/presentation/qml/Topbar/Notification/NotificationView.qml index a4322c97..738d6760 100644 --- a/sources/presentation/qml/Topbar/Notification/NotificationView.qml +++ b/sources/presentation/qml/Topbar/Notification/NotificationView.qml @@ -37,7 +37,7 @@ Controls.Frame { case Notification.Positive: return industrial.colors.positive; case Notification.Warning: - return industrial.colors.caution; + return industrial.colors.neutral; case Notification.Critical: return industrial.colors.negative; case Notification.Common: