Fixed style

This commit is contained in:
2026-01-20 23:02:00 +01:00
parent 4f44c588fa
commit 07c235afa2
6 changed files with 235 additions and 214 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2,5 +2,5 @@
<Configurations>
<Platform Name="x64" />
</Configurations>
<Project Path="BionxControl.vcxproj" />
<Project Path="BionxControl.vcxproj" Id="4294daef-a666-3d4c-a433-ace7fb2b0c2f" />
</Solution>

View File

@@ -11,7 +11,7 @@
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{84C4D2DA-BE54-3C31-BEF9-6BCCDD5C3277}</ProjectGuid>
<ProjectGuid>{4294DAEF-A666-3D4C-A433-ACE7FB2B0C2F}</ProjectGuid>
<RootNamespace>BionxControl</RootNamespace>
<Keyword>QtVS_v304</Keyword>
<WindowsTargetPlatformVersion>10.0.26100.0</WindowsTargetPlatformVersion>
@@ -40,11 +40,11 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="$(QtMsBuild)\qt_defaults.props" Condition="Exists('$(QtMsBuild)\qt_defaults.props')" />
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<QtInstall>msvc2022x64Qt6</QtInstall>
<QtInstall>6.10.1_msvc2022_64</QtInstall>
<QtModules>core;gui;widgets;svg</QtModules>
</PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<QtInstall>msvc2022x64Qt6</QtInstall>
<QtInstall>6.10.1_msvc2022_64</QtInstall>
<QtModules>core;gui;widgets;svg</QtModules>
</PropertyGroup>
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') OR !Exists('$(QtMsBuild)\Qt.props')">

12
BionxControl.vcxproj.user Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<QtTouchProperty>
</QtTouchProperty>
</PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<QtTouchProperty>
</QtTouchProperty>
</PropertyGroup>
</Project>

View File

@@ -193,11 +193,10 @@ void BCMainWindow::initStatusBar()
_statusBar->addPermanentWidget(themeBtn);
connect(themeBtn, &BCThemeSwitchButton::themeChanged, this, [this](bool isDark)
{
QString message = isDark ? "DarkMode aktiviert" : "LightMode aktiviert";
_statusBar->showMessage( message, 3000);
//setApplicationStyleSheet( isDark ? cDarkModeStyle : cLightModeStyle );
setApplicationStyleSheet( isDark ? " " : cLightModeStyle );
setApplicationStyleSheet( isDark ? cDarkModeStyle : cLightModeStyle );
});
// Wir starten im light mode
@@ -240,7 +239,7 @@ bool BCMainWindow::setApplicationStyleSheet( QAnyStringView path )
return false;
}
qWarning() << "Konnte Stylesheet nicht laden:" << styleFile.errorString();
qApp->setStyleSheet(" ");
//qApp->setStyleSheet(" ");
return true;
}

View File

@@ -114,14 +114,24 @@ QTableView
border-radius: 4px;
selection-background-color: #0078d4;
selection-color: #ffffff;
outline: 0;
}
QTableView::item
{
padding: 0px;
border: none;
outline: 0;
}
/*
QTableView::item:focus
{
outline: 0;
background-color: blue;
}
*/
QTableView::item:hover
{
background-color: rgba(255, 255, 255, 0.06);
@@ -129,11 +139,20 @@ QTableView::item:hover
QTableView::item:selected
{
background-color: green;
border: none;
}
/* === Corner Widget (zwischen Scrollbars) === */
QTableView QTableCornerButton::section
{
background-color: #323232;
border: none;
border-right: 1px solid #3d3d3d;
border-bottom: 1px solid #3d3d3d;
}
/* === QScrollBar Vertical === */
QScrollBar:vertical
{
@@ -209,12 +228,3 @@ QToolTip
padding: 6px 8px;
font-size: 13px;
}
/* === Corner Widget (zwischen Scrollbars) === */
QTableView QTableCornerButton::section
{
background-color: #323232;
border: none;
border-right: 1px solid #3d3d3d;
border-bottom: 1px solid #3d3d3d;
}