Add MyDock

This commit is contained in:
daleclack 2022-02-03 21:00:35 +08:00
parent ac9c9f45d3
commit f080393506
22 changed files with 851 additions and 9 deletions

View File

@ -34,12 +34,13 @@ set(RESOURCE_LIST
menubar.xml
mainmenu.xml
stack.ui
prefs_stack.ui
mydock.ui
style.css
reset.css
folder.svg
folder-images.svg
image_file.svg
prefs_stack.ui
icons/16x16/actions/finder_audio.svg
icons/16x16/actions/finder-battery.svg
icons/16x16/actions/finder-computer.svg
@ -48,7 +49,17 @@ set(RESOURCE_LIST
icons/16x16/actions/open-menu.svg
icons/16x16/actions/list-add.svg
icons/16x16/actions/list-remove.svg
icons/48x48/actions/dialog-error.png
icons/48x48/actions/file-app.png
icons/48x48/actions/file-app-running.png
icons/48x48/actions/game.png
icons/48x48/actions/game_running.png
icons/48x48/actions/gedit.png
icons/48x48/actions/gedit_running.png
icons/48x48/actions/My_GtkUI.png
icons/scalable/status/my_prefs.svg
icons/scalable/status/drawing_app.svg
icons/scalable/status/drawing_app_running.svg
icons/scalable/status/finder-find.svg
icons/scalable/status/display_prefs.svg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="128px" height="128px" viewBox="0 0 128 128" version="1.1">
<defs>
<radialGradient id="radial0" gradientUnits="userSpaceOnUse" cx="131.914749" cy="55.927143" fx="131.914749" fy="55.927143" r="160" gradientTransform="matrix(0.232034,-0.541475,-0.368794,-0.0298398,4.277749,118.958491)">
<stop offset="0" style="stop-color:rgb(92.941177%,20%,23.137255%);stop-opacity:1;"/>
<stop offset="1" style="stop-color:rgb(63.921571%,27.843139%,72.941178%);stop-opacity:1;"/>
</radialGradient>
<radialGradient id="radial1" gradientUnits="userSpaceOnUse" cx="525.587769" cy="638.591797" fx="525.587769" fy="638.591797" r="192" gradientTransform="matrix(-0.107656,-0.225172,-0.327748,0.258343,373.879735,30.205086)">
<stop offset="0" style="stop-color:rgb(10.980392%,44.313726%,84.705883%);stop-opacity:1;"/>
<stop offset="1" style="stop-color:rgb(20.784314%,51.764709%,89.411765%);stop-opacity:0.00829876;"/>
</radialGradient>
<clipPath id="clip1">
<path d="M 7 46 L 57 46 L 57 93 L 7 93 Z M 7 46 "/>
</clipPath>
<clipPath id="clip2">
<path d="M 32.25 46.957031 C 19.6875 46.96875 9.085938 56.636719 7.503906 69.53125 C 9.0625 82.445312 19.667969 92.144531 32.25 92.160156 C 44.816406 92.148438 55.414062 82.480469 57 69.585938 C 55.441406 56.671875 44.835938 46.972656 32.25 46.957031 Z M 32.25 46.957031 "/>
</clipPath>
<radialGradient id="radial2" gradientUnits="userSpaceOnUse" cx="131.914749" cy="55.927143" fx="131.914749" fy="55.927143" r="160" gradientTransform="matrix(0.485163,-1.148584,-0.771115,-0.0632965,-47.124961,203.988569)">
<stop offset="0" style="stop-color:rgb(92.941177%,20%,23.137255%);stop-opacity:1;"/>
<stop offset="1" style="stop-color:rgb(63.921571%,27.843139%,72.941178%);stop-opacity:1;"/>
</radialGradient>
<radialGradient id="radial3" gradientUnits="userSpaceOnUse" cx="525.587769" cy="638.591797" fx="525.587769" fy="638.591797" r="192" gradientTransform="matrix(-0.225099,-0.477638,-0.685291,0.548001,725.67923,15.723794)">
<stop offset="0" style="stop-color:rgb(10.980392%,44.313726%,84.705883%);stop-opacity:1;"/>
<stop offset="1" style="stop-color:rgb(20.784314%,51.764709%,89.411765%);stop-opacity:0.00829876;"/>
</radialGradient>
<linearGradient id="linear0" gradientUnits="userSpaceOnUse" x1="22" y1="37" x2="62" y2="37" gradientTransform="matrix(1.4,0,0,1.4,-26.799973,2.491745)">
<stop offset="0" style="stop-color:rgb(58.039218%,57.647061%,56.470591%);stop-opacity:1;"/>
<stop offset="0.0908155" style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"/>
<stop offset="0.336093" style="stop-color:rgb(60.392159%,60.000002%,58.823532%);stop-opacity:1;"/>
<stop offset="0.844326" style="stop-color:rgb(76.47059%,75.294119%,72.941178%);stop-opacity:1;"/>
<stop offset="0.930505" style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"/>
<stop offset="1" style="stop-color:rgb(75.294119%,74.901962%,73.725492%);stop-opacity:1;"/>
</linearGradient>
<radialGradient id="radial4" gradientUnits="userSpaceOnUse" cx="-172.560638" cy="28.569126" fx="-172.560638" fy="28.569126" r="15.85742" gradientTransform="matrix(1.560712,0,0,1.4252,300.693664,13.349996)">
<stop offset="0" style="stop-color:rgb(100%,100%,100%);stop-opacity:0.358268;"/>
<stop offset="1" style="stop-color:rgb(100%,100%,100%);stop-opacity:0.0944882;"/>
</radialGradient>
<filter id="alpha" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
<feColorMatrix type="matrix" in="SourceGraphic" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
</filter>
<mask id="mask0">
<g filter="url(#alpha)">
<rect x="0" y="0" width="128" height="128" style="fill:rgb(0%,0%,0%);fill-opacity:0.1;stroke:none;"/>
</g>
</mask>
<clipPath id="clip3">
<rect x="0" y="0" width="192" height="152"/>
</clipPath>
<g id="surface382" clip-path="url(#clip3)">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(27.058825%,21.176471%,21.568628%);fill-opacity:1;" d="M 40 59.957031 C 26.191406 59.957031 15 71.152344 15 84.957031 C 15.011719 85.996094 15.085938 86.777344 15.222656 87.804688 C 15.222656 75.957031 27.421875 65.96875 40 65.957031 C 52.597656 65.972656 64.777344 75.957031 64.777344 87.859375 C 64.917969 86.816406 64.992188 86.011719 65 84.957031 C 65 71.152344 53.808594 59.957031 40 59.957031 Z M 40 59.957031 "/>
</g>
<radialGradient id="radial5" gradientUnits="userSpaceOnUse" cx="40" cy="227" fx="40" fy="227" r="28" gradientTransform="matrix(0.575553,0,0.0000000160551,1.540703,8.977913,-280.78108)">
<stop offset="0" style="stop-color:rgb(100%,100%,100%);stop-opacity:1;"/>
<stop offset="0.744626" style="stop-color:rgb(98.039216%,98.039216%,98.039216%);stop-opacity:1;"/>
<stop offset="1" style="stop-color:rgb(87.450981%,87.450981%,87.450981%);stop-opacity:1;"/>
</radialGradient>
</defs>
<g id="surface373">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(96.470588%,96.078432%,95.686275%);fill-opacity:1;" d="M 20 11.957031 L 108 11.957031 C 112.417969 11.957031 116 15.539062 116 19.957031 L 116 108 C 116 112.417969 112.417969 116 108 116 L 20 116 C 15.582031 116 12 112.417969 12 108 L 12 19.957031 C 12 15.539062 15.582031 11.957031 20 11.957031 Z M 20 11.957031 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:url(#radial0);" d="M 20 85.957031 L 108 85.957031 L 108 19.957031 L 20 19.957031 Z M 20 85.957031 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:url(#radial1);" d="M 20 85.957031 L 108 85.957031 L 108 19.957031 L 20 19.957031 Z M 20 85.957031 "/>
<g clip-path="url(#clip1)" clip-rule="nonzero">
<g clip-path="url(#clip2)" clip-rule="nonzero">
<rect x="0" y="0" width="128" height="128" style="fill:url(#radial2);stroke:none;"/>
<rect x="0" y="0" width="128" height="128" style="fill:url(#radial3);stroke:none;"/>
</g>
</g>
<path style=" stroke:none;fill-rule:nonzero;fill:url(#linear0);" d="M 31.902344 42.054688 C 17.542969 42.054688 5.902344 53.695312 5.902344 68.054688 C 5.910156 70.128906 6.167969 68.191406 6.667969 70.203125 C 9.355469 58.371094 19.867188 49.96875 32 49.957031 C 43.980469 49.972656 54.402344 58.171875 57.234375 69.8125 C 57.671875 67.925781 57.894531 69.992188 57.902344 68.054688 C 57.902344 53.695312 46.261719 42.054688 31.902344 42.054688 Z M 4 65.957031 L 4 73.957031 C 4 89.421875 16.535156 101.957031 32 101.957031 C 47.464844 101.957031 60 89.421875 60 73.957031 L 60 65.957031 C 60 73.109375 57.316406 79.03125 52.90625 83.335938 C 48.019531 90.0625 40.214844 94.046875 31.902344 94.054688 C 23.292969 94.046875 15.25 89.777344 10.417969 82.652344 C 6.410156 78.414062 4 72.734375 4 65.957031 Z M 4 65.957031 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:url(#radial4);" d="M 32.25 46.957031 C 19.6875 46.96875 9.085938 56.636719 7.503906 69.53125 C 9.0625 82.445312 19.667969 92.144531 32.25 92.160156 C 44.816406 92.148438 55.414062 82.480469 57 69.585938 C 55.441406 56.671875 44.835938 46.972656 32.25 46.957031 Z M 32.25 46.957031 "/>
<use xlink:href="#surface382" transform="matrix(1,0,0,1,-8,-16)" mask="url(#mask0)"/>
<path style=" stroke:none;fill-rule:nonzero;fill:url(#radial5);" d="M 32 40.957031 C 16.558594 40.957031 4 53.519531 4 68.957031 C 4 84.398438 16.558594 96.957031 32 96.957031 C 47.441406 96.957031 60 84.398438 60 68.957031 L 60 46.957031 C 60 43.644531 57.3125 40.957031 54 40.957031 Z M 32 44.957031 C 45.277344 44.957031 56 55.679688 56 68.957031 C 56 82.238281 45.277344 92.957031 32 92.957031 C 18.722656 92.957031 8 82.238281 8 68.957031 C 8 55.679688 18.722656 44.957031 32 44.957031 Z M 32 44.957031 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(87.058824%,86.666667%,85.490197%);fill-opacity:1;" d="M 32 39.957031 C 16.558594 39.957031 4 52.519531 4 67.957031 C 4 83.398438 16.558594 95.957031 32 95.957031 C 47.441406 95.957031 60 83.398438 60 67.957031 L 60 45.957031 C 60 42.644531 57.3125 39.957031 54 39.957031 Z M 32 43.957031 C 45.277344 43.957031 56 54.679688 56 67.957031 C 56 81.238281 45.277344 91.957031 32 91.957031 C 18.722656 91.957031 8 81.238281 8 67.957031 C 8 54.679688 18.722656 43.957031 32 43.957031 Z M 32 43.957031 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(59.215689%,58.039218%,56.862748%);fill-opacity:1;" d="M 56 45.957031 C 56 47.0625 55.105469 47.957031 54 47.957031 C 52.894531 47.957031 52 47.0625 52 45.957031 C 52 44.855469 52.894531 43.957031 54 43.957031 C 55.105469 43.957031 56 44.855469 56 45.957031 Z M 56 45.957031 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -0,0 +1,37 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' height='16' id='svg7384' xmlns:osb='http://www.openswatchbook.org/uri/2009/osb' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:svg='http://www.w3.org/2000/svg' version='1.1' width='16.180347' xmlns='http://www.w3.org/2000/svg'>
<metadata id='metadata20854'>
<rdf:RDF>
<cc:Work rdf:about=''>
<dc:title/>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
</cc:Work>
</rdf:RDF>
</metadata>
<defs id='defs7386'>
<linearGradient id='linearGradient5606' osb:paint='solid'>
<stop id='stop5608' offset='0' style='stop-color:#000000;stop-opacity:1;'/>
</linearGradient>
<linearGradient id='linearGradient4526' osb:paint='solid'>
<stop id='stop4528' offset='0' style='stop-color:#ffffff;stop-opacity:1;'/>
</linearGradient>
<linearGradient id='linearGradient3600-4' osb:paint='gradient'>
<stop id='stop3602-7' offset='0' style='stop-color:#f4f4f4;stop-opacity:1'/>
<stop id='stop3604-6' offset='1' style='stop-color:#dbdbdb;stop-opacity:1'/>
</linearGradient>
</defs>
<g id='layer9' label='status' style='display:inline' transform='translate(-772.9997,-93.000005)'/>
<g id='layer2' style='display:inline' transform='translate(-531.9995,-460)'/>
<g id='layer4' style='display:inline' transform='translate(-531.9995,-460)'/>
<g id='g1812' style='display:inline' transform='translate(-531.9995,-460)'/>
<g id='g6217' style='display:inline' transform='translate(-531.9995,-460)'/>
<g id='layer3' style='display:inline' transform='translate(-531.9995,-460)'>
<path d='m 543.5,463 c -0.82843,0 -1.5,0.67157 -1.5,1.5 0,0.82843 0.67157,1.5 1.5,1.5 0.82843,0 1.5,-0.67157 1.5,-1.5 0,-0.82843 -0.67157,-1.5 -1.5,-1.5 z' id='path4527-0-5' style='color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:5.99881363;marker:none;enable-background:accumulate'/>
<path d='m 535.99364,461 c -1.2582,0.0145 -2.17889,-0.0306 -2.93164,0.38477 -0.37637,0.20766 -0.67323,0.55938 -0.83789,0.99804 -0.16467,0.43867 -0.22461,0.95958 -0.22461,1.61719 v 4 4 c 0,0.65761 0.0599,1.17853 0.22461,1.61719 0.16467,0.43865 0.46152,0.79039 0.83789,0.99804 0.75275,0.41532 1.67345,0.3702 2.93164,0.38477 h 0.004 2.00195 4.125 2.00195 0.004 c 1.25819,-0.0146 2.17889,0.0306 2.93164,-0.38477 0.37637,-0.20765 0.67322,-0.55939 0.83789,-0.99804 0.16453,-0.43866 0.38385,-0.9792 0.22443,-1.61719 v -4 -4 c 0,-0.65761 -0.0599,-1.17852 -0.22461,-1.61719 -0.16466,-0.43866 -0.46152,-0.79038 -0.83789,-0.99804 -0.75275,-0.41537 -1.67344,-0.37027 -2.93164,-0.38477 h -0.004 -2.00186 -4.125 -2.00195 z m 2.00586,1 h 4.125 c 2,0 3.48446,-0.0156 4.22656,0.22461 0.98348,0.44721 0.77344,1.77539 0.77344,2.77539 -8.5e-4,2.12317 -0.0362,4.67696 -0.125,7 h -4.875 -4.125 -4.875 c -0.0888,-2.32304 -0.12415,-4.87683 -0.125,-7 0,-1 -0.21004,-2.32818 0.77344,-2.77539 C 534.51513,461.98438 535.9995,462 537.9995,462 Z' id='rect4520-6-6' style='color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.99920893;marker:none;enable-background:accumulate'/>
<path d='m 538,465.5 -3,5.5 H 537.71817 543 l -2.5,-4.5 -1,1.5 z' id='path4156-2-2' style='color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:5.99881363;marker:none;enable-background:accumulate'/>
</g>
<g id='g1833' style='display:inline' transform='translate(-531.9995,-460)'/>
<g id='layer1' style='display:inline' transform='translate(-531.9995,-460)'/>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,36 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' height='16' id='svg7384' xmlns:osb='http://www.openswatchbook.org/uri/2009/osb' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:svg='http://www.w3.org/2000/svg' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
<metadata id='metadata20854'>
<rdf:RDF>
<cc:Work rdf:about=''>
<dc:title/>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
</cc:Work>
</rdf:RDF>
</metadata>
<defs id='defs7386'>
<linearGradient id='linearGradient5606' osb:paint='solid'>
<stop id='stop5608' offset='0' style='stop-color:#000000;stop-opacity:1;'/>
</linearGradient>
<linearGradient id='linearGradient4526' osb:paint='solid'>
<stop id='stop4528' offset='0' style='stop-color:#ffffff;stop-opacity:1;'/>
</linearGradient>
<linearGradient id='linearGradient3600-4' osb:paint='gradient'>
<stop id='stop3602-7' offset='0' style='stop-color:#f4f4f4;stop-opacity:1'/>
<stop id='stop3604-6' offset='1' style='stop-color:#dbdbdb;stop-opacity:1'/>
</linearGradient>
</defs>
<g id='layer9' label='status' style='display:inline' transform='translate(-333.00017,47)'/>
<g id='layer2' style='display:inline' transform='translate(-91.999969,-320)'/>
<g id='layer4' style='display:inline' transform='translate(-91.999969,-320)'/>
<g id='g1812' style='display:inline' transform='translate(-91.999969,-320)'/>
<g id='g6217' style='display:inline' transform='translate(-91.999969,-320)'/>
<g id='layer3' style='display:inline' transform='translate(-91.999969,-320)'/>
<g id='g1833' style='display:inline' transform='translate(-91.999969,-320)'/>
<g id='layer1' style='display:inline' transform='translate(-91.999969,-320)'>
<path d='m 92,321 v 14 h 11 v -5 h -1 v 4 h -9 v -12 h 9 v 5 h 1 v -6 z' id='rect3104' style='opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1'/>
<path d='m 107.08398,328 h -8.00195 v -2 c -0.76042,0.34766 -1.53409,0.73627 -2.32227,1.16602 -0.78078,0.43079 -1.53476,0.8757 -2.25976,1.33398 0.725,0.44911 1.47898,0.88953 2.25976,1.32031 0.78862,0.42999 1.56338,0.82276 2.32422,1.17969 v -2 h 8 z' id='path2614-6' 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:none;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-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;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.99999976;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -0,0 +1,37 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' height='16' id='svg7384' xmlns:osb='http://www.openswatchbook.org/uri/2009/osb' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:svg='http://www.w3.org/2000/svg' version='1.1' width='16.01465' xmlns='http://www.w3.org/2000/svg'>
<metadata id='metadata20854'>
<rdf:RDF>
<cc:Work rdf:about=''>
<dc:title/>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
</cc:Work>
</rdf:RDF>
</metadata>
<defs id='defs7386'>
<linearGradient id='linearGradient5606' osb:paint='solid'>
<stop id='stop5608' offset='0' style='stop-color:#000000;stop-opacity:1;'/>
</linearGradient>
<linearGradient id='linearGradient4526' osb:paint='solid'>
<stop id='stop4528' offset='0' style='stop-color:#ffffff;stop-opacity:1;'/>
</linearGradient>
<linearGradient id='linearGradient3600-4' osb:paint='gradient'>
<stop id='stop3602-7' offset='0' style='stop-color:#f4f4f4;stop-opacity:1'/>
<stop id='stop3604-6' offset='1' style='stop-color:#dbdbdb;stop-opacity:1'/>
</linearGradient>
</defs>
<g id='layer9' label='status' style='display:inline' transform='translate(-893.0002,-93)'/>
<g id='layer2' style='display:inline' transform='translate(-652,-460)'/>
<g id='layer4' style='display:inline' transform='translate(-652,-460)'/>
<g id='g1812' style='display:inline' transform='translate(-652,-460)'/>
<g id='g6217' style='display:inline' transform='translate(-652,-460)'/>
<g id='layer3' style='display:inline' transform='translate(-652,-460)'>
<path d='m 660.18165,461.00391 c -2.48304,-0.0657 -4.92247,1.19408 -6.24805,3.49218 -1.9281,3.3427 -0.77551,7.62899 2.57032,9.5625 3.34581,1.93352 7.63439,0.79191 9.5625,-2.55078 1.9281,-3.34269 0.77551,-7.63289 -2.57032,-9.5664 -1.04556,-0.60423 -2.1858,-0.90763 -3.31445,-0.9375 z M 660.00001,462 a 6,6 0 0 1 6,6 6,6 0 0 1 -6,6 6,6 0 0 1 -6,-6 6,6 0 0 1 6,-6 z' id='path6626' 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:none;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-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;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.66666687;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'/>
<path d='m 658.69016,460.122 v 1.545 c 0.86819,-0.1783 1.76406,-0.17647 2.63222,0.005 v -1.55 z m -2.75363,0.98912 -2.00544,1.70491 0.98801,1.17757 c 0.54939,-0.69591 1.23601,-1.27137 2.01736,-1.69076 z m 8.12867,0.0127 -0.99285,1.18353 c 0.0573,0.0293 0.11416,0.0595 0.17056,0.0905 0.71061,0.41285 1.33657,0.95679 1.84457,1.60287 l 1.00514,-1.19769 z m -11.60999,4.21684 -0.44056,2.59535 1.51535,0.26739 c -0.0273,-0.8866 0.12755,-1.76904 0.45509,-2.59274 z m 15.08573,0.003 -1.5228,0.26851 c 0.32999,0.82318 0.48779,1.70497 0.46365,2.59088 l 1.53286,-0.27 z m -13.68247,4.69464 -1.35149,0.78058 h -3.4e-4 l 1.33101,2.27098 1.33808,-0.77238 c -0.59006,-0.66203 -1.03836,-1.43772 -1.31723,-2.27918 z m 12.30081,0.003 c -0.13616,0.42225 -0.31536,0.82932 -0.53478,1.21481 -0.22083,0.38188 -0.48014,0.74014 -0.77388,1.0692 l 1.33883,0.77313 1.30158,-2.28811 z m -9.55687,3.47164 -0.53479,1.4688 2.47953,0.88448 0.52585,-1.44534 c -0.81119,-0.11877 -1.59279,-0.39022 -2.30338,-0.79995 -0.0563,-0.0351 -0.11203,-0.0711 -0.16721,-0.10799 z m 6.8133,0.0153 c -0.75448,0.46543 -1.59675,0.77091 -2.47468,0.89752 l 0.53031,1.45651 2.46761,-0.91651 z' id='path6628' style='color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.33333337;marker:none;enable-background:accumulate'/>
<path d='m 659.64845,463.01367 c -1.60235,0.11249 -3.12186,0.99052 -3.98242,2.48242 -1.37689,2.38706 -0.55308,5.45342 1.83593,6.83399 2.38903,1.38058 5.45319,0.56088 6.83008,-1.82617 1.37689,-2.38706 0.55308,-5.45145 -1.83594,-6.83203 -0.89588,-0.51773 -1.88625,-0.72569 -2.84765,-0.65821 z M 660.00001,464 a 4,4 0 0 1 4,4 4,4 0 0 1 -4,4 4,4 0 0 1 -4,-4 4,4 0 0 1 4,-4 z' id='path6630' 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:none;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-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;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.66666681;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'/>
</g>
<g id='g1833' style='display:inline' transform='translate(-652,-460)'/>
<g id='layer1' style='display:inline' transform='translate(-652,-460)'/>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

219
Gtkmm3_Mac/res/mydock.ui Normal file
View File

@ -0,0 +1,219 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">My_GtkUI</property>
<property name="icon_size">6</property>
</object>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">drawing_app</property>
</object>
<object class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">file-app</property>
</object>
<object class="GtkImage" id="image4">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">game</property>
</object>
<object class="GtkImage" id="image5">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">gedit</property>
</object>
<object class="GtkImage" id="image6">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">eog</property>
</object>
<object class="GtkImage" id="image7">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">my_prefs</property>
</object>
<object class="GtkBox" id="main_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="finder_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="baseline-position">top</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkBox" id="dock_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image1</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image2</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image3</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image4</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image5</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image6</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image7</property>
<property name="relief">none</property>
<property name="always-show-image">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">
</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</interface>

View File

@ -12,7 +12,10 @@ MyStack::MyStack(){
btnlogin->signal_clicked().connect(sigc::mem_fun(*this,&MyStack::btnlogin_clicked));
//Add Widget
main_page->pack_start(finder);
main_dock = MyDock::create();
main_dock->set_hexpand();
main_dock->set_vexpand();
main_page->pack_start(*main_dock);
}
void MyStack::logout(){

View File

@ -1,7 +1,7 @@
#pragma once
#include <gtkmm.h>
#include "MyFinder.hh"
#include "MyDock.hh"
class MyStack
{
@ -18,8 +18,8 @@ private:
Gtk::Box *login_page, *main_page;
Gtk::Button *btnlogin;
//Finder
MyFinder finder;
// Dock Widget
MyDock *main_dock;
// Signal Handlers
void btnlogin_clicked();

View File

@ -1,8 +1,20 @@
#include "MyDock.hh"
MyDock::MyDock(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> ref_Glade){
MyDock::MyDock(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> ref_Glade)
:Gtk::Box(cobject),
ref_builder(ref_Glade)
{
ref_builder->get_widget("finder_box",finder_box);
finder_box->pack_start(finder);
show_all_children();
}
MyDock * MyDock::create(){
MyDock * dock;
// Get Widget
auto builder = Gtk::Builder::create_from_resource("/org/gtk/daleclack/mydock.ui");
builder->get_widget_derived("main_box",dock);
return dock;
}

View File

@ -1,12 +1,20 @@
#pragma once
#include <gtkmm.h>
#include "MyFinder.hh"
class MyDock : public Gtk::Box
{
public:
MyDock(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> ref_Glade);
MyDock * create();
static MyDock * create();
private:
// Child widgets
Gtk::Box * finder_box;
//Finder
MyFinder finder;
Gtk::Window * parent_win;
Glib::RefPtr<Gtk::Builder> ref_builder;
};