Skip to content

OSD: right aligned text is cut to one character (100% drawn as 1...) #409

Closed

Description

@irzyxa

Skins with right aligned text (Alignment="2") cut the value down to one character: 100% is drawn as 1.... The "Signal" skin shows it.

The text was measured against the space to the right of its position, but right aligned text grows to the left of it, so almost no room was left. Right aligned text is now measured against the space on its left. Left and centre aligned skins are unchanged.

Fixed in irzyxa/Volume2-Windows#22.

How to test

  1. Choose the "Signal" skin (Options → OSD).
  2. Change the volume to 7%, 56% and 100% — the value is shown in full each time, not as 7... or 1....
  3. Check a left aligned skin ("Acer Blue Digits") and a centre aligned one ("Windows 11 v3"): both look as before.
  4. With a right aligned skin, show a long string (mute text or device name): it still shrinks instead of running off the left edge.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions