[win-linux] adaptation for menu indicator

This commit is contained in:
SimplestStudio
2023-04-12 13:36:37 +03:00
parent f82c70e92d
commit f8a78c0692
13 changed files with 311 additions and 45 deletions

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_hover.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="45.254834"
inkscape:cx="1.1932427"
inkscape:cy="9.02666"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><path
style="fill:#b8b8b8;fill-opacity:1;stroke:#dedede;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 51.464061,42.022434 H 97.958484 L 74.719155,61.684579 Z"
id="path924"
sodipodi:nodetypes="cccc" /></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_hover_light.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="45.254834"
inkscape:cx="3.0935922"
inkscape:cy="9.0045629"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><path
style="fill:#ffffff;fill-opacity:0.10196079;stroke:#dedede;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 51.464061,42.022434 H 97.958484 L 74.719155,61.684579 Z"
id="path924"
sodipodi:nodetypes="cccc" /></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_normal.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="45.254834"
inkscape:cx="3.0935922"
inkscape:cy="9.0045629"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><path
style="fill:#989898;fill-opacity:1;stroke:#dedede;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 51.464061,42.022434 H 97.958484 L 74.719155,61.684579 Z"
id="path924"
sodipodi:nodetypes="cccc" /></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_light.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="45.254834"
inkscape:cx="5.0160387"
inkscape:cy="8.9824658"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><path
style="fill:#ffffff;fill-opacity:0.4509804;stroke:#dedede;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 51.464061,42.022434 H 97.958484 L 74.719155,61.684579 Z"
id="path924"
sodipodi:nodetypes="cccc" /></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_pressed.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="45.254834"
inkscape:cx="1.1932427"
inkscape:cy="9.02666"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><path
style="fill:#828282;fill-opacity:1;stroke:#dedede;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 51.464061,42.022434 H 97.958484 L 74.719155,61.684579 Z"
id="path924"
sodipodi:nodetypes="cccc" /></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_pressed_light.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="45.254834"
inkscape:cx="3.0935922"
inkscape:cy="9.0045629"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><path
style="fill:#ffffff;fill-opacity:0.65098041;stroke:#dedede;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 51.464061,42.022434 H 97.958484 L 74.719155,61.684579 Z"
id="path924"
sodipodi:nodetypes="cccc" /></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="15px"
height="15px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="lds-rolling"
version="1.1"
id="svg4"
sodipodi:docname="menu_indicator_undef.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
style="animation-play-state: running; animation-delay: 0s; background: none;"
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"><defs
id="defs8" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="90.509668"
inkscape:cx="3.7675533"
inkscape:cy="8.7338736"
inkscape:window-width="3840"
inkscape:window-height="2035"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><rect
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:0;paint-order:markers stroke fill"
id="rect357"
width="100.01838"
height="99.97879"
x="-0.014000018"
y="0.0338521" /><path
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#3a61ff;stroke-width:14.3103;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:0;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
id="path1849"
sodipodi:type="arc"
sodipodi:cx="50.104099"
sodipodi:cy="49.983936"
sodipodi:rx="40.075459"
sodipodi:ry="40.075459"
sodipodi:start="0.0096952571"
sodipodi:end="6.2803127"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 90.177674,50.372472 A 40.075459,40.075459 0 0 1 49.841475,90.058534 40.075459,40.075459 0 0 1 10.028874,49.847226 40.075459,40.075459 0 0 1 50.114894,9.9084792 40.075459,40.075459 0 0 1 90.179392,49.868815" /></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -219,17 +219,17 @@ QPushButton::menu-indicator {
/*border: 1px solid white;*/
width: 10px;
height: 10px;
border-image: url(:/res/icons/menu-indicator.png) 0 0 0 0 repeat repeat;
image: url(:/menu_indicator_normal_light.svg);
left: -2px;
top: -2px;
}
QPushButton::menu-indicator:disabled {
border-image: url(:/res/icons/menu-indicator.png) 0 0 0 10 repeat repeat;
image: url(:/menu_indicator_pressed_light.svg);
}
QPushButton::menu-indicator:hover {
border-image: url(:/res/icons/menu-indicator.png) 0 10 0 0 repeat repeat;
image: url(:/menu_indicator_hover_light.svg);
}
/*QPushButton[theme=dark]::menu-indicator {*/

View File

@ -48,19 +48,10 @@ QPushButton#toolButtonMain[class=normal],
QPushButton::menu-indicator {
width: 13px;
height: 13px;
border-image: url(:/menu-indicator_1.25x.png) 0 0 0 0 repeat repeat;
left: -2px;
top: -2px;
}
QPushButton::menu-indicator:disabled {
border-image: url(:/menu-indicator_1.25x.png) 0 0 0 13 repeat repeat;
}
QPushButton::menu-indicator:hover {
border-image: url(:/menu-indicator_1.25x.png) 0 13 0 0 repeat repeat;
}
QPushButton#toolButtonDownload::menu-indicator {
top: -13px;
left: -5px;

View File

@ -49,19 +49,10 @@ QPushButton#toolButtonMain[class=normal],
QPushButton::menu-indicator {
width: 15px;
height: 15px;
border-image: url(:/menu-indicator_1.5x.png) 0 0 0 0 repeat repeat;
left: -3px;
top: -2px;
}
QPushButton::menu-indicator:disabled {
border-image: url(:/menu-indicator_1.5x.png) 0 0 0 15 repeat repeat;
}
QPushButton::menu-indicator:hover {
border-image: url(:/menu-indicator_1.5x.png) 0 15 0 0 repeat repeat;
}
QPushButton#toolButtonDownload::menu-indicator {
top: -15px;
left: -6px;

View File

@ -48,19 +48,10 @@ QPushButton#toolButtonMain[class=normal],
QPushButton::menu-indicator {
width: 18px;
height: 18px;
border-image: url(:/menu-indicator_1.75x.png) 0 0 0 0 repeat repeat;
left: -4px;
top: -2px;
}
QPushButton::menu-indicator:disabled {
border-image: url(:/menu-indicator_1.75x.png) 0 0 0 15 repeat repeat;
}
QPushButton::menu-indicator:hover {
border-image: url(:/menu-indicator_1.75x.png) 0 15 0 0 repeat repeat;
}
QPushButton#toolButtonDownload::menu-indicator {
top: -18px;
left: -7px;

View File

@ -50,19 +50,10 @@ QPushButton#toolButtonMain[class=normal],
QPushButton::menu-indicator {
width: 20px;
height: 20px;
border-image: url(:/menu-indicator_2x.png) 0 0 0 0 repeat repeat;
left: -4px;
top: -2px;
}
QPushButton::menu-indicator:disabled {
border-image: url(:/menu-indicator_2x.png) 0 0 0 20 repeat repeat;
}
QPushButton::menu-indicator:hover {
border-image: url(:/menu-indicator_2x.png) 0 20 0 0 repeat repeat;
}
/*QPushButton[theme=dark]::menu-indicator:disabled {*/
/*border-image: url(:/res/icons/menu-indicator-dark.png) 0 0 0 20 repeat repeat;*/
/*}*/

View File

@ -17,12 +17,13 @@
<file alias="maximize_light.svg">res/icons/maximize_light.svg</file>
<file alias="restore.svg">res/icons/restore.svg</file>
<file alias="restore_light.svg">res/icons/restore_light.svg</file>
<file>res/icons/menu-indicator.png</file>
<file>res/icons/menu-indicator-dark.png</file>
<file alias="menu-indicator_1.25x.png">res/icons/menu-indicator@1.5x.png</file>
<file alias="menu-indicator_1.5x.png">res/icons/menu-indicator@1.5x.png</file>
<file alias="menu-indicator_1.75x.png">res/icons/menu-indicator@1.5x.png</file>
<file alias="menu-indicator_2x.png">res/icons/menu-indicator@2x.png</file>
<file alias="menu_indicator_normal.svg">res/icons/menu_indicator_normal.svg</file>
<file alias="menu_indicator_hover.svg">res/icons/menu_indicator_hover.svg</file>
<file alias="menu_indicator_pressed.svg">res/icons/menu_indicator_pressed.svg</file>
<file alias="menu_indicator_normal_light.svg">res/icons/menu_indicator_normal_light.svg</file>
<file alias="menu_indicator_hover_light.svg">res/icons/menu_indicator_hover_light.svg</file>
<file alias="menu_indicator_pressed_light.svg">res/icons/menu_indicator_pressed_light.svg</file>
<file alias="menu_indicator_undef.svg">res/icons/menu_indicator_undef.svg</file>
<file>res/icons/radiobox.png</file>
<file alias="radiobox_1.25x.png">res/icons/radiobox@1.25x.png</file>
<file alias="radiobox_1.5x.png">res/icons/radiobox@1.5x.png</file>