diff --git a/src/ads.qrc b/src/ads.qrc index ecb2a6e..e636379 100644 --- a/src/ads.qrc +++ b/src/ads.qrc @@ -4,5 +4,6 @@ images/close-button.svg images/close-button-disabled.svg stylesheets/default_linux.css + images/close-button2.svg diff --git a/src/images/close-button2.svg b/src/images/close-button2.svg new file mode 100644 index 0000000..c772029 --- /dev/null +++ b/src/images/close-button2.svg @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Jemis Mali + + + + + image/svg+xml + + + + + + diff --git a/src/stylesheets/default.css b/src/stylesheets/default.css index 0909d1d..7adac0a 100644 --- a/src/stylesheets/default.css +++ b/src/stylesheets/default.css @@ -78,13 +78,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-button2.svg); + qproperty-iconSize: 16px; } @@ -104,6 +110,13 @@ ads--CDockWidgetTab[focused="true"] border-color: palette(highlight); } + +ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover +{ + background: rgba(255, 255, 255, 24); +} + + ads--CDockWidgetTab[focused="true"] QLabel { color: palette(light); @@ -123,3 +136,4 @@ ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar border-bottom: 2px solid palette(highlight); padding-bottom: 0px; } +