From 9af16ad7272f4e1d068004fc4443db5d14f89b3c Mon Sep 17 00:00:00 2001 From: suchinton2001 Date: Fri, 20 Oct 2023 15:50:09 +0530 Subject: agl-demo-control-panel: Fix Svg icons scaling on Dashboard V1: - Use QtSvg to set icons for dashboard icons - Update Readme and install_package script for docker image V2: Clean up code and improve formatting V3: - Increase font size for UI files - Fix HVAC bug, Control panel no longer crashes when Temp goes out of range - Refactor blocking subscription updates when CP in use Bug-AGL: SPEC-4939 Signed-off-by: suchinton2001 Change-Id: I4f256d29fac614dd3e3c4193c2a08b230359906e --- ui/Dashboard.ui | 293 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 146 insertions(+), 147 deletions(-) (limited to 'ui/Dashboard.ui') diff --git a/ui/Dashboard.ui b/ui/Dashboard.ui index ef30cf6..f8c8938 100644 --- a/ui/Dashboard.ui +++ b/ui/Dashboard.ui @@ -16,25 +16,17 @@ *{ border: none; + border-radius: 8px; background-color: transparent; - background: none; + background: none; padding: 0; margin: 0; color: #fff; } - -#scrollAreaWidgetContents{ - background-color: #131313 ; /* black */ -} - -#centralwidget{ - background-color: #131313 ; /* black */ -} - -QPushButton{ +QPushButton { background-color: #6C6C85 ; /* pastel purple */ - border-radius: 10px; - margin: 5px; + padding: 50px 50px; + border-radius: 20px; } QPushButton:pressed { @@ -50,10 +42,7 @@ QPushButton:pressed { QFrame::Raised - - - 0 - + 0 @@ -66,139 +55,149 @@ QPushButton:pressed { 0 - - + + + + + 0 + 0 + + + + + 16 + 75 + true + true + + Qt::LeftToRight - - true - - - - - 0 - 0 - 703 - 451 - - - - - - - - 0 - 0 - - - - Qt::LeftToRight - - - HVAC - - - - :/Carbon_Icons/carbon_icons/windy--strong.svg:/Carbon_Icons/carbon_icons/windy--strong.svg - - - - 50 - 50 - - - - false - - - - - - - - 0 - 0 - - - - Qt::LeftToRight - - - Steering Controls - - - - :/Images/Images/steering-wheel.svg:/Images/Images/steering-wheel.svg - - - - 50 - 50 - - - - false - - - - - - - - 0 - 0 - - - - Qt::LeftToRight - - - Configure - - - - :/Carbon_Icons/carbon_icons/settings.svg:/Carbon_Icons/carbon_icons/settings.svg - - - - 50 - 50 - - - - false - - - - - - - - 0 - 0 - - - - Qt::LeftToRight - - - Instrument Cluster - - - - :/Carbon_Icons/carbon_icons/meter.svg:/Carbon_Icons/carbon_icons/meter.svg - - - - 50 - 50 - - - - - - + + Configure + + + + :/Carbon_Icons/carbon_icons/settings.svg:/Carbon_Icons/carbon_icons/settings.svg + + + + 45 + 45 + + + + false + + + + + + + + 0 + 0 + + + + + 16 + 75 + true + true + + + + Qt::LeftToRight + + + Instrument Cluster + + + + :/Carbon_Icons/carbon_icons/meter.svg:/Carbon_Icons/carbon_icons/meter.svg + + + + 45 + 45 + + + + + + + + + 0 + 0 + + + + + 16 + 75 + true + true + + + + Qt::LeftToRight + + + HVAC + + + + :/Carbon_Icons/carbon_icons/windy--strong.svg:/Carbon_Icons/carbon_icons/windy--strong.svg + + + + 45 + 45 + + + + false + + + + + + + + 0 + 0 + + + + + 16 + 75 + true + true + + + + Qt::LeftToRight + + + Steering Controls + + + + :/Images/Images/steering-wheel.svg:/Images/Images/steering-wheel.svg + + + + 45 + 45 + + + + false + -- cgit 1.2.3-korg