on xenial help sign in
Scale the header down in carousel.
commita212df82b4390d58d9a73e5047274f81d84779b3 authorMichał Karnicki <michal.karnicki@canonical.com> dateThu 6 Feb 2014, 16:30 (13 years ago) parent2b53c5b
1 file changed+5−2
qml/Dash/CardCarousel.qml+5−2
qml/Dash/CardCarousel.qml+5−2
@@ -55,10 +55,13 @@ DashRenderer {
5555 onClicked: cardCarousel.clicked(index, itemY)
5656 onPressAndHold: cardCarousel.pressAndHold(index, itemY)
5757
58+ property real fontScale: 1 / selectedItemScaleFactor
59+ property real headerHeight: cardTool.headerHeight / selectedItemScaleFactor
60+
5861 itemComponent: Card {
5962 id: card
6063 objectName: "delegate" + index
61− headerHeight: cardTool.headerHeight
64+ headerHeight: carousel.headerHeight
6265 cardData: model
6366 template: cardCarousel.template
6467 components: cardCarousel.components
@@ -69,7 +72,7 @@ DashRenderer {
6972 enabled: false
7073 showHeader: explicitlyScaled
7174
72− fontScale: 1 / selectedItemScaleFactor
75+ fontScale: carousel.fontScale
7376 }
7477 }
7578}