Changeset View
Changeset View
Standalone View
Standalone View
src/qml/BaseTheme.qml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 21 | Item { | |||
---|---|---|---|---|---|
51 | FontMetrics { | 51 | FontMetrics { | ||
52 | id: playListAuthorTextHeight | 52 | id: playListAuthorTextHeight | ||
53 | font.weight: Font.Light | 53 | font.weight: Font.Light | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | FontMetrics { | 56 | FontMetrics { | ||
57 | id: playListAlbumTextHeight | 57 | id: playListAlbumTextHeight | ||
58 | font.weight: Font.Bold | 58 | font.weight: Font.Bold | ||
59 | font.pointSize: elisaTheme.defaultFontPointSize * 1.4 | 59 | font.pointSize: Math.round(elisaTheme.defaultFontPointSize * 1.4) | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | FontMetrics { | 62 | FontMetrics { | ||
63 | id: playListTrackTextHeight | 63 | id: playListTrackTextHeight | ||
64 | font.weight: Font.Bold | 64 | font.weight: Font.Bold | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | property int playListDelegateHeight: (playListTrackTextHeight.height > dp(28)) ? playListTrackTextHeight.height : dp(28) | 67 | property int playListDelegateHeight: (playListTrackTextHeight.height > dp(28)) ? playListTrackTextHeight.height : dp(28) | ||
Show All 33 Lines | |||||
101 | property int gridDelegateWidth: dp(170) | 101 | property int gridDelegateWidth: dp(170) | ||
102 | 102 | | |||
103 | property int viewSelectorDelegateHeight: dp(24) | 103 | property int viewSelectorDelegateHeight: dp(24) | ||
104 | 104 | | |||
105 | property int filterClearButtonMargin: layoutVerticalMargin | 105 | property int filterClearButtonMargin: layoutVerticalMargin | ||
106 | 106 | | |||
107 | property alias defaultFontPointSize: fontSize.font.pointSize | 107 | property alias defaultFontPointSize: fontSize.font.pointSize | ||
108 | 108 | | |||
109 | TextMetrics { | | |||
110 | id: bigTextSize | | |||
111 | font.pointSize: defaultFontPointSize * 1.4 | | |||
112 | text: "Albums" | | |||
113 | } | | |||
114 | | ||||
115 | property int viewSelectorSmallSizeThreshold: 800 | 109 | property int viewSelectorSmallSizeThreshold: 800 | ||
116 | 110 | | |||
117 | Label { | 111 | Label { | ||
118 | id: fontSize | 112 | id: fontSize | ||
119 | } | 113 | } | ||
120 | } | 114 | } |