Skip to content

Commit caa1a9f

Browse files
Stylesheet update
Updated stylesheet to use svg icon for close button instead of system icon
1 parent e71884b commit caa1a9f

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

src/stylesheets/default.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ QScrollArea#dockWidgetScrollArea
7777
background: none;
7878
border: none;
7979
padding: 0px -2px;
80+
qproperty-icon: url(:/ads/images/close-button.svg);
81+
qproperty-iconSize: 16px;
8082
}
8183

8284
#tabCloseButton:hover

src/stylesheets/default_linux.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ QScrollArea#dockWidgetScrollArea
7979
background: none;
8080
border: none;
8181
padding: 0px -2px;
82+
qproperty-icon: url(:/ads/images/close-button.svg);
83+
qproperty-iconSize: 16px;
8284
}
8385

8486
#tabCloseButton:hover

src/stylesheets/focus_highlighting.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ QScrollArea#dockWidgetScrollArea
7373
background: none;
7474
border: none;
7575
padding: 0px -2px;
76+
qproperty-icon: url(:/ads/images/close-button.svg);
77+
qproperty-iconSize: 16px;
7678
}
7779

7880
#tabCloseButton:hover
@@ -86,12 +88,6 @@ QScrollArea#dockWidgetScrollArea
8688
background: rgba(0, 0, 0, 48);
8789
}
8890

89-
#tabCloseButton
90-
{
91-
qproperty-icon: url(:/ads/images/close-button.svg);
92-
qproperty-iconSize: 16px;
93-
}
94-
9591

9692
ads--CDockSplitter::handle
9793
{

src/stylesheets/focus_highlighting_linux.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ QScrollArea#dockWidgetScrollArea
7979
background: none;
8080
border: none;
8181
padding: 0px -2px;
82+
qproperty-icon: url(:/ads/images/close-button.svg);
83+
qproperty-iconSize: 16px;
8284
}
8385

8486
#tabCloseButton:hover
@@ -92,11 +94,6 @@ QScrollArea#dockWidgetScrollArea
9294
background: rgba(0, 0, 0, 48);
9395
}
9496

95-
#tabCloseButton
96-
{
97-
qproperty-icon: url(:/ads/images/close-button.svg);
98-
qproperty-iconSize: 16px;
99-
}
10097

10198
/* Focus related styling */
10299
ads--CDockWidgetTab[focused="true"]

0 commit comments

Comments
 (0)