From caa1a9f3301e73a0beafdaa794cf147049922d68 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 11 Jun 2020 08:36:01 +0200 Subject: [PATCH] Stylesheet update Updated stylesheet to use svg icon for close button instead of system icon --- src/stylesheets/default.css | 2 ++ src/stylesheets/default_linux.css | 2 ++ src/stylesheets/focus_highlighting.css | 8 ++------ src/stylesheets/focus_highlighting_linux.css | 7 ++----- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/stylesheets/default.css b/src/stylesheets/default.css index 139d9cd..1590aba 100644 --- a/src/stylesheets/default.css +++ b/src/stylesheets/default.css @@ -77,6 +77,8 @@ QScrollArea#dockWidgetScrollArea background: none; border: none; padding: 0px -2px; + qproperty-icon: url(:/ads/images/close-button.svg); + qproperty-iconSize: 16px; } #tabCloseButton:hover diff --git a/src/stylesheets/default_linux.css b/src/stylesheets/default_linux.css index 64f1466..8f3ea44 100644 --- a/src/stylesheets/default_linux.css +++ b/src/stylesheets/default_linux.css @@ -79,6 +79,8 @@ QScrollArea#dockWidgetScrollArea background: none; border: none; padding: 0px -2px; + qproperty-icon: url(:/ads/images/close-button.svg); + qproperty-iconSize: 16px; } #tabCloseButton:hover diff --git a/src/stylesheets/focus_highlighting.css b/src/stylesheets/focus_highlighting.css index 5225593..71476de 100644 --- a/src/stylesheets/focus_highlighting.css +++ b/src/stylesheets/focus_highlighting.css @@ -73,6 +73,8 @@ QScrollArea#dockWidgetScrollArea background: none; border: none; padding: 0px -2px; + qproperty-icon: url(:/ads/images/close-button.svg); + qproperty-iconSize: 16px; } #tabCloseButton:hover @@ -86,12 +88,6 @@ QScrollArea#dockWidgetScrollArea background: rgba(0, 0, 0, 48); } -#tabCloseButton -{ - qproperty-icon: url(:/ads/images/close-button.svg); - qproperty-iconSize: 16px; -} - ads--CDockSplitter::handle { diff --git a/src/stylesheets/focus_highlighting_linux.css b/src/stylesheets/focus_highlighting_linux.css index 5177c93..cd639f4 100644 --- a/src/stylesheets/focus_highlighting_linux.css +++ b/src/stylesheets/focus_highlighting_linux.css @@ -79,6 +79,8 @@ QScrollArea#dockWidgetScrollArea background: none; border: none; padding: 0px -2px; + qproperty-icon: url(:/ads/images/close-button.svg); + qproperty-iconSize: 16px; } #tabCloseButton:hover @@ -92,11 +94,6 @@ QScrollArea#dockWidgetScrollArea background: rgba(0, 0, 0, 48); } -#tabCloseButton -{ - qproperty-icon: url(:/ads/images/close-button.svg); - qproperty-iconSize: 16px; -} /* Focus related styling */ ads--CDockWidgetTab[focused="true"]