Pascal Precht 74a88a70b3 feat(StatusBaseInput): introduce component property
This property enables users to load any component into the input field.
This is useful for rendering a "clearable" icon button, simple icons or
even more complex buttons.

Usage:

```qml
StatusBaseInput {
    ...
    component: StatusIcon {
        name: "cancel"
        color: Theme.palette.dangerColor1
        width: 16
    }
}
```

The `clearable` property of `StatusBaseInput` also renders and icon button
on the right hand side. With this new feature, `clearable` is just a short-hand
for:

```qml
StatusBaseInput {
    ...
    component: StatusFlatRoundButton {
        visible: edit.text.length != 0 &&
                statusBaseInput.clearable &&
                !statusBaseInput.multiline &&
                edit.activeFocus
        type: StatusFlatRoundButton.Type.Secondary
        width: 24
        height: 24
        icon.name: "clear"
        icon.width: 16
        icon.height: 16
        icon.color: Theme.palette.baseColor1
        onClicked: {
            edit.clear()
        }
    }
}
```

Closes #380
2022-09-21 18:20:03 +02:00
2022-07-07 08:55:05 -04:00
2022-08-23 19:38:23 +02:00
2022-09-21 08:57:18 +02:00
2022-09-21 18:20:01 +02:00
2022-07-14 22:04:33 +02:00
2022-09-14 15:52:16 -04:00
2022-06-30 12:11:24 -04:00
Description
Status Desktop client made in Nim & QML
https://status.app
Readme
Languages
QML 39.4%
JavaScript 29.5%
Nim 18.5%
Python 5.6%
C++ 5.2%
Other 1.6%