[plasmashell] [Bug 469576] In Volume OSD, "100%" volume string is a multi-line string

Kai Uwe Broulik bugzilla_noreply at kde.org
Tue Aug 1 20:38:22 BST 2023


https://bugs.kde.org/show_bug.cgi?id=469576

Kai Uwe Broulik <kde at privat.broulik.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/9737efa79440b65db303030f3
                   |                            |4f0039f1c9cd6a0

--- Comment #13 from Kai Uwe Broulik <kde at privat.broulik.de> ---
Git commit 9737efa79440b65db303030f34f0039f1c9cd6a0 by Kai Uwe Broulik.
Committed on 01/08/2023 at 21:24.
Pushed by broulik into branch 'master'.

OSD: Fix size calculation for progress value

Use a common function for formatting the percent, so placeholder 100% label
will
use the exact formatting used by the label next to the progress bar.

Also use font advanceWidth, which is the appropriate means of calculating the
bounding box of text in this case. Also ceil it to avoid subpixel alignment.

And to be absolutely sure disable word wrapping.

M  +8    -3    lookandfeel/org.kde.breeze/contents/osd/OsdItem.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/9737efa79440b65db303030f34f0039f1c9cd6a0

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Visual-design mailing list