on xenial help sign in
lp:~unity-team/unity8/newscopes-card-overlay
commitd8c12f10dee1c369a0d4d249b7630c426843c4ed authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 7 Feb 2014, 17:23 (13 years ago) parent5b8a3e6a212df8
2 files changed+8
qml/Dash/CardCarousel.qml+7 qml/Dash/CardFilterGrid.qml+1
qml/Dash/CardCarousel.qml+7
@@ -55,9 +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
64+ headerHeight: carousel.headerHeight
6165 cardData: model
6266 template: cardCarousel.template
6367 components: cardCarousel.components
@@ -66,6 +70,9 @@ DashRenderer {
6670 property var model
6771
6872 enabled: false
73+ showHeader: explicitlyScaled
74+
75+ fontScale: carousel.fontScale
6976 }
7077 }
7178}
qml/Dash/CardFilterGrid.qml+1
@@ -39,6 +39,7 @@ DashFilterGrid {
3939 id: card
4040 width: cardTool.cardWidth
4141 height: cardTool.cardHeight
42+ headerHeight: cardTool.headerHeight
4243 anchors.horizontalCenter: parent.horizontalCenter
4344 objectName: "delegate" + index
4445 cardData: model