Compare commits

..
Author SHA1 Message Date
Pascal Precht 459150afcf fix(sandbox): make scrollview content height grow with content
This is just temporary until #40 lands, but for now it allows for
the scrollable content to be grow which is needed to make pages
with many components usable.
2021-05-25 12:25:59 +02:00
Pascal Precht 321a4a1aba feat(Components): introduce StatusRoundIcon component
This commit introduces a `StatusRoundIcon` component which renders
a `StatusIcon` inside a rounded rectangle.

This is similar to `StatusRoundButton`, just that it isn't a clickable
component.

With these changes, we also introduce a new `StatusIconSettings` config
object that can be used across component that need icon configuration.

The configuration includes the following properties:

- `name` - Name of the icon and used to locate the asset
- `width`
- `height`

Closes #53
2021-05-21 14:32:23 +02:00
Pascal Precht 77d115e0bb fix(Components): add proper foreground color for StatusBadge
Fixes #59
2021-05-21 14:06:34 +02:00
4 changed files with 1 additions and 14 deletions
@@ -65,7 +65,7 @@ Rectangle {
case StatusFlatRoundButton.Type.Primary:
return Theme.palette.primaryColor2;
case StatusFlatRoundButton.Type.Secondary:
return Theme.palette.baseColor2;
return "transparent";
}
}
-2
View File
@@ -6,6 +6,4 @@ QtObject {
property string name
property real width
property real height
property color color
property url source
}
-10
View File
@@ -1,10 +0,0 @@
import QtQuick 2.13
QtObject {
id: statusImageSettings
property url source
property real width
property real height
}
-1
View File
@@ -3,5 +3,4 @@ module StatusQ.Core
StatusBaseText 0.1 StatusBaseText.qml
StatusIcon 0.1 StatusIcon.qml
StatusIconSettings 0.1 StatusIconSettings.qml
StatusImageSettings 0.1 StatusImageSettings.qml