Fiddling with colors.
This commit is contained in:
@@ -37,6 +37,9 @@ BCMainWindow::BCMainWindow(QWidget *parent)
|
|||||||
: QMainWindow(parent)
|
: QMainWindow(parent)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
|
_motorlButton->setDefaultAction( _actionMotor);
|
||||||
|
|
||||||
_valueManager.loadBikeData();
|
_valueManager.loadBikeData();
|
||||||
auto model = _valueManager.getModel( BCDevice::ID::Console );
|
auto model = _valueManager.getModel( BCDevice::ID::Console );
|
||||||
if( model)
|
if( model)
|
||||||
|
|||||||
@@ -56,6 +56,41 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</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>
|
||||||
<widget class="QListView" name="_valueView">
|
<widget class="QListView" name="_valueView">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
@@ -72,17 +107,46 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</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="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">
|
<action name="_actionPimp">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
@@ -143,6 +207,21 @@
|
|||||||
<string>Exit</string>
|
<string>Exit</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</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>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="bionxcontrol.qrc"/>
|
<include location="bionxcontrol.qrc"/>
|
||||||
|
|||||||
@@ -7,6 +7,16 @@ QWidget
|
|||||||
font-family: Segoe UI, sans-serif;
|
font-family: Segoe UI, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMainWindow
|
||||||
|
{
|
||||||
|
background-color: #272727;
|
||||||
|
}
|
||||||
|
|
||||||
|
QSplitter
|
||||||
|
{
|
||||||
|
color: red;
|
||||||
|
background-color: #272727;
|
||||||
|
}
|
||||||
/* Spezifisches Styling für Buttons */
|
/* Spezifisches Styling für Buttons */
|
||||||
QPushButton
|
QPushButton
|
||||||
{
|
{
|
||||||
@@ -35,8 +45,8 @@ QPushButton:pressed
|
|||||||
|
|
||||||
QListView
|
QListView
|
||||||
{
|
{
|
||||||
background-color: #f5f5f5;
|
background-color: #404142;
|
||||||
border: none;
|
border-radius: 8px;
|
||||||
outline: none;
|
outline: none;
|
||||||
show-decoration-selected: 0;
|
show-decoration-selected: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user