diff --git a/src/DockFocusController.cpp b/src/DockFocusController.cpp index 409d854..82fdb95 100644 --- a/src/DockFocusController.cpp +++ b/src/DockFocusController.cpp @@ -24,6 +24,10 @@ #include "DockManager.h" #include "DockAreaTitleBar.h" +#ifdef Q_OS_LINUX +#include "linux/FloatingWidgetTitleBar.h" +#endif + namespace ads { /** @@ -34,6 +38,9 @@ struct DockFocusControllerPrivate CDockFocusController *_this; QPointer FocusedDockWidget = nullptr; QPointer FocusedArea = nullptr; +#ifdef Q_OS_LINUX + QPointer FloatingWidget = nullptr; +#endif CDockManager* DockManager; /** diff --git a/src/FloatingDockContainer.cpp b/src/FloatingDockContainer.cpp index cbc0f96..45b9832 100644 --- a/src/FloatingDockContainer.cpp +++ b/src/FloatingDockContainer.cpp @@ -810,7 +810,7 @@ void CFloatingDockContainer::showEvent(QShowEvent *event) { Super::showEvent(event); #ifdef Q_OS_LINUX - if (CDockManager::testConfigFlag(CDockManager::FocusStyling)) + if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting)) { this->window()->activateWindow(); } diff --git a/src/stylesheets/default_linux.css b/src/stylesheets/default_linux.css index 7e8abd7..0eb6717 100644 --- a/src/stylesheets/default_linux.css +++ b/src/stylesheets/default_linux.css @@ -84,13 +84,19 @@ QScrollArea#dockWidgetScrollArea #tabCloseButton:hover { - border: 1px solid rgba(0, 0, 0, 32); - background: rgba(0, 0, 0, 16); + /*border: 1px solid rgba(0, 0, 0, 32);*/ + background: rgba(0, 0, 0, 24); } #tabCloseButton:pressed { - background: rgba(0, 0, 0, 32); + background: rgba(0, 0, 0, 48); +} + +#tabCloseButton +{ + qproperty-icon: url(:/ads/images/close-button.svg); + qproperty-iconSize: 16px; } /* Focus related styling */ @@ -100,6 +106,24 @@ ads--CDockWidgetTab[focused="true"] border-color: palette(highlight); } +ads--CDockWidgetTab[focused="true"] > #tabCloseButton +{ + qproperty-icon: url(:/ads/images/close-button-focused.svg) +} + + + +ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover +{ + background: rgba(255, 255, 255, 48); +} + + +ads--CDockWidgetTab[focused="true"] > #tabCloseButton:pressed +{ + background: rgba(255, 255, 255, 92); +} + ads--CDockWidgetTab[focused="true"] QLabel { color: palette(light);