Zoom Label - fixing issue with poorly visible label text on certain surfaces

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
UCyborg
Astronaut
Astronaut
Posts: 643
Joined: 2019-01-10, 09:37
Location: Slovenia

Zoom Label - fixing issue with poorly visible label text on certain surfaces

Post by UCyborg » 2026-01-01, 21:44

I've been using Zoom Label extension for about a year now to have visual indicator of currently set zoom level. But it has an issue, its label UI element is actually a button CSS style hacked to look like a plain label. Besides this being ugly on its own, this is problematic as depending on where the label is placed, text color should change appropriately, which doesn't happen in this case. Eg. on recent Windows versions with default appearance of Pale Moon, the upper part of the window with URL bar takes the accent color from Windows, the text color of elements placed there should change to white if background accent color is darker. Zoom Label's text stays black.

I usually have the label placed on the status bar, modified by GlassMyFox extension, which makes the normal status bar text turn white, but Zoom Label's stays black. I have modified Zoom Label to use normal label instead of the button, which solves the issue with the text color so it changes as expected. The extension also installs on couple of other browsers supporting XUL overlay extensions besides Pale Moon now.

zoom-label-1.3.1-fx+pm+sm.xpi