Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit be65eae

Browse files
committed
UI Tweaks
1 parent de303fa commit be65eae

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/duqf_resources/styles/style.css

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -718,25 +718,6 @@ QToolBar #menuButton:hover {
718718
background-color: @color-very-dark-grey;
719719
}
720720

721-
/* MAIN TOOLBAR */
722-
723-
#mainToolBar {
724-
background: @color-medium-grey;
725-
}
726-
727-
#mainToolBar QWidget {
728-
margin-right: @margin;
729-
}
730-
731-
#mainToolBar QLabel {
732-
color: @color-light-grey;
733-
}
734-
735-
#windowButton {
736-
width: @small-button-size;
737-
height: @small-button-size;
738-
}
739-
740721
/* STATUSBAR */
741722

742723
QStatusBar {
@@ -864,3 +845,25 @@ DuQFDockTitle #windowButton {
864845
#duqf_block {
865846
background-color: @color-very-dark-grey;
866847
}
848+
849+
/* ====================================== */
850+
/* ============ UNIQUE WIDGETS ========== */
851+
/* ====================================== */
852+
853+
#mainToolBar {
854+
background: @color-medium-grey;
855+
border-radius: 10px;
856+
margin: 5px 5px 5px 5px;
857+
padding: 5px;
858+
}
859+
860+
#mainToolBar > * {
861+
margin-top: 5px;
862+
margin-left: 5px;
863+
}
864+
865+
#mainToolBar QLabel {
866+
color: @color-light-grey;
867+
}
868+
869+

src/mainwindow.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,6 @@ void MainWindow::duqf_initUi()
687687
// Set transparent, and draw the background in paintEvent() to have rounded corners
688688
setAttribute(Qt::WA_TranslucentBackground, true);
689689
setAttribute(Qt::WA_NoSystemBackground, true);
690-
setStyleSheet("#centralWidget { background: none; }"
691-
"#mainToolBar { border-radius: 10px; margin: 5px 5px 5px 5px; }");
692690

693691
// ===== SYSTRAY ======
694692
duqf_actionShowHide = new QAction("Hide " + QString(STR_INTERNALNAME), this);
@@ -723,7 +721,8 @@ void MainWindow::duqf_initUi()
723721

724722
mainToolBar->setWindowTitle(QString(STR_FILEDESCRIPTION));
725723
QString focusColor = DuSettingsManager::instance()->uiFocusColor(DuSettingsManager::DarkerColor).name();
726-
mainToolBar->setStyleSheet("#windowButton:hover,"
724+
mainToolBar->setStyleSheet("#mainToolBar { padding: 5px; }"
725+
"#windowButton:hover,"
727726
"QToolButton:hover"
728727
"{ background-color:" + focusColor + "}");
729728

0 commit comments

Comments
 (0)