Skip to content

Commit 227037e

Browse files
Added new close button SVG icon
1 parent cd495a1 commit 227037e

File tree

3 files changed

+157
-3
lines changed

3 files changed

+157
-3
lines changed

src/ads.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<file>images/close-button.svg</file>
55
<file>images/close-button-disabled.svg</file>
66
<file>stylesheets/default_linux.css</file>
7+
<file>images/close-button2.svg</file>
78
</qresource>
89
</RCC>

src/images/close-button2.svg

Lines changed: 139 additions & 0 deletions
Loading

src/stylesheets/default.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,19 @@ QScrollArea#dockWidgetScrollArea
7878

7979
#tabCloseButton:hover
8080
{
81-
border: 1px solid rgba(0, 0, 0, 32);
82-
background: rgba(0, 0, 0, 16);
81+
/*border: 1px solid rgba(0, 0, 0, 32);*/
82+
background: rgba(0, 0, 0, 24);
8383
}
8484

8585
#tabCloseButton:pressed
8686
{
87-
background: rgba(0, 0, 0, 32);
87+
background: rgba(0, 0, 0, 48);
88+
}
89+
90+
#tabCloseButton
91+
{
92+
qproperty-icon: url(:/ads/images/close-button2.svg);
93+
qproperty-iconSize: 16px;
8894
}
8995

9096

@@ -104,6 +110,13 @@ ads--CDockWidgetTab[focused="true"]
104110
border-color: palette(highlight);
105111
}
106112

113+
114+
ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover
115+
{
116+
background: rgba(255, 255, 255, 24);
117+
}
118+
119+
107120
ads--CDockWidgetTab[focused="true"] QLabel
108121
{
109122
color: palette(light);
@@ -123,3 +136,4 @@ ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar
123136
border-bottom: 2px solid palette(highlight);
124137
padding-bottom: 0px;
125138
}
139+

0 commit comments

Comments
 (0)