diff --git a/src/DockAreaTitleBar.cpp b/src/DockAreaTitleBar.cpp index 8795e0b..621e2d2 100644 --- a/src/DockAreaTitleBar.cpp +++ b/src/DockAreaTitleBar.cpp @@ -167,12 +167,12 @@ void DockAreaTitleBarPrivate::createButtons() // AutoHide Button const auto autoHideEnabled = testConfigFlag(CDockManager::DockContainerHasRightSideBar) || testConfigFlag(CDockManager::DockContainerHasLeftSideBar); AutoHideButton = new CTitleBarButton(testConfigFlag(CDockManager::DockAreaHasAutoHideButton) && autoHideEnabled); - AutoHideButton->setObjectName("autoHideButton"); + AutoHideButton->setObjectName("dockAreaAutoHideButton"); AutoHideButton->setAutoRaise(true); AutoHideButton->setCheckable(true); AutoHideButton->setChecked(false); internal::setToolTip(AutoHideButton, QObject::tr("Toggle Auto Hide Group")); - internal::setButtonIcon(AutoHideButton, QStyle::SP_DialogOkButton, ads::DockAreaUndockIcon); + internal::setButtonIcon(AutoHideButton, QStyle::SP_DialogOkButton, ads::AutoHideIcon); AutoHideButton->setSizePolicy(ButtonSizePolicy); Layout->addWidget(AutoHideButton, 0); _this->connect(AutoHideButton, SIGNAL(toggled(bool)), SLOT(onAutoHideButtonClicked(bool))); diff --git a/src/ads.qrc b/src/ads.qrc index a29a542..4068d7b 100644 --- a/src/ads.qrc +++ b/src/ads.qrc @@ -2,6 +2,7 @@ stylesheets/default.css images/close-button.svg + images/pin-button.svg images/close-button-disabled.svg stylesheets/default_linux.css images/close-button-focused.svg diff --git a/src/images/pin-button.svg b/src/images/pin-button.svg new file mode 100644 index 0000000..12ff7cb --- /dev/null +++ b/src/images/pin-button.svg @@ -0,0 +1,53 @@ + +image/svg+xml diff --git a/src/stylesheets/default.css b/src/stylesheets/default.css index 7952bd1..3562115 100644 --- a/src/stylesheets/default.css +++ b/src/stylesheets/default.css @@ -55,6 +55,11 @@ QScrollArea#dockWidgetScrollArea { border: none; } +#dockAreaAutoHideButton { + qproperty-icon: url(:/ads/images/pin-button.svg); + qproperty-iconSize: 16px; +} + #tabCloseButton { margin-top: 2px; background: none; diff --git a/src/stylesheets/default_linux.css b/src/stylesheets/default_linux.css index ac41491..f9161f8 100644 --- a/src/stylesheets/default_linux.css +++ b/src/stylesheets/default_linux.css @@ -59,6 +59,11 @@ QScrollArea#dockWidgetScrollArea { border: none; } +#dockAreaAutoHideButton { + qproperty-icon: url(:/ads/images/pin-button.svg); + qproperty-iconSize: 16px; +} + #tabCloseButton { margin-top: 2px; background: none; diff --git a/src/stylesheets/focus_highlighting.css b/src/stylesheets/focus_highlighting.css index 2844d6e..912166a 100644 --- a/src/stylesheets/focus_highlighting.css +++ b/src/stylesheets/focus_highlighting.css @@ -83,6 +83,11 @@ QScrollArea#dockWidgetScrollArea { background: rgba(0, 0, 0, 48); } +#dockAreaAutoHideButton { + qproperty-icon: url(:/ads/images/pin-button.svg); + qproperty-iconSize: 16px; +} + #dockAreaCloseButton { qproperty-icon: url(:/ads/images/close-button.svg), url(:/ads/images/close-button-disabled.svg) disabled; diff --git a/src/stylesheets/focus_highlighting_linux.css b/src/stylesheets/focus_highlighting_linux.css index f16ab5e..6f5b42a 100644 --- a/src/stylesheets/focus_highlighting_linux.css +++ b/src/stylesheets/focus_highlighting_linux.css @@ -72,6 +72,11 @@ QScrollArea#dockWidgetScrollArea { qproperty-iconSize: 16px; } +#dockAreaAutoHideButton { + qproperty-icon: url(:/ads/images/pin-button.svg); + qproperty-iconSize: 16px; +} + #tabCloseButton { margin-top: 2px; background: none;