Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/UpdatesPage.qml
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Line(s) | 225 | ColumnLayout { | |||
---|---|---|---|---|---|
233 | } | 233 | } | ||
234 | 234 | | |||
235 | // Old and new version numbers; show when there's enough room | 235 | // Old and new version numbers; show when there's enough room | ||
236 | Label { | 236 | Label { | ||
237 | id: oldAndNewVersions | 237 | id: oldAndNewVersions | ||
238 | Layout.fillWidth: true | 238 | Layout.fillWidth: true | ||
239 | elide: Text.ElideRight | 239 | elide: Text.ElideRight | ||
240 | text: i18n("%1 → %2", installedVersion, availableVersion) | 240 | text: i18n("%1 → %2", installedVersion, availableVersion) | ||
241 | visible: !truncated | 241 | visible: installedVersion && !truncated | ||
242 | opacity: listItem.hovered? 0.8 : 0.6 | 242 | opacity: listItem.hovered? 0.8 : 0.6 | ||
243 | } | 243 | } | ||
244 | // Available version only, for when old+new would be elided. | 244 | // Available version only, for when old+new would be elided. | ||
245 | // Use squeezey text to gain more room, and if it's still so | 245 | // Use squeezey text to gain more room, and if it's still so | ||
246 | // so long that it would be elided, elide from the left so | 246 | // so long that it would be elided, elide from the left so | ||
247 | // the most important part on the right is still visible | 247 | // the most important part on the right is still visible | ||
248 | 248 | | |||
249 | // All of this is mostly for the benefit of KDE Neon users, | 249 | // All of this is mostly for the benefit of KDE Neon users, | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |