Fiddling with colors.

This commit is contained in:
2025-12-22 00:14:42 +01:00
parent 42525014f2
commit e17a2d6d09
3 changed files with 104 additions and 12 deletions

View File

@@ -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)

View File

@@ -56,6 +56,41 @@
<bool>true</bool>
</property>
</widget>
<widget class="QToolButton" name="_motorlButton">
<property name="geometry">
<rect>
<x>70</x>
<y>240</y>
<width>71</width>
<height>71</height>
</rect>
</property>
<property name="text">
<string>...</string>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
<widget class="QToolButton" name="toolButton_2">
<property name="geometry">
<rect>
<x>50</x>
<y>320</y>
<width>22</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</widget>
<widget class="QListView" name="_valueView">
<property name="frameShape">
@@ -72,17 +107,46 @@
</item>
</layout>
</widget>
<widget class="QMenuBar" name="_menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>22</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="_statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="baseSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="windowTitle">
<string>toolBar</string>
</property>
<property name="movable">
<bool>false</bool>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="floatable">
<bool>true</bool>
</property>
<attribute name="toolBarArea">
<enum>LeftToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="_actionMotor"/>
<addaction name="_actionBattery"/>
<addaction name="_actionConsole"/>
<addaction name="_actionConnect"/>
</widget>
<action name="_actionPimp">
<property name="icon">
<iconset>
@@ -143,6 +207,21 @@
<string>Exit</string>
</property>
</action>
<action name="_actionConnect">
<property name="icon">
<iconset resource="bionxcontrol.qrc">
<normaloff>:/connected.png</normaloff>:/connected.png</iconset>
</property>
<property name="text">
<string>connect</string>
</property>
<property name="toolTip">
<string>connect to bike</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::TextHeuristicRole</enum>
</property>
</action>
</widget>
<resources>
<include location="bionxcontrol.qrc"/>

View File

@@ -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;
}