added Hyprland support

parent d7358b0a
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/ru/ximperlinux/Welcome/">
<file compressed="true" alias="style.css">resources/style.css</file>
<file compressed="true" preprocess="xml-stripblanks" alias="ui/image-page.ui">resources/ui/image-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="ui/paginator.ui">resources/ui/paginator.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="ui/window.ui">resources/ui/window.ui</file>
<file compressed="true" alias="welcome.svg">resources/assets/welcome.svg</file>
<file compressed="true" alias="overview.svg">resources/assets/overview.svg</file>
<file compressed="true" alias="search.svg">resources/assets/search.svg</file>
<file compressed="true" alias="blank.svg">resources/assets/blank.svg</file>
<file compressed="true" alias="workspaces.svg">resources/assets/workspaces.svg</file>
<file compressed="true" alias="ready-to-go.svg">resources/assets/ready-to-go.svg</file>
<file compressed="true" alias="hand-fg.svg">resources/assets/hand-fg.svg</file>
<file compressed="true" alias="updown-bg.svg">resources/assets/updown-bg.svg</file>
<file compressed="true" alias="leftright-bg.svg">resources/assets/leftright-bg.svg</file>
</gresource>
<gresource prefix="/ru/ximperlinux/Welcome/icons/scalable/actions">
<gresource prefix="/ru/ximperlinux/Welcome">
<file compressed="true" alias="style.css">resources/style.css</file>
</gresource>
<gresource prefix="/ru/ximperlinux/Welcome/ui">
<file compressed="true" preprocess="xml-stripblanks" alias="image-page.ui">resources/ui/image-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="paginator.ui">resources/ui/paginator.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="window-gnome.ui">resources/ui/window-gnome.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="window-hyprland.ui">resources/ui/window-hyprland.ui</file>
</gresource>
<gresource prefix="/ru/ximperlinux/Welcome/gnome">
<file compressed="true" alias="welcome.svg">resources/assets/gnome/welcome.svg</file>
<file compressed="true" alias="overview.svg">resources/assets/gnome/overview.svg</file>
<file compressed="true" alias="search.svg">resources/assets/gnome/search.svg</file>
<file compressed="true" alias="blank.svg">resources/assets/gnome/blank.svg</file>
<file compressed="true" alias="workspaces.svg">resources/assets/gnome/workspaces.svg</file>
<file compressed="true" alias="ready-to-go.svg">resources/assets/gnome/ready-to-go.svg</file>
<file compressed="true" alias="hand-fg.svg">resources/assets/gnome/hand-fg.svg</file>
<file compressed="true" alias="updown-bg.svg">resources/assets/gnome/updown-bg.svg</file>
<file compressed="true" alias="leftright-bg.svg">resources/assets/gnome/leftright-bg.svg</file>
</gresource>
<gresource prefix="/ru/ximperlinux/Welcome/hyprland">
<file compressed="true" alias="welcome.svg">resources/assets/hyprland/welcome.svg</file>
<file compressed="true" alias="overview.svg">resources/assets/hyprland/overview.svg</file>
<file compressed="true" alias="search.svg">resources/assets/hyprland/search.svg</file>
<file compressed="true" alias="blank.svg">resources/assets/hyprland/blank.svg</file>
<file compressed="true" alias="workspaces.svg">resources/assets/hyprland/workspaces.svg</file>
<file compressed="true" alias="ready-to-go.svg">resources/assets/hyprland/ready-to-go.svg</file>
<file compressed="true" alias="hand-fg.svg">resources/assets/hyprland/hand-fg.svg</file>
<file compressed="true" alias="updown-bg.svg">resources/assets/hyprland/updown-bg.svg</file>
<file compressed="true" alias="leftright-bg.svg">resources/assets/hyprland/leftright-bg.svg</file>
</gresource>
<gresource prefix="/ru/ximperlinux/Welcome/icons/scalable/actions">
<file compressed="true" alias="prev-large-symbolic.svg">resources/left-large-symbolic.svg</file>
<file compressed="true" alias="prev-large-symbolic-rtl.svg">resources/right-large-symbolic.svg</file>
<file compressed="true" alias="next-large-symbolic.svg">resources/right-large-symbolic.svg</file>
......
<svg width="600" height="300" version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg"><defs id="defs5677"><clipPath clipPathUnits="userSpaceOnUse" id="a"><rect y="-101.694" x="508.542" height="80.287" width="271.154" rx="0" ry="0" fill="#1a5fb4" stroke-width="2.793" stroke-linecap="round" id="rect5674"/></clipPath></defs></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="300"><g transform="translate(25 15)"><circle style="opacity:.5;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:2.89323;stroke-linecap:round;stroke-linejoin:round" cx="315" cy="105" r="35"/><circle style="opacity:.5;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:2.89323;stroke-linecap:round;stroke-linejoin:round" cx="245" cy="105" r="35"/><circle style="opacity:.5;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:2.89323;stroke-linecap:round;stroke-linejoin:round" cx="280" cy="95" r="35"/></g><path style="opacity:.05;fill:#000;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M440 104a15 15 45 0 1 15 15v72a3 3 45 0 0 3 3h1a3 3 135 0 0 3-3v-8a14 14 135 0 1 14-14 14 14 45 0 1 14 14v8a3 3 45 0 0 3 3h1a3 3 135 0 0 3-3v-8a14 14 135 0 1 14-14 14 14 45 0 1 14 14v8a3 3 45 0 0 3 3h1a3 3 135 0 0 3-3v-1a14 14 135 0 1 14-14 14 14 45 0 1 14 14v74a30 30 135 0 1-30 30h-80a48.284 48.284 22.5 0 1-34.142-14.142l-47.511-47.511a13.61 13.61 85.935 0 1-1.264-17.79l.834-1.113a12.198 12.198 170.931 0 1 16.754-2.675l28.04 19.63A7.81 7.81 152.496 0 0 425 224V119a15 15 135 0 1 15-15z" transform="translate(-170 5)"/><path style="fill:#f6f5f4;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M440 100a15 15 45 0 1 15 15v72a3 3 45 0 0 3 3h1a3 3 135 0 0 3-3v-83a14 14 135 0 1 14-14 14 14 45 0 1 14 14v83a3 3 45 0 0 3 3h1a3 3 135 0 0 3-3v-73a14 14 135 0 1 14-14 14 14 45 0 1 14 14v73a3 3 45 0 0 3 3h1a3 3 135 0 0 3-3v-1a14 14 135 0 1 14-14 14 14 45 0 1 14 14v74a30 30 135 0 1-30 30h-80a48.284 48.284 22.5 0 1-34.142-14.142l-45.71-45.71a15.812 15.812 87.226 0 1-1.029-21.229l.042-.051a14.582 14.582 173.995 0 1 20.344-2.14l23.762 18.926A7.229 7.229 154.27 0 0 425 220V115a15 15 135 0 1 15-15z" transform="translate(-170 5)"/><path style="fill:#deddda;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M366.258 214.491c-1.993 5.044-.093 11.674 3.742 15.509l45.857 45.857A48.284 48.284 0 0 0 450 290h80c16.569 0 30-13.431 30-30v-10c0 16.569-13.431 30-30 30h-80a48.284 48.284 0 0 1-34.143-14.143l-46.564-46.74a13.61 13.61 0 0 1-3.035-4.626z" transform="translate(-170 5)"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="300"><defs><linearGradient id="a"><stop style="stop-color:#1c71d8;stop-opacity:1" offset="0"/><stop style="stop-color:#33d17a;stop-opacity:1" offset="1"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="114.955" y1="150.56" x2="497.629" y2="150.56" gradientUnits="userSpaceOnUse"/></defs><path d="M343.412 6.958 264.768 85.6a16 16 0 0 1-22.627 0l-41.083-41.083a16 16 0 0 0-22.628 0l-58.789 58.79a16 16 90 0 0 0 22.627l41.083 41.083a16 16 90 0 1 0 22.627l-23.096 23.097a16 16 90 0 0 0 22.627l58.789 58.79a16 16 180 0 0 22.627 0L343.27 169.932a16 16 180 0 1 22.627 0l45.625 45.625a16 16 180 0 0 22.627 0l58.79-58.79a16.015 16.015 90.027 0 0 .01-22.637L366.028 6.969a15.985 15.985.027 0 0-22.616-.011z" fill="#e66100" style="fill-opacity:1;fill:url(#b)"/><rect width="324.179" height="195.739" x="145.536" y="48.014" rx="26.854" ry="26.854" fill="#c0bfbc"/><path d="m169.965 153.585-8.563-8.563 8.563-8.563m-8.563 8.563h17.126M444.061 153.585l8.563-8.563-8.563-8.563m8.563 8.563h-17.126" stroke-width="5.138" fill="none" stroke="#fff" stroke-linecap="round"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="300" width="600"><defs><linearGradient xlink:href="#a" id="k" x1="650.637" y1="826.854" x2="650.637" y2="1043.787" gradientUnits="userSpaceOnUse"/><linearGradient id="c"><stop offset="0" stop-color="#051224"/><stop offset="1" stop-color="#3584e4"/></linearGradient><linearGradient id="e"><stop offset="0" stop-color="#ed686f"/><stop offset=".911" stop-color="#a51d2d"/><stop offset="1" stop-color="#e01b24"/></linearGradient><linearGradient id="h"><stop offset="0" stop-color="#ed686f"/><stop offset=".865" stop-color="#a51d2d"/><stop offset="1" stop-color="#e01b24"/></linearGradient><linearGradient id="g"><stop offset="0" stop-color="#fff"/><stop offset=".519" stop-color="#fff"/><stop offset=".734" stop-color="#cfcfcf"/><stop offset="1" stop-color="#dcdcdc"/></linearGradient><linearGradient id="b"><stop offset="0" stop-color="#eef4fc"/><stop offset="1" stop-color="#fff"/></linearGradient><linearGradient id="f"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="d"><stop offset="0" stop-color="#e5a50a"/><stop offset="1" stop-color="#e5a50a" stop-opacity="0"/></linearGradient><linearGradient id="a"><stop offset="0" stop-color="#e01b24"/><stop offset="1" stop-color="#e01b24" stop-opacity="0"/></linearGradient><linearGradient xlink:href="#b" id="n" x1="85" y1="107.162" x2="85" y2="86" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.47115 0 0 1.47115 359.463 38.765)"/><linearGradient xlink:href="#c" id="i" x1="342.914" y1="17.349" x2="342.914" y2="201.142" gradientUnits="userSpaceOnUse" gradientTransform="translate(23.343 69.452) scale(.76809)"/><linearGradient xlink:href="#b" id="t" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.47115 0 0 1.47115 359.463 38.765)" x1="169.57" y1="66.83" x2="169.57" y2="39.64"/><radialGradient xlink:href="#d" id="l" gradientUnits="userSpaceOnUse" gradientTransform="translate(-960.587 -1242.494) scale(2.47624)" cx="650.7" cy="832.23" fx="650.7" fy="832.23" r="41.389"/><radialGradient r="14.583" fy="49.777" fx="40.152" cy="49.777" cx="40.152" gradientTransform="matrix(.87016 4.27869 -2.56693 .52204 148.394 -163.306)" gradientUnits="userSpaceOnUse" id="r" xlink:href="#e"/><radialGradient xlink:href="#f" id="m" gradientUnits="userSpaceOnUse" gradientTransform="translate(-1090.057 -1370.83) scale(2.6752)" cx="650.7" cy="818.305" fx="650.7" fy="818.305" r="22.805"/><radialGradient r="33.5" fy="48.406" fx="79.091" cy="48.406" cx="79.091" gradientTransform="matrix(.00476 1.62228 -1.43419 .00422 141.702 -82.047)" gradientUnits="userSpaceOnUse" id="p" xlink:href="#g"/><radialGradient r="12" fy="54.102" fx="71.474" cy="54.102" cx="71.474" gradientTransform="matrix(4.50607 0 0 4.76661 -259.306 -59.706)" gradientUnits="userSpaceOnUse" id="q" xlink:href="#h"/><radialGradient r="14.583" fy="49.777" fx="40.152" cy="49.777" cx="40.152" gradientTransform="matrix(.87016 4.27869 -2.56693 .52204 148.394 -163.306)" gradientUnits="userSpaceOnUse" id="s" xlink:href="#e"/><clipPath clipPathUnits="userSpaceOnUse" id="j"><path d="M704.278 841.11c0 69.083-53.578 165.635-53.578 165.635s-53.578-96.393-53.578-165.635c0-29.59 23.988-53.578 53.578-53.578 29.59 0 53.578 23.988 53.578 53.578z" fill="url(#linearGradient1149)" stroke-width="2.589" stroke-linecap="round"/></clipPath><clipPath id="o" clipPathUnits="userSpaceOnUse"><path d="M65 177c-18.502 0-33.5 14.998-33.5 33.5.008 7.371 4.131 15.807 11.388 23.526l12.617 13.171H75.02l12.137-13.245c6.636-7.059 11.33-16.117 11.344-23.452 0-18.502-14.998-33.5-33.5-33.5z" style="marker:none" fill="#fff" stroke-width="2"/></clipPath></defs><path style="marker:none" d="M89.375 299.388c-17.366 0-31.054-13.688-31.054-31.054 0-17.364 13.69-31.054 31.053-31.054h35.56a9.321 9.321 0 0 0 0-18.642c-17.366 0-31.055-13.686-31.055-31.05 0-13.151 7.957-24.142 19.268-28.755 9.46-3.866 6.699-17.94-3.521-17.95H54.439c-17.364 0-31.053-13.687-31.053-31.052 0-17.366 13.689-31.054 31.053-31.054h150.5c9.737-.534 12.217-14.132 2.94-17.924-11.31-4.613-19.267-15.602-19.267-28.754 0-17.366 13.688-31.055 31.053-31.055h324.274c17.365 0 31.053 13.689 31.053 31.055 0 17.364-13.688 31.052-31.053 31.052H488.75c-10.22.01-12.979 14.084-3.519 17.95 11.312 4.612 19.268 15.603 19.268 28.754 0 17.365-13.69 31.053-31.054 31.053a9.321 9.321 0 0 0 0 18.64h77.328c17.365 0 31.053 13.689 31.053 31.054s-13.688 31.053-31.053 31.053c60.54-.923-281.258-.018-281.258-.018-10.329 0-10.05 15.643.152 15.643 17.365 0 33.646 13.69 33.646 31.054 0 17.365-13.69 31.053-31.055 31.053z" fill="url(#i)"/><g transform="translate(-3.85 -280.672) scale(.5872)"><path d="M652.629 488.055a69.284 111.707 0 0 0-68.485 94.841h.088a70.298 70.298 0 0 0-.862 10.95v105.59c0 38.375 30.895 69.27 69.271 69.27h.004c38.376 0 69.271-30.895 69.271-69.27v-105.59c0-3.73-.3-7.384-.862-10.95h.068a69.284 111.707 0 0 0-68.493-94.84z" opacity=".155"/><g transform="translate(0 -44.827)" clip-path="url(#j)"><path d="M704.278 841.11c0 69.083-53.578 165.635-53.578 165.635s-53.578-96.393-53.578-165.635c0-29.59 23.987-53.578 53.578-53.578 29.59 0 53.578 23.988 53.578 53.578z" fill="url(#k)"/><circle cx="650.7" cy="818.305" r="102.488" fill="url(#l)"/><circle cx="650.7" cy="818.305" r="61.008" fill="url(#m)"/><circle cx="650.7" cy="818.305" r="21.516" fill="#fff"/></g><rect width="138.543" height="244.129" x="581.398" y="524.576" rx="69.271" ry="69.271" fill="#f6f5f4"/><circle cx="650.67" cy="646.641" r="36.824" fill="#fff"/><circle cx="650.67" cy="646.641" r="26.422" fill="#5e5c64"/><path d="M650.67 524.576c-5.594 0-11.021.674-16.225 1.914 30.496 7.268 53.05 34.574 53.05 67.358v105.586c0 32.783-22.554 60.089-53.05 67.357a69.873 69.873 0 0 0 16.225 1.914c38.376 0 69.271-30.895 69.271-69.271V593.848c0-38.377-30.895-69.272-69.271-69.272z" fill="#c0bfbc" fill-opacity=".17"/><path d="M651.327 487.128a69.962 112.8 0 0 0-69.159 95.769h138.32a69.962 112.8 0 0 0-69.161-95.769z" fill="#ed333b"/><path d="m591.756 715.027 9.042 23.13a36.18 36.18 0 0 1-17.129 45.336l-30.066 15.488a15.13 15.13 0 0 1-22.06-13.451v-12.627a36.744 36.744 0 0 1 12.12-27.273l36.84-33.26a7.027 7.027 0 0 1 11.253 2.657z" fill-opacity=".094"/><path d="m591.756 710.923 9.042 23.13a36.18 36.18 110.698 0 1-17.129 45.336l-30.066 15.488a15.13 15.13 31.373 0 1-22.06-13.451v-12.627a36.744 36.744 113.961 0 1 12.12-27.273l36.84-33.26a7.027 7.027 13.286 0 1 11.253 2.657z" fill="#b0afac"/><path d="m710.116 715.027-9.042 23.13a36.18 36.18 0 0 0 17.129 45.336l30.067 15.488a15.13 15.13 0 0 0 22.06-13.451v-12.627a36.744 36.744 0 0 0-12.122-27.273l-36.839-33.26a7.027 7.027 0 0 0-11.253 2.657z" fill-opacity=".094"/><rect width="10.32" height="97.168" x="645.51" y="714.053" rx="5.16" ry="5.16" fill="#deddda"/><path d="M664.222 489.584a79.455 165.02 0 0 1 23.114 93.312h33.962a69.284 111.707 0 0 0-57.076-93.312z" fill="#e01b24"/><path d="m710.116 710.923-9.042 23.13a36.18 36.18 69.302 0 0 17.129 45.336l30.067 15.488a15.13 15.13 148.627 0 0 22.06-13.451v-12.627a36.744 36.744 66.039 0 0-12.122-27.273l-36.839-33.26a7.027 7.027 166.714 0 0-11.253 2.657z" fill="#fff"/></g><path d="M239.633 142.502a29.428 29.428 0 0 0-26.713 17.164 22.072 22.072 0 0 0-10.065-2.454c-11.609.017-21.22 9.017-21.993 20.6h-.075c-8.125 0-14.71 6.586-14.71 14.71 0 8.126 6.585 14.712 14.71 14.712h82.384a17.654 17.654 0 0 0 17.654-17.654 17.654 17.654 0 0 0-11.82-16.642 30.938 30.938 0 0 0 .05-1.011c0-16.25-13.172-29.423-29.422-29.423z" fill="url(#n)"/><g transform="matrix(1.0901 0 0 1.02483 98.856 -8.457)" clip-path="url(#o)"><path transform="translate(-8 156)" d="M73 21c-18.502 0-33.5 14.998-33.5 33.5.008 7.371 3.5 14.422 6.94 20.379L58 98h30l11.605-23.21c3.395-5.88 6.88-12.955 6.895-20.29C106.5 35.998 91.502 21 73 21z" style="marker:none" fill="url(#p)"/><path d="M64 177s-18.332 12.132-18.332 30.989C45.668 222.56 61.842 254 61.842 254H67s1.333-31.44 1.333-46.011C68.333 189.132 64 177 64 177z" fill="url(#q)"/><path transform="translate(-8 156)" d="M71.983 21.106c-8.207.147-16.328 3.285-22.5 8.695-6.174 5.409-10.35 13.047-11.574 21.163-1.24 8.225.567 16.874 4.995 23.915L61.902 98h6.432L55.002 81.27c-4.3-5.395-8.472-11.07-10.596-17.634-2.123-6.564-2.166-13.8.003-20.348A32.824 32.824 0 0 1 54.925 28.13a32.824 32.824 0 0 1 17.058-7.025z" fill="url(#r)"/><path transform="matrix(-1 0 0 1 137.16 155.823)" d="M73.003 21.303c-7.709-1.547-15.97-.154-22.746 3.835-6.776 3.989-12.002 10.537-14.39 18.029a32.484 32.484 0 0 0-.757 16.805 32.484 32.484 0 0 0 7.794 14.907L54.11 98h13.383L54.16 74.356c-2.868-5.087-5.557-10.406-6.427-16.181-.87-5.775.036-11.771 2.374-17.123 4.173-9.55 12.836-17.022 22.895-19.748z" fill="url(#s)"/></g><path style="marker:none" d="M161.72 259.594v6.774a3.388 3.388 0 0 0 3.396 3.397h9.194c1.882 0 3.001-1.557 3.396-3.397v-6.774z" fill="#e5a50a"/><path style="marker:none" d="M161.72 258.14v6.775a3.388 3.388 0 0 0 3.396 3.396h9.194c1.882 0 3.001-1.556 3.396-3.396v-6.774z" fill="#e5a50a"/><path style="marker:none" d="M171.893 258.14v10.171h2.417c1.882 0 3.001-1.556 3.396-3.396v-6.774z" fill="#f3af0b"/><path d="M110 97.082a20 20 0 0 0-20 20 20 20 0 0 0 20 20h27.5a12.5 12.5 0 0 0 12.5-12.5 12.5 12.5 0 0 0-12.5-12.5 12.5 12.5 0 0 0-7.643 2.611A20 20 0 0 0 110 97.082z" fill="url(#t)" style="font-variation-settings:normal"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="300"><defs><linearGradient id="a"><stop style="stop-color:#9141ac;stop-opacity:1" offset="0"/><stop style="stop-color:#ed333b;stop-opacity:1" offset="1"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="260" y1="0" x2="260" y2="300" gradientUnits="userSpaceOnUse"/></defs><path d="m269.171 293.4 78.644-78.643a16 16 0 0 1 22.627 0l41.083 41.083a16 16 0 0 0 22.628 0l58.789-58.789a16 16 90 0 0 0-22.627l-41.083-41.083a16 16 90 0 1 0-22.627l23.096-23.097a16 16 90 0 0 0-22.627L416.166 6.2a16 16 180 0 0-22.627 0L269.314 130.426a16 16 180 0 1-22.627 0l-45.625-45.624a16 16 180 0 0-22.627 0l-58.79 58.789a16.015 16.015 90.027 0 0-.01 22.638l126.92 127.162a15.985 15.985.027 0 0 22.616.011z" fill="#2ec27e" style="fill-opacity:1;fill:url(#b)"/><rect width="324.179" height="195.739" x="145.536" y="48.014" rx="26.854" ry="26.854" fill="#c0bfbc"/><path d="m452.244 219.785-8.563 8.563-8.563-8.563m8.563 8.563v-17.126M452.244 74.994l-8.563-8.563-8.563 8.563m8.563-8.563v17.125" stroke-width="5.138" fill="none" stroke="#fff" stroke-linecap="round"/></svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="Window" parent="AdwApplicationWindow">
<property name="default-width">960</property>
<property name="default-height">720</property>
<property name="content">
<object class="PaginatorWidget" id="paginator">
<child>
<object class="ImagePageWidget" id="welcome_page">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/welcome.svg</property>
<property name="head" translatable="yes">Let's Begin</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/overview.svg</property>
<property name="head" translatable="yes">Get an Overview</property>
<property name="body" translatable="yes" comments="Translators: 'Windows' is referring to the operating system and should not be translated">The overview shows all your apps and windows. Press the Super (Windows) key to open it.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/search.svg</property>
<property name="head" translatable="yes">Powerful Search</property>
<property name="body" translatable="yes">To search, just start typing in the overview. You can use search to launch apps, find files, perform calculations, and more.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/workspaces.svg</property>
<property name="head" translatable="yes">Stay Organized With Workspaces</property>
<property name="body" translatable="yes">Organize your windows by moving them into different workspaces. This can be done by dragging them in the overview.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/blank.svg</property>
<property name="head" translatable="yes">Swipe Up and Down</property>
<property name="body" translatable="yes">To quickly open the overview with a touchpad, swipe up with three fingers.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/blank.svg</property>
<property name="head" translatable="yes">Swipe Left and Right</property>
<property name="body" translatable="yes">To move between workspaces, swipe three fingers horizontally.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/gnome/ready-to-go.svg</property>
<property name="head" translatable="yes">That's It!</property>
<property name="body" translatable="yes">To get more advice and tips, see the Help app.</property>
<style>
<class name="last-page" />
</style>
</object>
</child>
</object>
</property>
</template>
</interface>
......@@ -7,48 +7,48 @@
<object class="PaginatorWidget" id="paginator">
<child>
<object class="ImagePageWidget" id="welcome_page">
<property name="resource-uri">/ru/ximperlinux/Welcome/welcome.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/welcome.svg</property>
<property name="head" translatable="yes">Let's Begin</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/overview.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/overview.svg</property>
<property name="head" translatable="yes">Get an Overview</property>
<property name="body" translatable="yes" comments="Translators: 'Windows' is referring to the operating system and should not be translated">The overview shows all your apps and windows. Press the Super (Windows) key to open it.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/search.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/search.svg</property>
<property name="head" translatable="yes">Powerful Search</property>
<property name="body" translatable="yes">To search, just start typing in the overview. You can use search to launch apps, find files, perform calculations, and more.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/workspaces.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/workspaces.svg</property>
<property name="head" translatable="yes">Stay Organized With Workspaces</property>
<property name="body" translatable="yes">Organize your windows by moving them into different workspaces. This can be done by dragging them in the overview.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/blank.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/blank.svg</property>
<property name="head" translatable="yes">Swipe Up and Down</property>
<property name="body" translatable="yes">To quickly open the overview with a touchpad, swipe up with three fingers.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/blank.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/blank.svg</property>
<property name="head" translatable="yes">Swipe Left and Right</property>
<property name="body" translatable="yes">To move between workspaces, swipe three fingers horizontally.</property>
</object>
</child>
<child>
<object class="ImagePageWidget">
<property name="resource-uri">/ru/ximperlinux/Welcome/ready-to-go.svg</property>
<property name="resource-uri">/ru/ximperlinux/Welcome/hyprland/ready-to-go.svg</property>
<property name="head" translatable="yes">That's It!</property>
<property name="body" translatable="yes">To get more advice and tips, see the Help app.</property>
<style>
......
......@@ -8,8 +8,16 @@ mod imp {
use super::*;
use crate::{config, widgets::ImagePageWidget};
fn get_ui_resource() -> &'static str {
match std::env::var("XDG_CURRENT_DESKTOP").as_deref() {
Ok("GNOME") => "/ru/ximperlinux/Welcome/ui/window-gnome.ui",
Ok("Hyprland") => "/ru/ximperlinux/Welcome/ui/window-hyprland.ui",
_ => "/ru/ximperlinux/Welcome/ui/window-gnome.ui",
}
}
#[derive(Debug, Default, gtk::CompositeTemplate)]
#[template(resource = "/ru/ximperlinux/Welcome/ui/window.ui")]
#[template(resource = "")]
pub struct Window {
#[template_child]
pub(super) paginator: TemplateChild<PaginatorWidget>,
......@@ -24,6 +32,7 @@ mod imp {
type ParentType = adw::ApplicationWindow;
fn class_init(klass: &mut Self::Class) {
klass.set_template_from_resource(get_ui_resource());
klass.bind_template();
// Start
klass.install_action("win.start-tour", None, |win, _, _| win.start_tour());
......@@ -64,8 +73,6 @@ mod imp {
let version = glib::os_info("VERSION").unwrap_or_else(|| "".into());
let body = i18n_f(
// Translators: The following string is formatted as "Learn about new and essential
// features in GNOME 3.36" for example
"Learn about the key features in {name} {version}.",
&[("name", &name), ("version", &version)],
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment