Added alternative auto hide button svg icon and modified stylesheet to show pinned icon for autohide widgets

This commit is contained in:
Uwe Kindler 2022-10-17 14:52:53 +02:00
parent ffe6eccb05
commit 96a5443a02
7 changed files with 34 additions and 4 deletions

View File

@ -15,5 +15,7 @@
<file>images/maximize-button-focused.svg</file> <file>images/maximize-button-focused.svg</file>
<file>images/restore-button.svg</file> <file>images/restore-button.svg</file>
<file>images/restore-button-focused.svg</file> <file>images/restore-button-focused.svg</file>
<file>images/vs-pin-button.svg</file>
<file>images/vs-pin-button-pinned.svg</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16" height="16" enable-background="new 0 0 122.879 122.867" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m14 6h-6v-1h-1v3h-4v1h4v3h1v-1h6v-4zm-1 1v2h-5v-2z" color="#000000" style="-inkscape-stroke:none"/></svg>

After

Width:  |  Height:  |  Size: 316 B

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16" height="16" enable-background="new 0 0 122.879 122.867" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m6 3v6h-1v1h3v4h1v-4h3v-1h-1v-6h-4zm1 1h2v5h-2z" color="#000000" style="-inkscape-stroke:none"/></svg>

After

Width:  |  Height:  |  Size: 313 B

View File

@ -119,7 +119,13 @@ QScrollArea#dockWidgetScrollArea {
} }
#dockAreaAutoHideButton { #dockAreaAutoHideButton {
qproperty-icon: url(:/ads/images/pin-button.svg); qproperty-icon: url(:/ads/images/vs-pin-button.svg);
qproperty-iconSize: 16px;
}
ads--CAutoHideDockContainer #dockAreaAutoHideButton
{
qproperty-icon: url(:/ads/images/vs-pin-button-pinned.svg);
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }

View File

@ -123,7 +123,13 @@ QScrollArea#dockWidgetScrollArea {
} }
#dockAreaAutoHideButton { #dockAreaAutoHideButton {
qproperty-icon: url(:/ads/images/pin-button.svg); qproperty-icon: url(:/ads/images/vs-pin-button.svg);
qproperty-iconSize: 16px;
}
ads--CAutoHideDockContainer #dockAreaAutoHideButton
{
qproperty-icon: url(:/ads/images/vs-pin-button-pinned.svg);
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }

View File

@ -139,7 +139,13 @@ QScrollArea#dockWidgetScrollArea {
} }
#dockAreaAutoHideButton { #dockAreaAutoHideButton {
qproperty-icon: url(:/ads/images/pin-button.svg); qproperty-icon: url(:/ads/images/vs-pin-button.svg);
qproperty-iconSize: 16px;
}
ads--CAutoHideDockContainer #dockAreaAutoHideButton
{
qproperty-icon: url(:/ads/images/vs-pin-button-pinned.svg);
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }

View File

@ -136,7 +136,13 @@ QScrollArea#dockWidgetScrollArea {
} }
#dockAreaAutoHideButton { #dockAreaAutoHideButton {
qproperty-icon: url(:/ads/images/pin-button.svg); qproperty-icon: url(:/ads/images/vs-pin-button.svg);
qproperty-iconSize: 16px;
}
ads--CAutoHideDockContainer #dockAreaAutoHideButton
{
qproperty-icon: url(:/ads/images/vs-pin-button-pinned.svg);
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }