1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-01 02:42:39 +08:00

Update styles for minimize button.

This commit is contained in:
Cynthia Pang 2023-10-10 14:33:47 +08:00
parent 68bc850b88
commit e33c71655d
8 changed files with 330 additions and 6 deletions

View File

@ -68,6 +68,11 @@ QScrollArea#dockWidgetScrollArea {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
#autoHideDockAreaMinimizeButton {
qproperty-icon: url(:/ads/images/minimize-button.svg);
qproperty-iconSize: 16px;
}
#detachGroupButton { #detachGroupButton {
qproperty-icon: url(:/ads/images/detach-button.svg), qproperty-icon: url(:/ads/images/detach-button.svg),
url(:/ads/images/detach-button-disabled.svg) disabled; url(:/ads/images/detach-button-disabled.svg) disabled;
@ -340,6 +345,10 @@ ads--CAutoHideDockContainer #dockAreaCloseButton{
qproperty-icon: url(:/ads/images/close-button-focused.svg) qproperty-icon: url(:/ads/images/close-button-focused.svg)
} }
ads--CAutoHideDockContainer #autoHideDockAreaMinimizeButton {
qproperty-icon: url(:/ads/images/minimize-button-focused.svg)
}
ads--CAutoHideDockContainer ads--CTitleBarButton:hover { ads--CAutoHideDockContainer ads--CTitleBarButton:hover {
background: rgba(255, 255, 255, 48); background: rgba(255, 255, 255, 48);

View File

@ -2,6 +2,8 @@
<qresource prefix="/ads"> <qresource prefix="/ads">
<file>stylesheets/default.css</file> <file>stylesheets/default.css</file>
<file>images/close-button.svg</file> <file>images/close-button.svg</file>
<file>images/minimize-button.svg</file>
<file>images/minimize-button-focused.svg</file>
<file>images/pin-button.svg</file> <file>images/pin-button.svg</file>
<file>images/close-button-disabled.svg</file> <file>images/close-button-disabled.svg</file>
<file>stylesheets/default_linux.css</file> <file>stylesheets/default_linux.css</file>

View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
sodipodi:docname="minimize-button-focused.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
version="1.1"
id="svg2"
viewBox="0 0 16 16"
height="16px"
width="16px"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<style
id="style2" />
<defs
id="defs4">
<pattern
id="EMFhbasepattern"
patternUnits="userSpaceOnUse"
width="6"
height="6"
x="0"
y="0" />
<pattern
id="EMFhbasepattern-4"
patternUnits="userSpaceOnUse"
width="6"
height="6"
x="0"
y="0" />
<pattern
id="EMFhbasepattern-3"
patternUnits="userSpaceOnUse"
width="6"
height="6"
x="0"
y="0" />
<pattern
id="EMFhbasepattern-8"
patternUnits="userSpaceOnUse"
width="6"
height="6"
x="0"
y="0" />
</defs>
<sodipodi:namedview
inkscape:guide-bbox="true"
showguides="true"
inkscape:document-rotation="0"
inkscape:snap-global="true"
inkscape:snap-bbox-midpoints="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:bbox-nodes="true"
inkscape:bbox-paths="true"
inkscape:snap-bbox="true"
inkscape:window-maximized="1"
inkscape:window-y="501"
inkscape:window-x="3833"
inkscape:window-height="1018"
inkscape:window-width="1920"
units="px"
showgrid="true"
inkscape:current-layer="g5228"
inkscape:document-units="px"
inkscape:cy="9.4023105"
inkscape:cx="6.4744465"
inkscape:zoom="45.254834"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
inkscape:pagecheckerboard="0">
<inkscape:grid
id="grid3336"
type="xygrid" />
<sodipodi:guide
id="guide883"
orientation="1,0"
position="4,10" />
<sodipodi:guide
id="guide885"
orientation="0,-1"
position="10,12" />
<sodipodi:guide
id="guide887"
orientation="1,0"
position="12,2" />
<sodipodi:guide
id="guide889"
orientation="0,-1"
position="14,4" />
</sodipodi:namedview>
<g
transform="translate(0,-1036.3622)"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Layer 1">
<g
id="g5228"
transform="translate(628,-140.49998)">
<rect
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd"
id="rect964"
width="8"
height="1"
x="-624"
y="1187.8622"
ry="0.5" />
</g>
</g>
<metadata
id="metadata12">
<rdf:RDF>
<rdf:Description
dc:language="en"
dc:format="image/svg+xml"
dc:date="2016-12-14"
dc:publisher="Iconscout"
dc:description="Menu, Bar, Lines, Option, List, Hamburger, Web"
dc:title="Menu, Bar, Lines, Option, List, Hamburger, Web"
about="https://iconscout.com/legal#licenses">
<dc:creator>
<rdf:Bag>
<rdf:li>Jemis Mali</rdf:li>
</rdf:Bag>
</dc:creator>
</rdf:Description>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="16px"
height="16px"
viewBox="0 0 16 16"
id="svg2"
version="1.1"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
sodipodi:docname="minimize-button.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<style
id="style2" />
<defs
id="defs4">
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern-4" />
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern-3" />
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern-8" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="64"
inkscape:cx="7.375"
inkscape:cy="10.648438"
inkscape:document-units="px"
inkscape:current-layer="g5228"
showgrid="true"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1018"
inkscape:window-x="3833"
inkscape:window-y="501"
inkscape:window-maximized="1"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:snap-global="true"
inkscape:document-rotation="0"
showguides="true"
inkscape:guide-bbox="true"
inkscape:pagecheckerboard="0">
<inkscape:grid
type="xygrid"
id="grid3336" />
<sodipodi:guide
position="4,10"
orientation="1,0"
id="guide883" />
<sodipodi:guide
position="10,12"
orientation="0,-1"
id="guide885" />
<sodipodi:guide
position="12,2"
orientation="1,0"
id="guide887" />
<sodipodi:guide
position="14,4"
orientation="0,-1"
id="guide889" />
</sodipodi:namedview>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1036.3622)">
<g
transform="translate(628,-140.49998)"
id="g5228">
<rect
style="fill:#000000;fill-opacity:1;fill-rule:evenodd"
id="rect856"
width="8"
height="0.99999738"
x="-624"
y="1187.8622"
ry="0.49999869" />
</g>
</g>
<metadata
id="metadata12">
<rdf:RDF>
<rdf:Description
about="https://iconscout.com/legal#licenses"
dc:title="Menu, Bar, Lines, Option, List, Hamburger, Web"
dc:description="Menu, Bar, Lines, Option, List, Hamburger, Web"
dc:publisher="Iconscout"
dc:date="2016-12-14"
dc:format="image/svg+xml"
dc:language="en">
<dc:creator>
<rdf:Bag>
<rdf:li>Jemis Mali</rdf:li>
</rdf:Bag>
</dc:creator>
</rdf:Description>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -49,6 +49,11 @@ ads--CTitleBarButton {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
#autoHideDockAreaMinimizeButton {
qproperty-icon: url(:/ads/images/minimize-button.svg);
qproperty-iconSize: 16px;
}
#detachGroupButton { #detachGroupButton {
qproperty-icon: url(:/ads/images/detach-button.svg), qproperty-icon: url(:/ads/images/detach-button.svg),
url(:/ads/images/detach-button-disabled.svg) disabled; url(:/ads/images/detach-button-disabled.svg) disabled;
@ -297,11 +302,13 @@ ads--CAutoHideDockContainer #dockAreaAutoHideButton {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
ads--CAutoHideDockContainer #dockAreaCloseButton{ ads--CAutoHideDockContainer #dockAreaCloseButton{
qproperty-icon: url(:/ads/images/close-button-focused.svg) qproperty-icon: url(:/ads/images/close-button-focused.svg)
} }
ads--CAutoHideDockContainer #autoHideDockAreaMinimizeButton {
qproperty-icon: url(:/ads/images/minimize-button-focused.svg)
}
ads--CAutoHideDockContainer ads--CTitleBarButton:hover { ads--CAutoHideDockContainer ads--CTitleBarButton:hover {
background: rgba(255, 255, 255, 48); background: rgba(255, 255, 255, 48);

View File

@ -47,10 +47,14 @@ ads--CTitleBarButton {
#dockAreaCloseButton { #dockAreaCloseButton {
qproperty-icon: url(:/ads/images/close-button.svg), qproperty-icon: url(:/ads/images/close-button.svg),
url(:/ads/images/close-button-disabled.svg) disabled; url(:/ads/images/close-button-disabled.svg) disabled;
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
#autoHideDockAreaMinimizeButton {
qproperty-icon: url(:/ads/images/minimize-button.svg);
qproperty-iconSize: 16px;
}
#detachGroupButton { #detachGroupButton {
qproperty-icon: url(:/ads/images/detach-button.svg), qproperty-icon: url(:/ads/images/detach-button.svg),
@ -324,8 +328,8 @@ ads--CAutoHideDockContainer ads--CDockAreaWidget[focused="true"] ads--CDockAreaT
* CAutoHideDockContainer titlebar buttons * CAutoHideDockContainer titlebar buttons
*****************************************************************************/ *****************************************************************************/
#dockAreaAutoHideButton { #dockAreaAutoHideButton {
qproperty-icon: url(:/ads/images/vs-pin-button.svg); qproperty-icon: url(:/ads/images/vs-pin-button.svg);
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
ads--CAutoHideDockContainer #dockAreaAutoHideButton { ads--CAutoHideDockContainer #dockAreaAutoHideButton {
@ -333,11 +337,13 @@ ads--CAutoHideDockContainer #dockAreaAutoHideButton {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
ads--CAutoHideDockContainer #dockAreaCloseButton{ ads--CAutoHideDockContainer #dockAreaCloseButton{
qproperty-icon: url(:/ads/images/close-button-focused.svg) qproperty-icon: url(:/ads/images/close-button-focused.svg)
} }
ads--CAutoHideDockContainer #autoHideDockAreaMinimizeButton{
qproperty-icon: url(:/ads/images/minimize-button-focused.svg)
}
ads--CAutoHideDockContainer ads--CTitleBarButton:hover { ads--CAutoHideDockContainer ads--CTitleBarButton:hover {
background: rgba(255, 255, 255, 48); background: rgba(255, 255, 255, 48);

View File

@ -61,6 +61,11 @@ ads--CTitleBarButton {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
#autoHideDockAreaMinimizeButton{
qproperty-icon: url(:/ads/images/minimize-button.svg);
qproperty-iconSize: 16px;
}
#detachGroupButton { #detachGroupButton {
qproperty-icon: url(:/ads/images/detach-button.svg), qproperty-icon: url(:/ads/images/detach-button.svg),
url(:/ads/images/detach-button-disabled.svg) disabled; url(:/ads/images/detach-button-disabled.svg) disabled;
@ -340,6 +345,9 @@ ads--CAutoHideDockContainer #dockAreaCloseButton{
qproperty-icon: url(:/ads/images/close-button-focused.svg) qproperty-icon: url(:/ads/images/close-button-focused.svg)
} }
ads--CAutoHideDockContainer #autoHideDockAreaMinimizeButton{
qproperty-icon: url(:/ads/images/minimize-button-focused.svg);
}
ads--CAutoHideDockContainer ads--CTitleBarButton:hover { ads--CAutoHideDockContainer ads--CTitleBarButton:hover {
background: rgba(255, 255, 255, 48); background: rgba(255, 255, 255, 48);

View File

@ -52,6 +52,10 @@ ads--CTitleBarButton {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
#autoHideDockAreaMinimizeButton{
qproperty-icon: url(:/ads/images/minimize-button.svg);
qproperty-iconSize: 16px;
}
#detachGroupButton { #detachGroupButton {
qproperty-icon: url(:/ads/images/detach-button.svg), qproperty-icon: url(:/ads/images/detach-button.svg),
@ -410,11 +414,13 @@ ads--CAutoHideDockContainer #dockAreaAutoHideButton {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
ads--CAutoHideDockContainer #dockAreaCloseButton{ ads--CAutoHideDockContainer #dockAreaCloseButton{
qproperty-icon: url(:/ads/images/close-button-focused.svg) qproperty-icon: url(:/ads/images/close-button-focused.svg)
} }
ads--CAutoHideDockContainer #autoHideDockAreaMinimizeButton{
qproperty-icon: url(:/ads/images/minimize-button-focused.svg)
}
ads--CAutoHideDockContainer ads--CTitleBarButton:hover { ads--CAutoHideDockContainer ads--CTitleBarButton:hover {
background: rgba(255, 255, 255, 48); background: rgba(255, 255, 255, 48);