Changeset View
Changeset View
Standalone View
Standalone View
src/qml/NavigationActionBar.qml
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 116 | TextMetrics { | |||
---|---|---|---|---|---|
118 | text: albumLabel.text | 118 | text: albumLabel.text | ||
119 | font.pointSize: albumLabel.font.pointSize | 119 | font.pointSize: albumLabel.font.pointSize | ||
120 | font.bold: albumLabel.font.bold | 120 | font.bold: albumLabel.font.bold | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | LabelWithToolTip { | 123 | LabelWithToolTip { | ||
124 | id: albumLabel | 124 | id: albumLabel | ||
125 | 125 | | |||
126 | text: secondaryTitle | 126 | text: mainTitle | ||
127 | 127 | | |||
128 | Layout.fillWidth: true | 128 | Layout.fillWidth: true | ||
129 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | 129 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | ||
130 | 130 | | |||
131 | elide: Text.ElideRight | 131 | elide: Text.ElideRight | ||
132 | 132 | | |||
133 | color: myPalette.text | 133 | color: myPalette.text | ||
134 | 134 | | |||
135 | font { | 135 | font { | ||
136 | pointSize: elisaTheme.defaultFontPointSize * 2 | 136 | pointSize: elisaTheme.defaultFontPointSize * 2 | ||
137 | } | 137 | } | ||
138 | | ||||
139 | visible: secondaryTitle !== "" | | |||
140 | } | 138 | } | ||
141 | 139 | | |||
142 | TextMetrics { | 140 | TextMetrics { | ||
143 | id: authorTextSize | 141 | id: authorTextSize | ||
144 | text: authorLabel.text | 142 | text: authorLabel.text | ||
145 | font.pointSize: authorLabel.font.pointSize | 143 | font.pointSize: authorLabel.font.pointSize | ||
146 | font.bold: authorLabel.font.bold | 144 | font.bold: authorLabel.font.bold | ||
147 | } | 145 | } | ||
148 | 146 | | |||
149 | LabelWithToolTip { | 147 | LabelWithToolTip { | ||
150 | id: authorLabel | 148 | id: authorLabel | ||
151 | 149 | | |||
152 | text: mainTitle | 150 | text: secondaryTitle | ||
153 | 151 | | |||
154 | color: myPalette.text | 152 | color: myPalette.text | ||
155 | 153 | | |||
156 | Layout.fillWidth: true | 154 | Layout.fillWidth: true | ||
157 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | 155 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | ||
158 | 156 | | |||
159 | font { | 157 | font { | ||
160 | pointSize: (secondaryTitle !== "" ? elisaTheme.defaultFontPointSize : elisaTheme.defaultFontPointSize * 2) | 158 | pointSize: elisaTheme.defaultFontPointSize | ||
161 | } | 159 | } | ||
162 | 160 | | |||
163 | elide: Text.ElideRight | 161 | elide: Text.ElideRight | ||
162 | | ||||
163 | visible: secondaryTitle !== "" | ||||
164 | } | 164 | } | ||
165 | 165 | | |||
166 | Item { | 166 | Item { | ||
167 | id: emptyBottomFiller | 167 | id: emptyBottomFiller | ||
168 | 168 | | |||
169 | Layout.fillWidth: true | 169 | Layout.fillWidth: true | ||
170 | Layout.fillHeight: true | 170 | Layout.fillHeight: true | ||
171 | } | 171 | } | ||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |