Skip to content

Commit 5874440

Browse files
Switched dock area close button icon to ads specific svg icon
1 parent e36655a commit 5874440

File tree

5 files changed

+44
-11
lines changed

5 files changed

+44
-11
lines changed

src/DockAreaTitleBar.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void DockAreaTitleBarPrivate::createButtons()
163163

164164
// Undock button
165165
UndockButton = new CTitleBarButton(testConfigFlag(CDockManager::DockAreaHasUndockButton));
166-
UndockButton->setObjectName("undockButton");
166+
UndockButton->setObjectName("detachGroupButton");
167167
UndockButton->setAutoRaise(true);
168168
internal::setToolTip(UndockButton, QObject::tr("Detach Group"));
169169
internal::setButtonIcon(UndockButton, QStyle::SP_TitleBarNormalButton, ads::DockAreaUndockIcon);
@@ -173,7 +173,7 @@ void DockAreaTitleBarPrivate::createButtons()
173173

174174
// Close button
175175
CloseButton = new CTitleBarButton(testConfigFlag(CDockManager::DockAreaHasCloseButton));
176-
CloseButton->setObjectName("closeButton");
176+
CloseButton->setObjectName("dockAreaCloseButton");
177177
CloseButton->setAutoRaise(true);
178178
internal::setButtonIcon(CloseButton, QStyle::SP_TitleBarCloseButton, ads::DockAreaCloseIcon);
179179
if (testConfigFlag(CDockManager::DockAreaCloseButtonClosesTab))

src/stylesheets/default.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ ads--CDockAreaWidget
1919
border: 1px solid white;
2020
}
2121

22-
ads--CDockAreaWidget #tabsMenuButton::menu-indicator
23-
{
24-
image: none;
25-
}
2622

2723

2824
ads--CDockWidgetTab
@@ -93,3 +89,15 @@ QScrollArea#dockWidgetScrollArea
9389
}
9490

9591

92+
#tabsMenuButton::menu-indicator
93+
{
94+
image: none;
95+
}
96+
97+
98+
#dockAreaCloseButton
99+
{
100+
qproperty-icon: url(:/ads/images/close-button.svg);
101+
qproperty-iconSize: 16px;
102+
}
103+

src/stylesheets/default_linux.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,10 @@ QScrollArea#dockWidgetScrollArea
9494
background: rgba(0, 0, 0, 32);
9595
}
9696

97+
#dockAreaCloseButton
98+
{
99+
qproperty-icon: url(:/ads/images/close-button.svg);
100+
qproperty-iconSize: 16px;
101+
}
102+
97103

src/stylesheets/focus_highlighting.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ ads--CDockAreaWidget
1515
border: 1px solid white;
1616
}
1717

18-
ads--CDockAreaWidget #tabsMenuButton::menu-indicator
19-
{
20-
image: none;
21-
}
22-
2318

2419
ads--CDockWidgetTab
2520
{
@@ -67,6 +62,13 @@ QScrollArea#dockWidgetScrollArea
6762
}
6863

6964

65+
#tabsMenuButton::menu-indicator
66+
{
67+
image: none;
68+
}
69+
70+
71+
7072
#tabCloseButton
7173
{
7274
margin-top: 2px;
@@ -89,6 +91,14 @@ QScrollArea#dockWidgetScrollArea
8991
}
9092

9193

94+
#dockAreaCloseButton
95+
{
96+
qproperty-icon: url(:/ads/images/close-button.svg);
97+
qproperty-iconSize: 16px;
98+
}
99+
100+
101+
92102
ads--CDockSplitter::handle
93103
{
94104
background-color: palette(dark);
@@ -144,3 +154,5 @@ ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar
144154
padding-bottom: 0px;
145155
}
146156

157+
158+

src/stylesheets/focus_highlighting_linux.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ QScrollArea#dockWidgetScrollArea
7373
}
7474

7575

76+
#dockAreaCloseButton
77+
{
78+
qproperty-icon: url(:/ads/images/close-button.svg);
79+
qproperty-iconSize: 16px;
80+
}
81+
82+
7683
#tabCloseButton
7784
{
7885
margin-top: 2px;

0 commit comments

Comments
 (0)