feat(Components): introduce `StatusListSectionHeadline`
Usage: ```qml import StatusQ.Components 0.1 StatusListSectionHeadline { text: "Settings" } ``` Closes #164
This commit is contained in:
parent
40617cd710
commit
507703af18
|
@ -118,21 +118,21 @@ StatusWindow {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
NavigationHeader { text: "StatusQ.Core" }
|
StatusListSectionHeadline { text: "StatusQ.Core" }
|
||||||
StatusNavigationListItem {
|
StatusNavigationListItem {
|
||||||
title: "Icons"
|
title: "Icons"
|
||||||
selected: page.sourceComponent == iconsComponent
|
selected: page.sourceComponent == iconsComponent
|
||||||
onClicked: page.sourceComponent = iconsComponent
|
onClicked: page.sourceComponent = iconsComponent
|
||||||
}
|
}
|
||||||
|
|
||||||
NavigationHeader { text: "StatusQ.Layout" }
|
StatusListSectionHeadline { text: "StatusQ.Layout" }
|
||||||
StatusNavigationListItem {
|
StatusNavigationListItem {
|
||||||
title: "Layouts"
|
title: "Layouts"
|
||||||
selected: page.sourceComponent == layoutComponent
|
selected: page.sourceComponent == layoutComponent
|
||||||
onClicked: page.sourceComponent = layoutComponent
|
onClicked: page.sourceComponent = layoutComponent
|
||||||
}
|
}
|
||||||
|
|
||||||
NavigationHeader { text: "StatusQ.Controls" }
|
StatusListSectionHeadline { text: "StatusQ.Controls" }
|
||||||
StatusNavigationListItem {
|
StatusNavigationListItem {
|
||||||
title: "Buttons"
|
title: "Buttons"
|
||||||
selected: page.sourceComponent == buttonsComponent
|
selected: page.sourceComponent == buttonsComponent
|
||||||
|
@ -143,7 +143,7 @@ StatusWindow {
|
||||||
selected: page.sourceComponent == controlsComponent
|
selected: page.sourceComponent == controlsComponent
|
||||||
onClicked: page.sourceComponent = controlsComponent
|
onClicked: page.sourceComponent = controlsComponent
|
||||||
}
|
}
|
||||||
NavigationHeader { text: "StatusQ.Components" }
|
StatusListSectionHeadline { text: "StatusQ.Components" }
|
||||||
StatusNavigationListItem {
|
StatusNavigationListItem {
|
||||||
title: "List Items"
|
title: "List Items"
|
||||||
selected: page.sourceComponent == listItemsComponent
|
selected: page.sourceComponent == listItemsComponent
|
||||||
|
@ -159,7 +159,7 @@ StatusWindow {
|
||||||
selected: page.sourceComponent == othersComponent
|
selected: page.sourceComponent == othersComponent
|
||||||
onClicked: page.sourceComponent = othersComponent
|
onClicked: page.sourceComponent = othersComponent
|
||||||
}
|
}
|
||||||
NavigationHeader { text: "StatusQ.Popup" }
|
StatusListSectionHeadline { text: "StatusQ.Popup" }
|
||||||
StatusNavigationListItem {
|
StatusNavigationListItem {
|
||||||
title: "StatusPopupMenu"
|
title: "StatusPopupMenu"
|
||||||
selected: page.sourceComponent == popupMenuComponent
|
selected: page.sourceComponent == popupMenuComponent
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
<file>ListItems.qml</file>
|
<file>ListItems.qml</file>
|
||||||
<file>StatusChatInfoToolBarPage.qml</file>
|
<file>StatusChatInfoToolBarPage.qml</file>
|
||||||
<file>StatusPopupMenuPage.qml</file>
|
<file>StatusPopupMenuPage.qml</file>
|
||||||
<file>NavigationHeader.qml</file>
|
|
||||||
<file>ThemeSwitch.qml</file>
|
<file>ThemeSwitch.qml</file>
|
||||||
<file>Layout.qml</file>
|
<file>Layout.qml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|
|
@ -4,15 +4,18 @@ import StatusQ.Core 0.1
|
||||||
import StatusQ.Core.Theme 0.1
|
import StatusQ.Core.Theme 0.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
height: 34
|
implicitHeight: 34
|
||||||
width: 176
|
implicitWidth: 176
|
||||||
|
|
||||||
property alias text: label.text
|
property alias text: label.text
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.left: parent.left
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: 4
|
||||||
|
anchors.leftMargin: 16
|
||||||
id: label
|
id: label
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
color: Theme.palette.baseColor1
|
color: Theme.palette.baseColor1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ StatusChatToolBar 0.1 StatusChatToolBar.qml
|
||||||
StatusDescriptionListItem 0.1 StatusDescriptionListItem.qml
|
StatusDescriptionListItem 0.1 StatusDescriptionListItem.qml
|
||||||
StatusLetterIdenticon 0.1 StatusLetterIdenticon.qml
|
StatusLetterIdenticon 0.1 StatusLetterIdenticon.qml
|
||||||
StatusListItem 0.1 StatusListItem.qml
|
StatusListItem 0.1 StatusListItem.qml
|
||||||
|
StatusListSectionHeadline 0.1 StatusListSectionHeadline.qml
|
||||||
StatusLoadingIndicator 0.1 StatusLoadingIndicator.qml
|
StatusLoadingIndicator 0.1 StatusLoadingIndicator.qml
|
||||||
StatusNavigationListItem 0.1 StatusNavigationListItem.qml
|
StatusNavigationListItem 0.1 StatusNavigationListItem.qml
|
||||||
StatusNavigationPanelHeadline 0.1 StatusNavigationPanelHeadline.qml
|
StatusNavigationPanelHeadline 0.1 StatusNavigationPanelHeadline.qml
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
<file>src/StatusQ/Components/StatusRoundedImage.qml</file>
|
<file>src/StatusQ/Components/StatusRoundedImage.qml</file>
|
||||||
<file>src/StatusQ/Components/StatusRoundIcon.qml</file>
|
<file>src/StatusQ/Components/StatusRoundIcon.qml</file>
|
||||||
<file>src/StatusQ/Components/StatusListItem.qml</file>
|
<file>src/StatusQ/Components/StatusListItem.qml</file>
|
||||||
|
<file>src/StatusQ/Components/StatusListSectionHeadline.qml</file>
|
||||||
<file>src/StatusQ/Components/StatusDescriptionListItem.qml</file>
|
<file>src/StatusQ/Components/StatusDescriptionListItem.qml</file>
|
||||||
<file>src/StatusQ/Components/StatusBadge.qml</file>
|
<file>src/StatusQ/Components/StatusBadge.qml</file>
|
||||||
<file>src/StatusQ/Components/StatusLetterIdenticon.qml</file>
|
<file>src/StatusQ/Components/StatusLetterIdenticon.qml</file>
|
||||||
|
|
Loading…
Reference in New Issue