26 lines
439 B
QML
26 lines
439 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import Quickshell
|
|
import QtQuick
|
|
import ZShell.Internal
|
|
import qs.Components
|
|
|
|
Item {
|
|
id: root
|
|
|
|
readonly property alias content: contentLoader.item
|
|
required property ScreenState screenState
|
|
|
|
Loader {
|
|
id: contentLoader
|
|
|
|
active: root.screenState.isDrawing
|
|
anchors.fill: parent
|
|
|
|
sourceComponent: StrokeCanvas {
|
|
penColor: root.screenState.penColor
|
|
penWidth: root.screenState.penWidth
|
|
}
|
|
}
|
|
}
|