From 3bf086e115562183ccb5ca915f7e1d5e3bed32b5 Mon Sep 17 00:00:00 2001 From: Spencer Bull Date: Thu, 17 Sep 2026 00:02:04 -0500 Subject: [PATCH] Stand the bar icon upright The globe glyph in the bar was leaned over by the earth's obliquity via WidgetButton.textRotation. The shell draws bar glyphs with native text rendering at about thirteen pixels, and the glyph's lattice does not survive being turned off the pixel grid: it came out as a dotted blob. Qt's other render types were tried on the same glyph at the same angle on a GPU scenegraph and none resolved the graticule, so the icon stands upright. The hero globe in the panel is drawn, and keeps its lean. --- Panel.qml | 7 +++++-- README.md | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Panel.qml b/Panel.qml index 96475bb..b7957a0 100644 --- a/Panel.qml +++ b/Panel.qml @@ -1120,8 +1120,11 @@ Panel { anchors.fill: parent bar: root.bar text: "" - // Leaned over like the real thing, same obliquity as the panel globe. - textRotation: Solar.AXIAL_TILT + // Upright, unlike the panel globe. The bar draws this glyph with native + // text rendering at about thirteen pixels, and a lattice that fine does + // not survive being turned off the pixel grid: leaned over by the earth's + // obliquity it shreds into a dotted blob. The lean lives on the hero + // globe, which is drawn and large enough to carry it. tooltipText: "World clock" onPressed: function(buttonCode) { if (buttonCode === Qt.RightButton || buttonCode === Qt.MiddleButton) root.refresh() diff --git a/README.md b/README.md index d2035be..168adff 100644 --- a/README.md +++ b/README.md @@ -1102,7 +1102,13 @@ the arithmetic left it. At rest a `Binding` holds the globe there, standing down while the animation is writing the property. Until the fetcher has geocoded your city the marker is hidden and it rests on Greenwich. -The sidebar icon carries the same tilt, via `WidgetButton.textRotation`. +The sidebar icon does not carry the tilt. It did, via +`WidgetButton.textRotation`, and it came out as a dotted blob: the bar draws +its glyphs with native text rendering at about thirteen pixels, and the globe +glyph's lattice does not survive being turned off the pixel grid. Qt's other +render types were tried on the same glyph at the same angle and none of them +resolved the graticule either, so the icon stands upright and the lean is left +to the drawn globe, which is large enough to carry it. Opening the panel spins it three turns. `Easing.OutQuart` over 1250ms puts most of the rotation in the first third and lets the rest coast out, which is