Added mode-dependent image at status line

pull/8/head
parent f1391d84fa
commit fafe3433fb

@ -123,8 +123,14 @@ install: check
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.cancel-symbolic.svg" @install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.cancel-symbolic.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.checked.svg" @install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.checked.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.warning.svg" @install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.warning.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.config-full-symbolic.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.config-module-symbolic.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.config-sandbox-symbolic.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.config-ram-home-symbolic.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.config-hdd-symbolic.svg"
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/actions/" "com.ublinux.${PKGNAME}.config-hdd-home-symbolic.svg"
@if [ -z ${DESTDIR} ]; then \ @if [ -z ${DESTDIR} ]; then \
[ -d "${DESTDIR}/usr/share/icons/hicolor/" ] && gtk-update-icon-cache -fiq "${DESTDIR}${PREFIX}/share/icons/hicolor/" &>/dev/null || true; \ [ -d "${DESTDIR}/usr/share/icons/hicolor/" ] && gtk-update-icon-cache -fiq "${DESTDIR}/usr/share/icons/hicolor/" &>/dev/null || true; \
update-desktop-database --quiet &>/dev/null || true; \ update-desktop-database --quiet &>/dev/null || true; \
[ -d "${DESTDIR}/usr/share/applications" ] && touch "${DESTDIR}/usr/share/applications" &>/dev/null || true; \ [ -d "${DESTDIR}/usr/share/applications" ] && touch "${DESTDIR}/usr/share/applications" &>/dev/null || true; \
ldconfig -n ${DESTDIR}${PREFIX}/lib; \ ldconfig -n ${DESTDIR}${PREFIX}/lib; \

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
version="1.1"
id="svg4"
sodipodi:docname="com.ublinux.libublsettingsui-gtk3.statemode-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="30.291667"
inkscape:cx="12"
inkscape:cy="11.983494"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
style="stroke-width:0.833332"
d="M 2 2 L 2 22 L 15.09375 22 C 15.892994 22.935333 17.0258 23.584093 18.279297 23.675781 C 20.663573 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.046951 18.188384 23.355569 16.237131 22 15.054688 L 22 5.3339844 L 18.666016 2 L 2 2 z M 6.1660156 3.6660156 L 17.833984 3.6660156 L 17.833984 9.5 L 6.1660156 9.5 L 6.1660156 3.6660156 z M 14.501953 4.5 L 14.501953 8.6660156 L 17 8.6660156 L 17 4.5 L 14.501953 4.5 z M 4.5 12.833984 L 19.5 12.833984 L 19.5 13.951172 C 19.283604 13.923174 19.06577 13.909239 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.852954 19.019439 13.931958 19.698642 14.144531 20.333984 L 4.5 20.333984 L 4.5 12.833984 z " />
<path
id="path1347-3"
style="fill:#008000;stroke-width:2.27549"
sodipodi:type="inkscape:offset"
inkscape:radius="-0.73184925"
class="warning"
inkscape:original="M 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.600874 20.914367 15.685143 23.48603 18.279297 23.675781 C 20.663572 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.227045 17.482449 22.626099 14.658216 20.099609 14.068359 C 19.691834 13.959157 19.269343 13.910206 18.847656 13.908203 z "
d="m 18.822266,14.638672 c -2.049491,-0.07017 -3.966566,1.73366 -4.150391,3.767578 a 0.73192244,0.73192244 0 0 1 -0.0039,0.0293 c -0.282904,2.126641 1.521277,4.35303 3.664062,4.509765 a 0.73192244,0.73192244 0 0 1 0.05078,0.0059 c 1.97566,0.283715 4.068676,-1.19725 4.496094,-3.142578 a 0.73192244,0.73192244 0 0 1 0.0059,-0.02539 C 23.412165,17.715899 22.023079,15.26908 19.933594,14.78125 a 0.73192244,0.73192244 0 0 1 -0.02344,-0.0059 C 19.571607,14.684727 19.211124,14.64237 18.84375,14.640625 a 0.73192244,0.73192244 0 0 1 -0.02148,-0.002 z" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
version="1.1"
id="svg4"
sodipodi:docname="com.ublinux.libublsettingsui-gtk3.statemode-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="30.291667"
inkscape:cx="12"
inkscape:cy="11.983494"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
style="stroke-width:0.833332"
d="M 2 2 L 2 22 L 15.09375 22 C 15.892994 22.935333 17.0258 23.584093 18.279297 23.675781 C 20.663573 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.046951 18.188384 23.355569 16.237131 22 15.054688 L 22 5.3339844 L 18.666016 2 L 2 2 z M 6.1660156 3.6660156 L 17.833984 3.6660156 L 17.833984 9.5 L 6.1660156 9.5 L 6.1660156 3.6660156 z M 14.501953 4.5 L 14.501953 8.6660156 L 17 8.6660156 L 17 4.5 L 14.501953 4.5 z M 4.5 12.833984 L 19.5 12.833984 L 19.5 13.951172 C 19.283604 13.923174 19.06577 13.909239 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.852954 19.019439 13.931958 19.698642 14.144531 20.333984 L 4.5 20.333984 L 4.5 12.833984 z " />
<path
id="path1347-3"
style="fill:#008000;stroke-width:2.27549"
sodipodi:type="inkscape:offset"
inkscape:radius="-0.73184925"
class="error"
inkscape:original="M 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.600874 20.914367 15.685143 23.48603 18.279297 23.675781 C 20.663572 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.227045 17.482449 22.626099 14.658216 20.099609 14.068359 C 19.691834 13.959157 19.269343 13.910206 18.847656 13.908203 z "
d="m 18.822266,14.638672 c -2.049491,-0.07017 -3.966566,1.73366 -4.150391,3.767578 a 0.73192244,0.73192244 0 0 1 -0.0039,0.0293 c -0.282904,2.126641 1.521277,4.35303 3.664062,4.509765 a 0.73192244,0.73192244 0 0 1 0.05078,0.0059 c 1.97566,0.283715 4.068676,-1.19725 4.496094,-3.142578 a 0.73192244,0.73192244 0 0 1 0.0059,-0.02539 C 23.412165,17.715899 22.023079,15.26908 19.933594,14.78125 a 0.73192244,0.73192244 0 0 1 -0.02344,-0.0059 C 19.571607,14.684727 19.211124,14.64237 18.84375,14.640625 a 0.73192244,0.73192244 0 0 1 -0.02148,-0.002 z" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
version="1.1"
id="svg4"
sodipodi:docname="com.ublinux.libublsettingsui-gtk3.statemode-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="30.291667"
inkscape:cx="12"
inkscape:cy="11.983494"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
style="stroke-width:0.833332"
d="M 2 2 L 2 22 L 15.09375 22 C 15.892994 22.935333 17.0258 23.584093 18.279297 23.675781 C 20.663573 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.046951 18.188384 23.355569 16.237131 22 15.054688 L 22 5.3339844 L 18.666016 2 L 2 2 z M 6.1660156 3.6660156 L 17.833984 3.6660156 L 17.833984 9.5 L 6.1660156 9.5 L 6.1660156 3.6660156 z M 14.501953 4.5 L 14.501953 8.6660156 L 17 8.6660156 L 17 4.5 L 14.501953 4.5 z M 4.5 12.833984 L 19.5 12.833984 L 19.5 13.951172 C 19.283604 13.923174 19.06577 13.909239 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.852954 19.019439 13.931958 19.698642 14.144531 20.333984 L 4.5 20.333984 L 4.5 12.833984 z " />
<path
id="path1347-3"
style="fill:#008000;stroke-width:2.27549"
sodipodi:type="inkscape:offset"
inkscape:radius="-0.73184925"
class="error"
inkscape:original="M 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.600874 20.914367 15.685143 23.48603 18.279297 23.675781 C 20.663572 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.227045 17.482449 22.626099 14.658216 20.099609 14.068359 C 19.691834 13.959157 19.269343 13.910206 18.847656 13.908203 z "
d="m 18.822266,14.638672 c -2.049491,-0.07017 -3.966566,1.73366 -4.150391,3.767578 a 0.73192244,0.73192244 0 0 1 -0.0039,0.0293 c -0.282904,2.126641 1.521277,4.35303 3.664062,4.509765 a 0.73192244,0.73192244 0 0 1 0.05078,0.0059 c 1.97566,0.283715 4.068676,-1.19725 4.496094,-3.142578 a 0.73192244,0.73192244 0 0 1 0.0059,-0.02539 C 23.412165,17.715899 22.023079,15.26908 19.933594,14.78125 a 0.73192244,0.73192244 0 0 1 -0.02344,-0.0059 C 19.571607,14.684727 19.211124,14.64237 18.84375,14.640625 a 0.73192244,0.73192244 0 0 1 -0.02148,-0.002 z" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
version="1.1"
id="svg4"
sodipodi:docname="com.ublinux.libublsettingsui-gtk3.statemode-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="30.291667"
inkscape:cx="12"
inkscape:cy="11.983494"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
style="stroke-width:0.833332"
d="M 2 2 L 2 22 L 15.09375 22 C 15.892994 22.935333 17.0258 23.584093 18.279297 23.675781 C 20.663573 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.046951 18.188384 23.355569 16.237131 22 15.054688 L 22 5.3339844 L 18.666016 2 L 2 2 z M 6.1660156 3.6660156 L 17.833984 3.6660156 L 17.833984 9.5 L 6.1660156 9.5 L 6.1660156 3.6660156 z M 14.501953 4.5 L 14.501953 8.6660156 L 17 8.6660156 L 17 4.5 L 14.501953 4.5 z M 4.5 12.833984 L 19.5 12.833984 L 19.5 13.951172 C 19.283604 13.923174 19.06577 13.909239 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.852954 19.019439 13.931958 19.698642 14.144531 20.333984 L 4.5 20.333984 L 4.5 12.833984 z " />
<path
id="path1347-3"
style="fill:#008000;stroke-width:2.27549"
sodipodi:type="inkscape:offset"
inkscape:radius="-0.73184925"
class="success"
inkscape:original="M 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.600874 20.914367 15.685143 23.48603 18.279297 23.675781 C 20.663572 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.227045 17.482449 22.626099 14.658216 20.099609 14.068359 C 19.691834 13.959157 19.269343 13.910206 18.847656 13.908203 z "
d="m 18.822266,14.638672 c -2.049491,-0.07017 -3.966566,1.73366 -4.150391,3.767578 a 0.73192244,0.73192244 0 0 1 -0.0039,0.0293 c -0.282904,2.126641 1.521277,4.35303 3.664062,4.509765 a 0.73192244,0.73192244 0 0 1 0.05078,0.0059 c 1.97566,0.283715 4.068676,-1.19725 4.496094,-3.142578 a 0.73192244,0.73192244 0 0 1 0.0059,-0.02539 C 23.412165,17.715899 22.023079,15.26908 19.933594,14.78125 a 0.73192244,0.73192244 0 0 1 -0.02344,-0.0059 C 19.571607,14.684727 19.211124,14.64237 18.84375,14.640625 a 0.73192244,0.73192244 0 0 1 -0.02148,-0.002 z" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
version="1.1"
id="svg4"
sodipodi:docname="com.ublinux.libublsettingsui-gtk3.statemode-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="30.291667"
inkscape:cx="12"
inkscape:cy="11.983494"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
style="stroke-width:0.833332"
d="M 2 2 L 2 22 L 15.09375 22 C 15.892994 22.935333 17.0258 23.584093 18.279297 23.675781 C 20.663573 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.046951 18.188384 23.355569 16.237131 22 15.054688 L 22 5.3339844 L 18.666016 2 L 2 2 z M 6.1660156 3.6660156 L 17.833984 3.6660156 L 17.833984 9.5 L 6.1660156 9.5 L 6.1660156 3.6660156 z M 14.501953 4.5 L 14.501953 8.6660156 L 17 8.6660156 L 17 4.5 L 14.501953 4.5 z M 4.5 12.833984 L 19.5 12.833984 L 19.5 13.951172 C 19.283604 13.923174 19.06577 13.909239 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.852954 19.019439 13.931958 19.698642 14.144531 20.333984 L 4.5 20.333984 L 4.5 12.833984 z " />
<path
id="path1347-3"
style="fill:#008000;stroke-width:2.27549"
sodipodi:type="inkscape:offset"
inkscape:radius="-0.73184925"
class="error"
inkscape:original="M 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.600874 20.914367 15.685143 23.48603 18.279297 23.675781 C 20.663572 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.227045 17.482449 22.626099 14.658216 20.099609 14.068359 C 19.691834 13.959157 19.269343 13.910206 18.847656 13.908203 z "
d="m 18.822266,14.638672 c -2.049491,-0.07017 -3.966566,1.73366 -4.150391,3.767578 a 0.73192244,0.73192244 0 0 1 -0.0039,0.0293 c -0.282904,2.126641 1.521277,4.35303 3.664062,4.509765 a 0.73192244,0.73192244 0 0 1 0.05078,0.0059 c 1.97566,0.283715 4.068676,-1.19725 4.496094,-3.142578 a 0.73192244,0.73192244 0 0 1 0.0059,-0.02539 C 23.412165,17.715899 22.023079,15.26908 19.933594,14.78125 a 0.73192244,0.73192244 0 0 1 -0.02344,-0.0059 C 19.571607,14.684727 19.211124,14.64237 18.84375,14.640625 a 0.73192244,0.73192244 0 0 1 -0.02148,-0.002 z" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
version="1.1"
id="svg4"
sodipodi:docname="com.ublinux.libublsettingsui-gtk3.statemode-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="30.291667"
inkscape:cx="12"
inkscape:cy="11.983494"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
style="stroke-width:0.833332"
d="M 2 2 L 2 22 L 15.09375 22 C 15.892994 22.935333 17.0258 23.584093 18.279297 23.675781 C 20.663573 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.046951 18.188384 23.355569 16.237131 22 15.054688 L 22 5.3339844 L 18.666016 2 L 2 2 z M 6.1660156 3.6660156 L 17.833984 3.6660156 L 17.833984 9.5 L 6.1660156 9.5 L 6.1660156 3.6660156 z M 14.501953 4.5 L 14.501953 8.6660156 L 17 8.6660156 L 17 4.5 L 14.501953 4.5 z M 4.5 12.833984 L 19.5 12.833984 L 19.5 13.951172 C 19.283604 13.923174 19.06577 13.909239 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.852954 19.019439 13.931958 19.698642 14.144531 20.333984 L 4.5 20.333984 L 4.5 12.833984 z " />
<path
id="path1347-3"
style="fill:#008000;stroke-width:2.27549"
sodipodi:type="inkscape:offset"
inkscape:radius="-0.73184925"
class="error"
inkscape:original="M 18.847656 13.908203 C 16.373418 13.823493 14.163366 15.905595 13.943359 18.339844 C 13.600874 20.914367 15.685143 23.48603 18.279297 23.675781 C 20.663572 24.018176 23.079324 22.306176 23.59375 19.964844 C 24.227045 17.482449 22.626099 14.658216 20.099609 14.068359 C 19.691834 13.959157 19.269343 13.910206 18.847656 13.908203 z "
d="m 18.822266,14.638672 c -2.049491,-0.07017 -3.966566,1.73366 -4.150391,3.767578 a 0.73192244,0.73192244 0 0 1 -0.0039,0.0293 c -0.282904,2.126641 1.521277,4.35303 3.664062,4.509765 a 0.73192244,0.73192244 0 0 1 0.05078,0.0059 c 1.97566,0.283715 4.068676,-1.19725 4.496094,-3.142578 a 0.73192244,0.73192244 0 0 1 0.0059,-0.02539 C 23.412165,17.715899 22.023079,15.26908 19.933594,14.78125 a 0.73192244,0.73192244 0 0 1 -0.02344,-0.0059 C 19.571607,14.684727 19.211124,14.64237 18.84375,14.640625 a 0.73192244,0.73192244 0 0 1 -0.02148,-0.002 z" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -261,6 +261,25 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkImage" id="ModeStatusImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="pixel-size">25</property>
<property name="icon-name">com.ublinux.libublsettingsui-gtk3.statemode-yellow-symbolic</property>
<property name="icon_size">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack-type">end</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>

