controlcenter: font subsections collapsiblesections
This commit is contained in:
parent
b05650b451
commit
76029cd8a0
1 changed files with 171 additions and 174 deletions
|
|
@ -533,12 +533,10 @@ RowLayout {
|
||||||
sidebarFlickable.collapseAllSections(fontsSection);
|
sidebarFlickable.collapseAllSections(fontsSection);
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
CollapsibleSection {
|
||||||
Layout.topMargin: Appearance.spacing.normal
|
id: materialFontSection
|
||||||
text: qsTr("Material font family")
|
title: qsTr("Material font family")
|
||||||
font.pointSize: Appearance.font.size.larger
|
expanded: true
|
||||||
font.weight: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
StyledListView {
|
StyledListView {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -601,14 +599,13 @@ RowLayout {
|
||||||
implicitHeight: fontFamilyMaterialRow.implicitHeight + Appearance.padding.normal * 2
|
implicitHeight: fontFamilyMaterialRow.implicitHeight + Appearance.padding.normal * 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
|
||||||
Layout.topMargin: Appearance.spacing.normal
|
|
||||||
text: qsTr("Monospace font family")
|
|
||||||
font.pointSize: Appearance.font.size.larger
|
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CollapsibleSection {
|
||||||
|
id: monoFontSection
|
||||||
|
title: qsTr("Monospace font family")
|
||||||
|
expanded: false
|
||||||
|
|
||||||
StyledListView {
|
StyledListView {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Math.min(contentHeight, 300)
|
Layout.preferredHeight: Math.min(contentHeight, 300)
|
||||||
|
|
@ -670,14 +667,13 @@ RowLayout {
|
||||||
implicitHeight: fontFamilyMonoRow.implicitHeight + Appearance.padding.normal * 2
|
implicitHeight: fontFamilyMonoRow.implicitHeight + Appearance.padding.normal * 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
|
||||||
Layout.topMargin: Appearance.spacing.normal
|
|
||||||
text: qsTr("Sans-serif font family")
|
|
||||||
font.pointSize: Appearance.font.size.larger
|
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CollapsibleSection {
|
||||||
|
id: sansFontSection
|
||||||
|
title: qsTr("Sans-serif font family")
|
||||||
|
expanded: false
|
||||||
|
|
||||||
StyledListView {
|
StyledListView {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Math.min(contentHeight, 300)
|
Layout.preferredHeight: Math.min(contentHeight, 300)
|
||||||
|
|
@ -739,6 +735,7 @@ RowLayout {
|
||||||
implicitHeight: fontFamilySansRow.implicitHeight + Appearance.padding.normal * 2
|
implicitHeight: fontFamilySansRow.implicitHeight + Appearance.padding.normal * 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SectionContainer {
|
SectionContainer {
|
||||||
contentSpacing: Appearance.spacing.normal
|
contentSpacing: Appearance.spacing.normal
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue