import QtQuick import ZShell.Config import qs.Components import qs.Services CustomRect { id: root readonly property int baseSize: horizontal ? Math.max(Config.bar.height, Tokens.bar.innerSize) : Math.max(Config.bar.height, Math.floor(Tokens.bar.innerSize * 1.5)) required property bool horizontal color: Colors.tPalette.m3surfaceContainer implicitHeight: horizontal ? baseSize : width implicitWidth: horizontal ? height : baseSize radius: Tokens.rounding.full }