This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-22
lines changed Expand file tree Collapse file tree 2 files changed +24
-22
lines changed Original file line number Diff line number Diff 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
742723QStatusBar {
@@ -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+
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments