17/05/2021
@@ -7,25 +7,25 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="20"
|
||||
height="14"
|
||||
viewBox="0 0 5.2916665 3.7041665"
|
||||
width="18"
|
||||
height="12.6"
|
||||
viewBox="0 0 4.7624998 3.3337502"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_add_user.svg">
|
||||
<defs
|
||||
id="defs2" />
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#3b3b3b"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="40.756193"
|
||||
inkscape:cx="10"
|
||||
inkscape:cy="8.0371081"
|
||||
inkscape:zoom="50.945244"
|
||||
inkscape:cx="7.9999999"
|
||||
inkscape:cy="7.9999999"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
@@ -37,7 +37,7 @@
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
@@ -53,9 +53,9 @@
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
sodipodi:nodetypes="cccccccccccccscccccsccsc"
|
||||
d="M 4.0555995,5.0833333e-7 V 0.75128476 H 3.2964916 V 1.2234565 H 4.0555995 V 1.9747407 H 4.5326882 V 1.2234565 h 0.758978 V 0.75128476 H 4.5326882 V 5.0833333e-7 Z M 2.0967948,0.13244095 c -0.4464888,0.002969 -0.8066677,0.36247431 -0.8066677,0.80437131 -7e-5,0.44429304 0.363829,0.80449994 0.8127478,0.80450984 0.4489187,-9.9e-6 0.8128077,-0.3602168 0.8127476,-0.80450984 -1e-5,-0.4442327 -0.3638889,-0.80435053 -0.8127476,-0.80437131 -0.002,-9.9e-6 -0.004,-9.9e-6 -0.006,0 z m -0.0278,1.91481445 C 0.25532983,2.0472554 5.354963e-7,3.7041662 5.354963e-7,3.7041662 H 4.1636992 c 0,0 -0.2810391,-1.6569108 -2.0947044,-1.6569108 z"
|
||||
style="fill:#e6e6e6;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path846" />
|
||||
id="path835"
|
||||
style="fill:#c3ccdf;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 3.6497773,1.1647547e-4 V 0.67623793 H 2.9666794 V 1.101212 H 3.6497773 V 1.7773335 H 4.0794021 V 1.101212 H 4.7624999 V 0.67623793 H 4.0794021 V 1.1647547e-4 Z M 1.8870942,0.11929524 c -0.4018392,0.0027 -0.7261184,0.32608639 -0.7261184,0.72379299 -6.3e-5,0.39986437 0.3273236,0.72436537 0.7313507,0.72437427 0.4040261,-8.9e-6 0.731986,-0.3245099 0.7319319,-0.72437427 -8.9e-6,-0.3998092 -0.3279598,-0.72377385 -0.7319319,-0.72379299 -0.0018,-8.96e-6 -0.00343,-8.96e-6 -0.00523,0 z m 0.00349,0.45229799 c 6.75e-4,-3.4e-6 0.00107,-3.4e-6 0.00174,0 0.1516867,7.2e-6 0.2749798,0.1213713 0.2749831,0.271495 2.04e-5,0.1501443 -0.1232761,0.27207297 -0.2749831,0.27207637 -0.1517074,-3.4e-6 -0.2744255,-0.12193207 -0.2744019,-0.27207637 0,-0.1493342 0.1217718,-0.2704812 0.2726578,-0.271495 z M 1.8620957,1.8424458 C 0.22979836,1.8424458 2.0111711e-7,3.3336336 2.0111711e-7,3.3336336 H 3.7474457 c 0,0 -0.2530506,-1.4911879 -1.88535,-1.4911878 z"
|
||||
sodipodi:nodetypes="cccccccccccccsccccsssccccsssccs" />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.8 KiB |
63
gui/images/svg_icons/icon_file.svg
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="14.133"
|
||||
height="16"
|
||||
viewBox="0 0 3.7393562 4.2333335"
|
||||
version="1.1"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_file.svg">
|
||||
<defs
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="50.945244"
|
||||
inkscape:cx="7.9999999"
|
||||
inkscape:cy="6.9571339"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
fill="var(--ci-primary-color, currentColor)"
|
||||
d="M 2.5278472,1.5e-7 H -4.3840544e-5 V 4.2333332 H 3.7394002 V 1.2115542 Z M 3.3117606,1.3284462 v 0.01211 H 2.3988452 V 0.40167229 h 0.01211 z M 0.42702697,3.8316611 V 0.40167229 H 1.9400447 V 1.7630023 h 1.3924898 v 2.0686588 z"
|
||||
class="ci-primary"
|
||||
id="path1797"
|
||||
style="fill:#c3ccdf;fill-opacity:1;stroke-width:0.00881943"
|
||||
sodipodi:nodetypes="ccccccccccccccccccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
62
gui/images/svg_icons/icon_folder.svg
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333332 4.2333335"
|
||||
version="1.1"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_folder.svg">
|
||||
<defs
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="52.312503"
|
||||
inkscape:cx="7.9999999"
|
||||
inkscape:cy="7.9999999"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
fill="var(--ci-primary-color, currentColor)"
|
||||
d="M 4.0216672,4.0216668 H 0.21166717 A 0.21191363,0.21191363 0 0 1 1.6666667e-7,3.8100008 V 0.42333284 A 0.21191363,0.21191363 0 0 1 0.21166717,0.21166684 H 1.8579662 a 0.21109342,0.21109342 0 0 1 0.195386,0.130263 l 0.180905,0.434182 h 1.78741 a 0.21191363,0.21191363 0 0 1 0.211666,0.211666 V 3.8100008 a 0.21191363,0.21191363 0 0 1 -0.211666,0.211666 z M 0.28222217,3.7394448 H 3.9511112 V 1.0583338 H 2.0461122 L 1.8109242,0.49388884 H 0.28222217 Z"
|
||||
class="ci-primary"
|
||||
id="path1715"
|
||||
style="stroke-width:0.00881943;fill:#c3ccdf;fill-opacity:1" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
63
gui/images/svg_icons/icon_folder_open.svg
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="12.979"
|
||||
viewBox="0 0 4.2333332 3.4340272"
|
||||
version="1.1"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_folder_open.svg">
|
||||
<defs
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="50.945244"
|
||||
inkscape:cx="7.9999999"
|
||||
inkscape:cy="7.9999999"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
fill="var(--ci-primary-color, currentColor)"
|
||||
d="m 4.1881781,1.2550782 c -0.040167,-0.05178 -0.1020848,-0.081993 -0.167617,-0.08179 H 3.4339851 V 0.7088652 C 3.4338533,0.59581999 3.3422423,0.504213 3.2291971,0.50408623 h -1.207708 l -0.157472,-0.378076 C 1.8323311,0.049613 1.7576995,-1.3404038e-4 1.6749921,1.222962e-5 H 0.20477805 C 0.09173634,1.4395962e-4 1.3078124e-4,0.09174952 -9.4815342e-7,0.20479123 V 3.4340152 H 3.7277421 l 0.499122,-1.996493 c 0.016088,-0.063523 0.0018,-0.1309155 -0.03869,-0.182441 z m -3.79557487,1.7915233 0,-2.61763371 H 1.5445818 l 0.209998,0.50407396 h 1.2296898 l 0,0.24024345 H 1.0773411 C 0.9797102,1.1731588 0.89457356,1.2396202 0.87100205,1.3343632 l -0.453994,1.7122383 c 0,0 0.0171431,0.00519 -0.0244048,0 z m 2.99950817,0 H 0.84430765 L 1.2417473,1.5555024 h 2.5062558 z"
|
||||
class="ci-primary"
|
||||
id="path1737"
|
||||
style="fill:#c3ccdf;fill-opacity:1;stroke-width:0.00886065"
|
||||
sodipodi:nodetypes="cccccccccccccccccccccccccccccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
62
gui/images/svg_icons/icon_heart.svg
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333332 4.2333335"
|
||||
version="1.1"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_heart.svg">
|
||||
<defs
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="52.312503"
|
||||
inkscape:cx="7.9999999"
|
||||
inkscape:cy="7.9999999"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
fill="var(--ci-primary-color, currentColor)"
|
||||
d="m 3.8437761,0.55967259 a 1.124579,1.124579 0 0 0 -1.59099,5.97e-4 l -0.136276,0.137937 -0.135142,-0.137638 -8.79e-4,-8.79e-4 a 1.124579,1.124579 0 0 0 -1.59040098,0 l -0.06071,0.06071 a 1.124579,1.124579 0 0 0 0,1.59039201 l 1.60228798,1.602271 0.180943,0.189579 0.0043,-0.0043 0.0047,0.0047 0.16953,-0.178869 1.61335,-1.613367 a 1.1258705,1.1258705 0 0 0 0,-1.59039201 z m -0.13813,1.45229701 -1.588723,1.588758 -1.58875798,-1.588758 a 0.84343427,0.84343427 0 0 1 0,-1.19279201 l 0.06072,-0.06071 a 0.84343427,0.84343427 0 0 1 1.19234398,-4.48e-4 l 0.334676,0.34077401 0.336267,-0.34032601 a 0.84343427,0.84343427 0 0 1 1.1928,0 l 0.06071,0.0607 a 0.8444007,0.8444007 0 0 1 -3.3e-5,1.19280001 z"
|
||||
class="ci-primary"
|
||||
id="path1748"
|
||||
style="stroke-width:0.00878576;fill:#c3ccdf;fill-opacity:1" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
66
gui/images/svg_icons/icon_home.svg
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333332 4.2333335"
|
||||
version="1.1"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_home.svg">
|
||||
<defs
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="52.312834"
|
||||
inkscape:cx="8.0000001"
|
||||
inkscape:cy="8"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
inkscape:export-ydpi="288.13419"
|
||||
inkscape:export-xdpi="288.13419"
|
||||
inkscape:export-filename="E:\ESTUDOS\TUTORIAIS\NEW\Qt Widgets Projects\PyOneDark\Layout\Exports\Preview_01.png"
|
||||
id="path924"
|
||||
class="ci-primary"
|
||||
d="m 2.2591467,0.08067382 c -0.12676,-0.110868 -0.32292,-0.106982 -0.44471,0.0088 -0.54091,0.514215 -1.08177003,1.02847098 -1.62268003,1.54268498 -0.1059,0.100686 -0.1917600033334,0.300754 -0.1917600033334,0.446879 v 1.889698 A 0.26458331,0.26458331 0 0 0 0.26458667,4.2333198 H 1.3985067 a 0.26458331,0.26458331 0 0 0 0.26459,-0.264584 v -1.018815 a 0.13229166,0.13229166 0 0 1 0.13229,-0.132292 h 0.64256 a 0.13229166,0.13229166 0 0 1 0.13229,0.132292 v 1.018815 a 0.26458331,0.26458331 0 0 0 0.26458,0.264584 h 1.13393 a 0.26458331,0.26458331 0 0 0 0.26459,-0.264584 v -1.896721 c 0,-0.146126 -0.0892,-0.34258 -0.19914,-0.438789 -0.59165,-0.517555 -1.18337,-1.03503798 -1.77505,-1.55255198 z m -0.21784,0.301963 c 1.2e-4,-0.0016 1.2e-4,-0.0016 1.2e-4,-0.0016 z m 1.5666,3.48136598 h -0.40055 a 0.26458331,0.26458331 0 0 1 -0.26458,-0.264584 v -0.875328 c 0,-0.158767 -0.13538,-0.287474 -0.30238,-0.287474 h -1.08254 c -0.167,0 -0.30238,0.128707 -0.30238,0.287474 v 0.875328 a 0.26458331,0.26458331 0 0 1 -0.26458003,0.264584 h -0.34208 a 0.26458331,0.26458331 0 0 1 -0.26459,-0.264584 v -1.307754 a 0.63429306,0.63429306 0 0 1 0.18802,-0.450739 L 1.9474167,0.47937082 c 0.0519,-0.0514 0.094,-0.09339 0.0942,-0.09339 l 1.63381,1.46450498 a 0.59248392,0.59248392 0 0 1 0.19702,0.441184 v 1.307755 a 0.26458331,0.26458331 0 0 1 -0.26458,0.264585 z"
|
||||
fill="var(--ci-primary-color, currentColor)"
|
||||
style="fill:#c3ccdf;fill-opacity:1;stroke-width:0.00921352"
|
||||
sodipodi:nodetypes="cccccccccccscsccssssccccccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
61
gui/images/svg_icons/icon_save.svg
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333332 4.2333335"
|
||||
version="1.1"
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_save.svg">
|
||||
<defs
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="50.945244"
|
||||
inkscape:cx="7.9999999"
|
||||
inkscape:cy="7.9999999"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<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>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
id="path1759"
|
||||
style="fill:#c3ccdf;fill-opacity:1;stroke-width:0.0333333"
|
||||
d="M 1.3339844 0 C 0.89237001 0.00051430825 0.53371744 0.35916689 0.53320312 0.80078125 L 0.53320312 15.199219 C 0.53371737 15.640833 0.89236979 15.999486 1.3339844 16 L 14.666016 16 C 15.10763 15.999486 15.466282 15.640833 15.466797 15.199219 L 15.466797 4.1113281 C 15.467385 3.8990566 15.382939 3.6946016 15.232422 3.5449219 L 11.921875 0.234375 C 11.772195 0.083857583 11.56774 -0.00058789361 11.355469 0 L 1.3339844 0 z M 2.1699219 1.5957031 L 4.2675781 1.5957031 L 4.2675781 5.3339844 L 11.199219 5.3339844 L 11.199219 1.5957031 L 11.246094 1.5957031 L 13.849609 4.2207031 L 13.849609 14.580078 L 2.1699219 14.580078 L 2.1699219 1.5957031 z M 5.765625 1.5957031 L 9.6230469 1.5957031 L 9.6230469 3.8945312 L 5.765625 3.8945312 L 5.765625 1.5957031 z M 7.8671875 6.9335938 C 5.1348907 6.9335938 3.7674272 10.236177 5.6992188 12.167969 C 7.63101 14.09976 10.933594 12.732297 10.933594 10 C 10.931757 8.3070891 9.5600984 6.9354309 7.8671875 6.9335938 z M 7.8652344 8.5234375 C 8.6813058 8.524323 9.3428645 9.1858818 9.34375 10.001953 C 9.34375 11.319063 7.7515363 11.9781 6.8203125 11.046875 C 5.8890879 10.115651 6.548125 8.5234375 7.8652344 8.5234375 z "
|
||||
transform="scale(0.26458333)" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -7,37 +7,37 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
sodipodi:docname="icon_search.svg"
|
||||
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
|
||||
id="svg8"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333332 4.2333335"
|
||||
version="1.1"
|
||||
viewBox="0 0 6.6145832 3.9687499"
|
||||
height="15"
|
||||
width="25">
|
||||
id="svg1123"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
|
||||
sodipodi:docname="icon_search.svg">
|
||||
<defs
|
||||
id="defs2" />
|
||||
id="defs1117" />
|
||||
<sodipodi:namedview
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-width="1920"
|
||||
units="px"
|
||||
showgrid="false"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:cy="10"
|
||||
inkscape:cx="10"
|
||||
inkscape:zoom="39.690974"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0"
|
||||
borderopacity="1.0"
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
pagecolor="#3b3b3b"
|
||||
id="base" />
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="52.312834"
|
||||
inkscape:cx="8.0000001"
|
||||
inkscape:cy="8"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
id="metadata1120">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
@@ -49,12 +49,12 @@
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
inkscape:label="Layer 1">
|
||||
id="layer1">
|
||||
<path
|
||||
id="path835"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#e5e6e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.205309;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000"
|
||||
d="M 4.1830577,1.5e-8 C 3.7904164,1.5e-8 3.3967045,0.15241321 3.09781,0.45130858 2.7989074,0.75020428 2.6458333,1.1434324 2.6458333,1.5362093 c 0,0.3927766 0.1515131,0.7771147 0.4519767,1.0849006 0.2983156,0.2983156 0.6913607,0.4433467 1.0852477,0.4433467 0.306518,0 0.6112819,-0.087194 0.8640854,-0.2677681 L 5.1172271,2.7459848 6.3401238,3.96875 6.6145833,3.6946963 5.391686,2.4719306 5.440787,2.4023696 C 5.6223841,2.1408714 5.7102103,1.8345644 5.7102103,1.5362093 5.7102103,1.1421916 5.5645223,0.74962538 5.2662072,0.45130858 4.967312,0.15241261 4.5757072,1.5e-8 4.1830577,1.5e-8 Z m 0,0.384680865 c 0.2902663,0 0.5879952,0.1110113 0.8103686,0.3419386 0.2203605,0.2212072 0.3315335,0.51307362 0.3315335,0.80958982 0,0.2902 -0.1116652,0.5808497 -0.3315335,0.8091705 l -0.00167,0.00167 C 4.7694287,2.5693759 4.473365,2.6797729 4.1830603,2.6797729 c -0.2903047,0 -0.5884668,-0.110397 -0.8107883,-0.3327195 l -0.00168,-0.00167 C 3.1507277,2.117059 3.0390572,1.8264094 3.0390572,1.5362093 c 0,-0.297217 0.111814,-0.58944731 0.3332122,-0.81084691 0.2222091,-0.22982 0.5212062,-0.3406815 0.8107883,-0.34068151 z" />
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#c3ccdf;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.218994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000"
|
||||
d="M 1.6396931,4.2071667e-5 C 1.2208792,4.2071667e-5 0.80092396,0.16261109 0.48210957,0.48143454 0.16327384,0.800258 0,1.2196884 0,1.6386495 0,2.0576106 0.16160985,2.4675692 0.48210957,2.7958645 0.80030529,3.1140693 1.2195565,3.2687664 1.6396931,3.2687664 c 0.326953,0 0.6520287,-0.093012 0.9216913,-0.2856184 l 0.074773,-0.054079 1.30442,1.3042642 0.2927559,-0.292317 -1.3044201,-1.3042749 0.052373,-0.074239 C 3.174992,2.2835717 3.2686768,1.956855 3.2686768,1.6386076 3.2686768,1.2183238 3.113275,0.79959737 2.7950686,0.48139258 2.4762542,0.16256913 2.0585389,1.0166667e-7 1.6397144,1.0166667e-7 Z m 0,0.410321188333 c 0.3096197,0 0.6271968,0.11840947 0.8643903,0.36473232 0.2350494,0.23595492 0.3536302,0.54726912 0.3536302,0.86355392 0,0.3095436 -0.1191034,0.6195671 -0.3536302,0.863106 l -0.00213,0.00213 C 2.2647992,2.7410351 1.9490035,2.8587833 1.6393517,2.8587833 c -0.3096624,0 -0.6276981,-0.1177482 -0.86483828,-0.3548871 l -0.002133,-0.00213 C 0.53785329,2.2582166 0.41873922,1.9481931 0.41873922,1.6386495 c 0,-0.3170314 0.11927406,-0.6287403 0.35542221,-0.8648979 C 1.0111842,0.52861273 1.330116,0.41036326 1.6389997,0.41036326 Z" />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
101
gui/images/svg_icons/icon_widgets.svg
Normal file
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="Capa_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 18 18"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="icon_widgets.svg"
|
||||
width="18"
|
||||
height="18"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"><metadata
|
||||
id="metadata43"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs41" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1027"
|
||||
id="namedview39"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.709928"
|
||||
inkscape:cx="244.89999"
|
||||
inkscape:cy="244.89999"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="Capa_1" />
|
||||
<g
|
||||
id="g6"
|
||||
transform="matrix(0.03674969,0,0,0.03674969,9.19e-7,-1.3853197e-5)"
|
||||
style="fill:#c3ccdf;fill-opacity:1">
|
||||
<g
|
||||
id="g4"
|
||||
style="fill:#c3ccdf;fill-opacity:1">
|
||||
<path
|
||||
d="m 489.8,280.92 c 0,-13.9 -11.3,-25.2 -25.2,-25.2 h -74.1 c -62.1,0 -112.4,50.2 -112.7,112.2 -0.1,32.3 -23,61 -55,65 -38.4,4.8 -71.2,-25.2 -71.2,-62.6 v -56.4 c 57.6,-11.7 101,-62.6 101,-123.7 v -64 c 0,-9.1 -7.3,-16.4 -16.4,-16.4 h -31.3 v -79.1 c 0,-12.4 -9,-23.4 -21.3,-24.6 -14.1,-1.4 -26,9.7 -26,23.6 v 80.1 H 95.2 v -79.1 c 0,-12.4 -9,-23.4 -21.4,-24.6 -14.1,-1.3 -26,9.7 -26,23.6 v 80.1 H 16.4 c -9.1,0 -16.4,7.3 -16.4,16.4 v 64 c 0,61.1 43.4,112 101,123.7 v 53.5 c 0,61.5 47.7,114 109.2,116.3 64.6,2.4 118,-49.4 118,-113.5 v -0.9 c 0,-34.9 28.3,-63.1 63.1,-63.1 h 73.2 c 14,-0.1 25.3,-11.4 25.3,-25.3 z"
|
||||
id="path2"
|
||||
style="fill:#c3ccdf;fill-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="g8">
|
||||
</g>
|
||||
<g
|
||||
id="g10">
|
||||
</g>
|
||||
<g
|
||||
id="g12">
|
||||
</g>
|
||||
<g
|
||||
id="g14">
|
||||
</g>
|
||||
<g
|
||||
id="g16">
|
||||
</g>
|
||||
<g
|
||||
id="g18">
|
||||
</g>
|
||||
<g
|
||||
id="g20">
|
||||
</g>
|
||||
<g
|
||||
id="g22">
|
||||
</g>
|
||||
<g
|
||||
id="g24">
|
||||
</g>
|
||||
<g
|
||||
id="g26">
|
||||
</g>
|
||||
<g
|
||||
id="g28">
|
||||
</g>
|
||||
<g
|
||||
id="g30">
|
||||
</g>
|
||||
<g
|
||||
id="g32">
|
||||
</g>
|
||||
<g
|
||||
id="g34">
|
||||
</g>
|
||||
<g
|
||||
id="g36">
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
27
gui/uis/windows/main_window/functions_main_window.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
#
|
||||
# BY: WANDERSON M.PIMENTA
|
||||
# PROJECT MADE WITH: Qt Designer and PySide6
|
||||
# V: 1.0.0
|
||||
#
|
||||
# This project can be used freely for all uses, as long as they maintain the
|
||||
# respective credits only in the Python scripts, any information in the visual
|
||||
# interface (GUI) can be modified without any implication.
|
||||
#
|
||||
# There are limitations on Qt licenses if you want to use your products
|
||||
# commercially, I recommend reading them on the official website:
|
||||
# https://doc.qt.io/qtforpython/licenses.html
|
||||
#
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
|
||||
# IMPORT PACKAGES AND MODULES
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
import sys
|
||||
|
||||
# IMPORT QT CORE
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
from qt_core import *
|
||||
|
||||
# FUNCTIONS
|
||||
class FunctionsMainWindow:
|
||||
pass
|
||||
@@ -38,6 +38,10 @@ from gui.widgets import *
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
from . setup_main_window import *
|
||||
|
||||
# IMPORT FUNCTIONS MAIN WINDOW
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
from . functions_main_window import *
|
||||
|
||||
# PY WINDOW
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
class UI_MainWindow(object):
|
||||
@@ -111,8 +115,8 @@ class UI_MainWindow(object):
|
||||
app_parent = self.central_widget, # For tooltip parent
|
||||
dark_one = self.themes["app_color"]["dark_one"]
|
||||
)
|
||||
self.left_menu.add_menus(self.settings["add_menus"])
|
||||
self.left_menu_layout.addWidget(self.left_menu)
|
||||
print(self.themes["app_color"]["dark_one"])
|
||||
|
||||
# ADD LEFT COLUMN
|
||||
# Add here the left column with Stacked Widgets
|
||||
|
||||
@@ -26,10 +26,14 @@ from . py_div import PyDiv
|
||||
# PY LEFT MENU
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
class PyLeftMenu(QWidget):
|
||||
clicked = Signal(str)
|
||||
released = Signal(str)
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
parent = None,
|
||||
app_parent = None,
|
||||
buttons = None,
|
||||
dark_one = "#1b1e23",
|
||||
dark_three = "#21252d",
|
||||
dark_four = "#272c36",
|
||||
@@ -45,6 +49,8 @@ class PyLeftMenu(QWidget):
|
||||
maximum_width = 240,
|
||||
icon_path = "gui/images/svg_icons/icon_menu.svg",
|
||||
icon_path_close = "gui/images/svg_icons/icon_menu_close.svg",
|
||||
toggle_text = "Hide Menu",
|
||||
toggle_tooltip = "Expand/Retract menu"
|
||||
):
|
||||
super(PyLeftMenu, self).__init__()
|
||||
|
||||
@@ -74,41 +80,73 @@ class PyLeftMenu(QWidget):
|
||||
# SET BG COLOR
|
||||
self.bg.setStyleSheet(f"background: {dark_one}; border-radius: {radius};")
|
||||
|
||||
self.button = PyLeftMenuButton(
|
||||
app_parent,
|
||||
"Add user menu",
|
||||
"Test tooltip",
|
||||
)
|
||||
self.button.clicked.connect(lambda: self.toggle_animation())
|
||||
|
||||
# TOGGLE BUTTON AND DIV MENUS
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
self.toggle_button = PyLeftMenuButton(
|
||||
app_parent,
|
||||
"Hide Menu",
|
||||
"Expand/Retract menu",
|
||||
text = toggle_text,
|
||||
tooltip_text = toggle_tooltip,
|
||||
icon_path = icon_path
|
||||
)
|
||||
self.toggle_button.clicked.connect(self.toggle_animation)
|
||||
self.div_top = PyDiv(dark_four)
|
||||
|
||||
# ADD TO TOP LAYOUT
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
self.top_layout.addWidget(self.toggle_button)
|
||||
self.top_layout.addWidget(self.div_top)
|
||||
self.top_layout.addWidget(self.button) # Apagar
|
||||
|
||||
# BUTTON WIDGETS
|
||||
# ADD TO BOTTOM LAYOUT
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
self.div_button = PyDiv(dark_four)
|
||||
self.settings_button = PyLeftMenuButton(
|
||||
app_parent,
|
||||
"Settings",
|
||||
"Open settings",
|
||||
icon_path="gui/images/svg_icons/icon_settings.svg"
|
||||
)
|
||||
self.bottom_layout.addWidget(self.div_button)
|
||||
self.bottom_layout.addWidget(self.settings_button)
|
||||
self.div_bottom = PyDiv(dark_four)
|
||||
self.div_bottom.hide()
|
||||
self.bottom_layout.addWidget(self.div_bottom)
|
||||
|
||||
# ADD BUTTONS
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
self.add_menus(buttons)
|
||||
|
||||
# ADD BUTTONS TO LEFT MENU
|
||||
# Add btns and emit signals
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def add_menus(self, parameters):
|
||||
if parameters != None:
|
||||
for parameter in parameters:
|
||||
_btn_icon = parameter['btn_icon']
|
||||
_btn_id = parameter['btn_id']
|
||||
_btn_text = parameter['btn_text']
|
||||
_btn_tooltip = parameter['btn_tooltip']
|
||||
_show_top = parameter['show_top']
|
||||
_is_active = parameter['is_active']
|
||||
|
||||
self.menu = PyLeftMenuButton(
|
||||
self._app_parent,
|
||||
text = _btn_text,
|
||||
btn_id = _btn_id,
|
||||
tooltip_text = _btn_tooltip,
|
||||
icon_path = _btn_icon,
|
||||
is_active = _is_active
|
||||
)
|
||||
self.menu.clicked.connect(self.btn_clicked)
|
||||
self.menu.released.connect(self.btn_released)
|
||||
|
||||
# ADD TO LAYOUT
|
||||
if _show_top:
|
||||
self.top_layout.addWidget(self.menu)
|
||||
else:
|
||||
self.div_bottom.show()
|
||||
self.bottom_layout.addWidget(self.menu)
|
||||
|
||||
# LEFT MENU EMIT SIGNALS
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def btn_clicked(self):
|
||||
self.clicked.emit(self.menu)
|
||||
|
||||
def btn_released(self):
|
||||
self.released.emit(self.menu)
|
||||
|
||||
# EXPAND / RETRACT LEF MENU
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def toggle_animation(self):
|
||||
if self.toggle_button._is_toggle_active:
|
||||
self.toggle_button.set_active_toggle(False)
|
||||
@@ -122,19 +160,16 @@ class PyLeftMenu(QWidget):
|
||||
if self.width() == self._minimum_width:
|
||||
self.animation.setStartValue(self.width())
|
||||
self.animation.setEndValue(self._maximum_width)
|
||||
# ACTIVE
|
||||
self.button.set_active(True)
|
||||
else:
|
||||
self.animation.setStartValue(self.width())
|
||||
self.animation.setEndValue(self._minimum_width)
|
||||
# ACTIVE
|
||||
self.button.set_active(False)
|
||||
self.animation.setEasingCurve(QEasingCurve.InOutCubic)
|
||||
self.animation.setDuration(self._duration_time)
|
||||
self.animation.start()
|
||||
|
||||
|
||||
# SET APP LAYOUT
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def setup_ui(self):
|
||||
# ADD MENU LAYOUT
|
||||
self.left_menu_layout = QVBoxLayout(self)
|
||||
|
||||
@@ -29,6 +29,7 @@ class PyLeftMenuButton(QPushButton):
|
||||
self,
|
||||
app_parent,
|
||||
text,
|
||||
btn_id = None,
|
||||
tooltip_text = "",
|
||||
margin = 4,
|
||||
dark_one = "#1b1e23",
|
||||
@@ -52,6 +53,7 @@ class PyLeftMenuButton(QPushButton):
|
||||
self.setCursor(Qt.PointingHandCursor)
|
||||
self.setMaximumHeight(50)
|
||||
self.setMinimumHeight(50)
|
||||
self.setObjectName(btn_id)
|
||||
|
||||
# APP PATH
|
||||
app_path = os.path.abspath(os.getcwd())
|
||||
@@ -171,6 +173,11 @@ class PyLeftMenuButton(QPushButton):
|
||||
self._set_icon_color = self._icon_color
|
||||
self.repaint()
|
||||
|
||||
# RETURN IF IS ACTIVE MENU
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def is_active(self):
|
||||
return self._is_active
|
||||
|
||||
# SET ACTIVE TOGGLE
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def set_active_toggle(self, is_active):
|
||||
@@ -262,6 +269,7 @@ class PyLeftMenuButton(QPushButton):
|
||||
def mouseReleaseEvent(self, event):
|
||||
if event.button() == Qt.LeftButton:
|
||||
self.change_style(QEvent.MouseButtonRelease)
|
||||
return self.released.emit()
|
||||
|
||||
# MOVE TOOLTIP
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
|
||||
33
main.py
@@ -62,10 +62,43 @@ class MainWindow(QMainWindow):
|
||||
self.hide_grips = True # Show/Hide resize grips
|
||||
SetupMainWindow.setup(self)
|
||||
|
||||
# GET SIGNALS WHEN LEFT MENU BTN IS CLICKED / RELEASED
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
self.ui.left_menu.clicked.connect(self.left_menu_btn_clicked)
|
||||
self.ui.left_menu.clicked.connect(self.left_menu_btn_released)
|
||||
|
||||
# SHOW MAIN WINDOW
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
self.show()
|
||||
|
||||
# LEFT MENU BTN IS CLICKED
|
||||
# Run function when btn is clicked
|
||||
# Check funtion by object name / btn_id
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def left_menu_btn_clicked(self):
|
||||
# GET BT CLICKED
|
||||
btn = self.ui.left_menu.sender()
|
||||
|
||||
if btn.objectName() == "btn_add_user":
|
||||
if btn.is_active():
|
||||
btn.set_active(False)
|
||||
else:
|
||||
btn.set_active(True)
|
||||
|
||||
# DEBUG
|
||||
print(f"Button {btn.objectName()}, clicked!")
|
||||
|
||||
# LEFT MENU BTN IS RELEASED
|
||||
# Run function when btn is released
|
||||
# Check funtion by object name / btn_id
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def left_menu_btn_released(self):
|
||||
# GET BT CLICKED
|
||||
btn = self.ui.left_menu.sender()
|
||||
|
||||
# DEBUG
|
||||
print(f"Button {btn.objectName()}, released!")
|
||||
|
||||
# RESIZE EVENT
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
def resizeEvent(self, event):
|
||||
|
||||
@@ -18,5 +18,63 @@
|
||||
"minimum" : 240,
|
||||
"maximum" : 240
|
||||
},
|
||||
"add_menus" : [
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_home.svg",
|
||||
"btn_id" : "btn_home",
|
||||
"btn_text" : "Home",
|
||||
"btn_tooltip" : "Home page",
|
||||
"show_top" : true,
|
||||
"is_active" : false
|
||||
},
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_widgets.svg",
|
||||
"btn_id" : "btn_widgets",
|
||||
"btn_text" : "Open Widgets",
|
||||
"btn_tooltip" : "Show custom widgets",
|
||||
"show_top" : true,
|
||||
"is_active" : false
|
||||
},
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_add_user.svg",
|
||||
"btn_id" : "btn_add_user",
|
||||
"btn_text" : "Add Users",
|
||||
"btn_tooltip" : "Add users",
|
||||
"show_top" : true,
|
||||
"is_active" : false
|
||||
},
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_file.svg",
|
||||
"btn_id" : "btn_new_file",
|
||||
"btn_text" : "New File",
|
||||
"btn_tooltip" : "Create new file",
|
||||
"show_top" : true,
|
||||
"is_active" : false
|
||||
},
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_folder_open.svg",
|
||||
"btn_id" : "btn_open_file",
|
||||
"btn_text" : "Open File",
|
||||
"btn_tooltip" : "Open file",
|
||||
"show_top" : true,
|
||||
"is_active" : false
|
||||
},
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_save.svg",
|
||||
"btn_id" : "btn_save",
|
||||
"btn_text" : "Save File",
|
||||
"btn_tooltip" : "Save file",
|
||||
"show_top" : true,
|
||||
"is_active" : false
|
||||
},
|
||||
{
|
||||
"btn_icon" : "gui/images/svg_icons/icon_settings.svg",
|
||||
"btn_id" : "btn_settings",
|
||||
"btn_text" : "Settings",
|
||||
"btn_tooltip" : "Open settings",
|
||||
"show_top" : false,
|
||||
"is_active" : false
|
||||
}
|
||||
],
|
||||
"theme_name": "default"
|
||||
}
|
||||