Skip to content

A hardened Linux desktop, rebuilt from scratch, with your Windows apps built in. Free and open source.

4.3 KB
Raw Blame
pragma Singleton

import QtQuick

// The line icons boards 10.9 to 10.14 draw, on the same 24px grid as
// WildOS.UI's Icons, for the ones that set does not have (or draws
// differently from these boards).
QtObject {
    function r(x, y, w, h, rad) {
        return "M" + (x + rad) + " " + y + "H" + (x + w - rad)
            + "A" + rad + " " + rad + " 0 0 1 " + (x + w) + " " + (y + rad)
            + "V" + (y + h - rad)
            + "A" + rad + " " + rad + " 0 0 1 " + (x + w - rad) + " " + (y + h)
            + "H" + (x + rad)
            + "A" + rad + " " + rad + " 0 0 1 " + x + " " + (y + h - rad)
            + "V" + (y + rad)
            + "A" + rad + " " + rad + " 0 0 1 " + (x + rad) + " " + y + "Z";
    }

    function c(cx, cy, rad) {
        return "M" + (cx - rad) + " " + cy
            + "A" + rad + " " + rad + " 0 1 0 " + (cx + rad) + " " + cy
            + "A" + rad + " " + rad + " 0 1 0 " + (cx - rad) + " " + cy + "Z";
    }

    readonly property var paths: ({
        "screen": r(2, 3, 20, 14, 2) + "M8 21h8M12 17v4",
        "fan": "M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412ZM12 12v.01",
        "info": c(12, 12, 10) + "M12 16v-4M12 8h.01",
        "light": "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5M9 18h6M10 22h4",
        "drop": "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",
        "brightness": c(12, 12, 4) + "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41",
        "rotate": "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8M21 3v5h-5",
        "mark": "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76ZM9 12l2 2 4-4",
        "palette": c(13.5, 6.5, 0.5) + c(17.5, 10.5, 0.5) + c(8.5, 7.5, 0.5) + c(6.5, 12.5, 0.5)
            + "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",
        "moon": "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",
        "warning": "M21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01",
        "check": "M20 6L9 17l-5-5",
        "cpu": r(4, 4, 16, 16, 2) + r(9, 9, 6, 6, 1) + "M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2",
        "pump": "M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"
            + "M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"
            + "M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",
        "silent": "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298zM22 9l-6 6M16 9l6 6",
        "gauge": "M12 14l4-4M3.34 19a10 10 0 1 1 17.32 0",
        "bolt": "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
        "safe": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1zM9 12l2 2 4-4",
        "working": c(12, 12, 10) + "M9 12l2 2 4-4",
        "again": "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8M21 3v5h-5M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16M8 16H3v5",
        "back": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8M3 3v5h5",
        "report": "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7ZM14 2v4a2 2 0 0 0 2 2h4M10 9H8M16 13H8M16 17H8",
        "thermometer": "M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",
        "download": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3",
        "none": "M5 12h14",
        "not-found": "M13.5 8.5l-5 5M8.5 8.5l5 5" + c(11, 11, 8) + "M21 21l-4.3-4.3",
        "usb": c(10, 7, 1) + c(4, 20, 1) + "M4.7 19.3L19 5M21 3l-3 1 2 2ZM9.26 7.68L5 12l2 5M10 14l5 2 3.5-3.5M18 12l1-1 1 1-1 1Z"
    })
}