@ -1,6 +1,50 @@
#include "libublsettingsui-gtk3.h" #include "libublsettingsui-gtk3.h"
static char *__yon_config_mode=NULL;
char *yon_ubl_save_mode_get_icon_name(SAVE_MODE_TYPE type){
switch (type){
case SAVE_MODE_FULL:
return "com.ublinux.libublsettingsui-gtk3.config-full-symbolic";
break;
case SAVE_MODE_MODULE:
return "com.ublinux.libublsettingsui-gtk3.config-module-symbolic";
break;
case SAVE_MODE_SANDBOX:
return "com.ublinux.libublsettingsui-gtk3.config-sandbox-symbolic";
break;
case SAVE_MODE_RAM_HOME:
return "com.ublinux.libublsettingsui-gtk3.config-ram-home-symbolic";
break;
case SAVE_MODE_HDD:
return "com.ublinux.libublsettingsui-gtk3.config-hdd-symbolic";
break;
case SAVE_MODE_HDD_HOME:
return "com.ublinux.libublsettingsui-gtk3.config-hdd-home-symbolic";
break;
}
}
SAVE_MODE_TYPE yon_ubl_save_mode_get_type(char *type){
if (!strcmp(type,"changes")){
return SAVE_MODE_FULL;
}
if (!strcmp(type,"module")){
return SAVE_MODE_MODULE;
}
if (!strcmp(type,"sandbox")){
return SAVE_MODE_SANDBOX;
}
if (!strcmp(type,"sandbox_ram_home")){
return SAVE_MODE_RAM_HOME;
}
if (!strcmp(type,"sandbox_hdd")){
return SAVE_MODE_HDD;
}
if (!strcmp(type,"sandbox_hdd_home")){
return SAVE_MODE_HDD_HOME;
}
}
//signal emmit handlers - no header initialization //signal emmit handlers - no header initialization
@ -325,10 +369,12 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
} }
} }
if (!found){ if (!found){
if (!yon_config_check_ignore(compare_name)&&!yon_char_is_empty(compare_value)){
GtkTreeIter itar; GtkTreeIter itar;
gtk_list_store_append(window->list,&itar); gtk_list_store_append(window->list,&itar);
gtk_list_store_set(window->list,&itar,0,1,1,compare_name,3,compare_value,5,1,6,section,-1); gtk_list_store_set(window->list,&itar,0,1,1,compare_name,3,compare_value,5,1,6,section,-1);
} }
}
free(compare_value); free(compare_value);
free(compare_name); free(compare_name);
} }
@ -356,6 +402,8 @@ int yon_confirmation_dialog_call(GtkWidget *self,dialog_confirmation_data *data)
GtkWidget *image_accept = gtk_image_new_from_icon_name("com.ublinux.libublsettingsui-gtk3.accept-symbolic",GTK_ICON_SIZE_BUTTON); GtkWidget *image_accept = gtk_image_new_from_icon_name("com.ublinux.libublsettingsui-gtk3.accept-symbolic",GTK_ICON_SIZE_BUTTON);
gtk_button_set_image((GtkButton*)g_list_nth_data(list,0),image_cancel); gtk_button_set_image((GtkButton*)g_list_nth_data(list,0),image_cancel);
gtk_button_set_image((GtkButton*)g_list_nth_data(list,1),image_accept); gtk_button_set_image((GtkButton*)g_list_nth_data(list,1),image_accept);
gtk_style_context_add_class(gtk_widget_get_style_context((GtkWidget*)g_list_nth_data(list,0)),"marginright");
gtk_style_context_add_class(gtk_widget_get_style_context((GtkWidget*)g_list_nth_data(list,1)),"marginright");
g_list_free(list); g_list_free(list);
GtkWidget *header_label = gtk_label_new(template_app_information.app_title); GtkWidget *header_label = gtk_label_new(template_app_information.app_title);
@ -435,6 +483,7 @@ template_main_window *setup_window(){
widgets->InterfaceBox = yon_gtk_builder_get_widget(builder,"InterfaceBox"); widgets->InterfaceBox = yon_gtk_builder_get_widget(builder,"InterfaceBox");
GtkWidget *HatIcon = yon_gtk_builder_get_widget(builder,"HatIcon"); GtkWidget *HatIcon = yon_gtk_builder_get_widget(builder,"HatIcon");
GtkWidget *HeadImage = yon_gtk_builder_get_widget(builder,"HeadImage"); GtkWidget *HeadImage = yon_gtk_builder_get_widget(builder,"HeadImage");
GtkWidget *ModeStatusImage = yon_gtk_builder_get_widget(builder,"ModeStatusImage");
widgets->DocumentationMenuItem = yon_ubl_menu_item_documentation_new(DOCUMENTATION_LABEL); widgets->DocumentationMenuItem = yon_ubl_menu_item_documentation_new(DOCUMENTATION_LABEL);
widgets->AboutMenuItem = yon_ubl_menu_item_about_new(ABOUT_LABEL); widgets->AboutMenuItem = yon_ubl_menu_item_about_new(ABOUT_LABEL);
@ -459,7 +508,20 @@ template_main_window *setup_window(){
g_signal_connect(G_OBJECT(widgets->DocumentationMenuItem),"activate",G_CALLBACK(on_open_documentation_confirmation),template_app_information.wiki_link); g_signal_connect(G_OBJECT(widgets->DocumentationMenuItem),"activate",G_CALLBACK(on_open_documentation_confirmation),template_app_information.wiki_link);
g_signal_connect(G_OBJECT(widgets->AboutMenuItem),"activate",G_CALLBACK(on_about),NULL); g_signal_connect(G_OBJECT(widgets->AboutMenuItem),"activate",G_CALLBACK(on_about),NULL);
if (yon_char_is_empty(__yon_config_mode)){
int size;
config_str cnf = yon_config_load(SAVE_MODE_GET_COMMAND,&size);
__yon_config_mode=yon_char_new(cnf[0]);
if (__yon_config_mode[strlen(__yon_config_mode)-1]=='\n') __yon_config_mode[strlen(__yon_config_mode)-1]='\0';
yon_char_parsed_free(cnf,size);
if (!yon_char_is_empty(__yon_config_mode)&&strcmp(__yon_config_mode,"(null)")){
gtk_image_set_from_pixbuf(GTK_IMAGE(ModeStatusImage),gtk_icon_theme_load_icon_for_scale(gtk_icon_theme_get_default(),yon_ubl_save_mode_get_icon_name(yon_ubl_save_mode_get_type(__yon_config_mode)),64,1,GTK_ICON_LOOKUP_FORCE_SIZE,NULL));
} else {
free(__yon_config_mode);
__yon_config_mode=NULL;
gtk_widget_hide(ModeStatusImage);
}
}
gtk_widget_show(widgets->Window); gtk_widget_show(widgets->Window);
return widgets; return widgets;
} }

