[plasma/kdeplasma-addons] applets/weather/qml: applets/weather: Center the location label in the top panel

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 593a140c175b047bb00d54d7551365b984e179b9 by Nate Graham, on behalf of Michal Malinowski.
Committed on 28/07/2026 at 16:27.
Pushed by ngraham into branch 'master'.

applets/weather: Center the location label in the top panel

The location heading was the only item in the top panel that was not
horizontally centered. The temperature, "feels like" text and condition
label all use centered alignment, and the wind indicator is anchored to
the horizontal center of its cell, so the left-aligned heading looked
out of place.

Use horizontalAlignment rather than Layout.alignment so the item keeps
filling the available width, which preserves the existing eliding and
the tooltip that appears when the place name is truncated.

ENHANCEMENT: 523573
FIXED-IN: 6.8.0

M  +1    -0    applets/weather/qml/TopPanel.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/593a140c175b047bb00d54d7551365b984e179b9

diff --git a/applets/weather/qml/TopPanel.qml b/applets/weather/qml/TopPanel.qml
index c9dd19639..3dde22690 100644
--- a/applets/weather/qml/TopPanel.qml
+++ b/applets/weather/qml/TopPanel.qml
@@ -72,6 +72,7 @@ GridLayout {
         Layout.columnSpan: 3
         Layout.fillWidth: true
 
+        horizontalAlignment: Text.AlignHCenter
         elide: Text.ElideRight
 
         visible: !!root.station?.place
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.