import QtQuick import "../.." ConfigSection { id: root required property Config service name: "appearance" label: "appearance" rows: [ ConfigRow { kind: ConfigRow.Choice label: "bar" value: root.service.orientation error: root.service.orientationError options: [ ConfigOption { value: "horizontal" label: "horizontal" }, ConfigOption { value: "vertical" label: "vertical" } ] onEdited: value => root.service.setOrientation(value) }, ConfigRow { kind: ConfigRow.Choice label: "mode" value: root.service.mode busy: root.service.busy status: root.service.busy ? "applying appearance" : "" error: root.service.error options: [ ConfigOption { value: "dark" label: "dark" }, ConfigOption { value: "light" label: "light" } ] onEdited: value => root.service.selectMode(value) }, ConfigRow { kind: ConfigRow.Action label: "retry appearance" visible: root.service.error.length > 0 busy: root.service.busy onActivated: root.service.selectMode(root.service.mode) } ] }