Improve section header
This commit is contained in:
parent
bfb22d0d3f
commit
ad275cf1fb
2 changed files with 22 additions and 4 deletions
|
@ -44,6 +44,10 @@ SlidePage {
|
||||||
title: 'Episodes'
|
title: 'Episodes'
|
||||||
|
|
||||||
section.property: 'section'
|
section.property: 'section'
|
||||||
section.delegate: SectionHeader { text: section }
|
section.delegate: SectionHeader {
|
||||||
|
text: section
|
||||||
|
color: episodeList.selectedIndex === -1 ? Constants.colors.secondaryHighlight : Constants.colors.text
|
||||||
|
opacity: episodeList.selectedIndex === -1 ? 1 : 0.2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,15 +24,29 @@ import 'common/constants.js' as Constants
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
property alias text: pLabel.text
|
property alias text: pLabel.text
|
||||||
|
property alias color: pLabel.color
|
||||||
|
|
||||||
height: 70 * pgst.scalef
|
height: 70 * pgst.scalef
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors {
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
left: parent.left
|
||||||
|
right: pLabel.left
|
||||||
|
margins: Constants.layout.padding * pgst.scalef
|
||||||
|
}
|
||||||
|
|
||||||
|
color: pLabel.color
|
||||||
|
height: 1 * pgst.scalef
|
||||||
|
}
|
||||||
|
|
||||||
PLabel {
|
PLabel {
|
||||||
id: pLabel
|
id: pLabel
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
right: parent.right
|
||||||
bottom: parent.bottom
|
verticalCenter: parent.verticalCenter
|
||||||
margins: 10 * pgst.scalef
|
margins: Constants.layout.padding * pgst.scalef
|
||||||
}
|
}
|
||||||
|
|
||||||
color: Constants.colors.secondaryHighlight
|
color: Constants.colors.secondaryHighlight
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue