feat(storybook): Added storybook support for `StatusEmojiAndColorComboBox` component

Added storybook support for new component.
This commit is contained in:
Noelia 2023-03-22 10:47:21 +01:00 committed by Noelia
parent f691c85127
commit 87f86855eb
2 changed files with 46 additions and 0 deletions

View File

@ -161,6 +161,10 @@ ListModel {
title: "StatusGroupBox" title: "StatusGroupBox"
section: "Components" section: "Components"
} }
ListElement {
title: "StatusEmojiAndColorComboBox"
section: "Components"
}
ListElement { ListElement {
title: "BrowserSettings" title: "BrowserSettings"
section: "Settings" section: "Settings"

View File

@ -0,0 +1,42 @@
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import StatusQ.Controls 0.1
import StatusQ.Components 0.1
import StatusQ.Core.Theme 0.1
import Models 1.0
SplitView {
id: root
SplitView {
orientation: Qt.Vertical
SplitView.fillWidth: true
ColumnLayout {
anchors.margins: 100
anchors.fill: parent
spacing: 150
StatusEmojiAndColorComboBox {
Layout.preferredWidth: 300
model: WalletAccountsModel {}
type: StatusComboBox.Type.Secondary
size: StatusComboBox.Size.Small
implicitHeight: 44
defaultAssetName: "filled-account"
}
StatusEmojiAndColorComboBox {
Layout.preferredWidth: 300
model: WalletAccountsModel {}
}
// filler
Item {
Layout.fillHeight: true
}
}
}
}