17 lines
484 B
QML
17 lines
484 B
QML
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.sizes.bar.innerSize) : Math.max(Config.bar.height, Math.floor(Tokens.sizes.bar.innerSize * 1.5))
|
|
required property bool horizontal
|
|
|
|
color: Colors.tPalette.m3surfaceContainer
|
|
implicitHeight: horizontal ? baseSize : width
|
|
implicitWidth: horizontal ? height : baseSize
|
|
radius: Tokens.rounding.full
|
|
}
|