From e17a2d6d092e97b82b5f7dc2eb9169f655c42424 Mon Sep 17 00:00:00 2001 From: "DIASPORA\\chris" Date: Mon, 22 Dec 2025 00:14:42 +0100 Subject: [PATCH] Fiddling with colors. --- bcmainwindow.cpp | 3 ++ bcmainwindow.ui | 99 ++++++++++++++++++++++++++++++++++---- resources/bionxcontrol.qss | 14 +++++- 3 files changed, 104 insertions(+), 12 deletions(-) diff --git a/bcmainwindow.cpp b/bcmainwindow.cpp index ca80bf3..53b8dfc 100644 --- a/bcmainwindow.cpp +++ b/bcmainwindow.cpp @@ -37,6 +37,9 @@ BCMainWindow::BCMainWindow(QWidget *parent) : QMainWindow(parent) { setupUi(this); + + _motorlButton->setDefaultAction( _actionMotor); + _valueManager.loadBikeData(); auto model = _valueManager.getModel( BCDevice::ID::Console ); if( model) diff --git a/bcmainwindow.ui b/bcmainwindow.ui index 5ce326d..b05f712 100644 --- a/bcmainwindow.ui +++ b/bcmainwindow.ui @@ -56,6 +56,41 @@ true + + + + 70 + 240 + 71 + 71 + + + + ... + + + + 64 + 64 + + + + true + + + + + + 50 + 320 + 22 + 22 + + + + ... + + @@ -72,17 +107,46 @@ - - - - 0 - 0 - 800 - 22 - - - + + + + 200 + 0 + + + + + 200 + 0 + + + + toolBar + + + false + + + + 64 + 64 + + + + true + + + LeftToolBarArea + + + false + + + + + + @@ -143,6 +207,21 @@ Exit + + + + :/connected.png:/connected.png + + + connect + + + connect to bike + + + QAction::MenuRole::TextHeuristicRole + + diff --git a/resources/bionxcontrol.qss b/resources/bionxcontrol.qss index 278e89d..463bf7c 100644 --- a/resources/bionxcontrol.qss +++ b/resources/bionxcontrol.qss @@ -7,6 +7,16 @@ QWidget font-family: Segoe UI, sans-serif; } +QMainWindow +{ + background-color: #272727; +} + +QSplitter +{ +color: red; + background-color: #272727; +} /* Spezifisches Styling für Buttons */ QPushButton { @@ -35,8 +45,8 @@ QPushButton:pressed QListView { - background-color: #f5f5f5; - border: none; + background-color: #404142; + border-radius: 8px; outline: none; show-decoration-selected: 0; }