@ -65,8 +65,26 @@
#define PARAMETER_LABEL _("Parameter") #define PARAMETER_LABEL _("Parameter")
#define OLD_VALUE_LABEL _("Old value") #define OLD_VALUE_LABEL _("Old value")
#define NEW_VALUE_LABEL _("New value") #define NEW_VALUE_LABEL _("New value")
#define SYSTEMBOOT_STATEMODE "SYSTEMBOOT_STATEMODE"
#define SYSTEMBOOT_STATEMODE_SECTION "[system]"
#endif #endif
#define SAVE_MODE_GET_COMMAND "ubconfig --raw --source global get [config] SYSTEMBOOT_STATEMODE"
typedef enum SAVE_MODE_TYPE {
SAVE_MODE_FULL,
SAVE_MODE_MODULE,
SAVE_MODE_SANDBOX,
SAVE_MODE_RAM_HOME,
SAVE_MODE_HDD,
SAVE_MODE_HDD_HOME,
} SAVE_MODE_TYPE;
char *yon_ubl_save_mode_get_icon_name(SAVE_MODE_TYPE type);
SAVE_MODE_TYPE yon_ubl_save_mode_get_type(char *type);
typedef struct { typedef struct {
GtkWidget *interface; GtkWidget *interface;

Loading…
Cancel
Save