Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/UpdatesPage.qml
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Line(s) | 228 | Kirigami.Heading { | |||
---|---|---|---|---|---|
232 | elide: Text.ElideRight | 232 | elide: Text.ElideRight | ||
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: LayoutMirroring.enabled ? | ||
241 | visible: !truncated | 241 | availableVersion + " ← " + installedVersion : | ||
242 | installedVersion + " → " + availableVersion | ||||
243 | visible: installedVersion && !truncated | ||||
242 | opacity: listItem.hovered? 0.8 : 0.6 | 244 | opacity: listItem.hovered? 0.8 : 0.6 | ||
243 | } | 245 | } | ||
244 | // Available version only, for when old+new would be elided. | 246 | // Available version only, for when old+new would be elided. | ||
245 | // Use squeezey text to gain more room, and if it's still so | 247 | // 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 | 248 | // so long that it would be elided, elide from the left so | ||
247 | // the most important part on the right is still visible | 249 | // the most important part on the right is still visible | ||
248 | 250 | | |||
249 | // All of this is mostly for the benefit of KDE Neon users, | 251 | // All of this is mostly for the benefit of KDE Neon users, | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |