jannispinter / indicatetls

Addon for Mozilla Firefox that displays the TLS protocol version of websites you visit
https://addons.mozilla.org/firefox/addon/indicatetls/
Mozilla Public License 2.0
64 stars 12 forks source link

Proton Update Changes Spacing in URL Bar #51

Open xelaseer opened 3 years ago

xelaseer commented 3 years ago

Thanks for the great extension.

It appears that Firefox's new Proton UI refresh has new address bar styling, including spacing changes.

This affects this extension's URL bar indicator, making it arguably look a little unintentional and distorted post-update, as can be seen in the below screenshot. Specifically, it appears the indicator spacing is now taller and thinner.

Screenshot

Note that this new UI refresh can be turned on by setting browser.proton.urlbar.enabled (this only controls the URL bar, other proton prefs enable other parts of the theme) to true in Nightly in about:config.

While this is not enabled by default yet, it appears that it will make its way to release reasonably soon.

jannispinter commented 3 years ago

Thanks for pointing this out, as far as I can tell from the screenshot, the problems are that

Our current detection for the dark theme is quite hacky, we just check for the RGB color: if (themeInfo.colors && themeInfo.colors.icons === "rgb(249, 249, 250, 0.7)") { This can be fixed by implementing a proper theme detection, or just change the RGB color values and continue to use the hack.

Why the page action is stretched is not clear to me yet, it looks like it is a bug in the current Firefox nightly, as the spec clearly says that the pageAction icon should be at a 1:1 aspect ratio. We simply use browser.pageAction.setIcon to set the icon. Does this affect other extensions as well?

xelaseer commented 3 years ago

Yeah, this does seem to effect other extensions like FlagFox and True Sight as well.

Should I file a bug with Mozilla?

Just a piece of info regarding my theme colour, I am using the Dracula Dark Theme, so the colours you see in my screenshot may not be representative of the official dark theme.

xelaseer commented 3 years ago

This screenshot shows the colour of the official dark theme in Proton, as it is currently.

It does appear to be under heavy development though.

Screenshot

xelaseer commented 3 years ago

Looks like a bug has been filed with Mozilla here: https://bugzilla.mozilla.org/show_bug.cgi?id=1696628