import QtQuick Item { id: theme property bool lowPowerMode: false readonly property string mode: "dark" readonly property var palette: ({ "debug": "#ed5eed", "error": "#ec6376", "warning": "#f0ee69", "info": "#3ec5e3", "content": { "normal": "#ededed", "backdrop": "#121212", "accent": "#d151d1", "minor": "#8b8b8b", "focus": "#7ba1aa", "unfocus": "#5d5d5d", "important_local": "#b59ae4", "important_global": "#dfd3f3" }, "ui": { "normal": "#dbdbdb", "backdrop": "#242424", "accent": "#d86dd8", "minor": "#9d9d9d", "focus": "#9aabae", "unfocus": "#6f6f6f", "important_local": "#c9b6eb", "important_global": "#f3effb" } }) readonly property var content: palette.content readonly property var ui: palette.ui readonly property string error: palette.error readonly property string warning: palette.warning readonly property string info: palette.info readonly property string debug: palette.debug function withAlpha(hex, alpha) { const aa = Math.round(Math.max(0, Math.min(1, alpha)) * 255).toString(16).padStart(2, "0"); return `#${aa}${hex.slice(1)}`; } visible: false }