Closed Bug 1831570 Opened 1 year ago Closed 1 year ago

Menu separators are basically invisible in dark mode on Ubuntu

Categories

(Toolkit :: Themes, defect)

All
Linux
defect

Tracking

()

VERIFIED FIXED
114 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- unaffected
firefox114 --- verified

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: access, regression)

Attachments

(3 files)

Attached image invisible separators

Not sure how this looked prior to bug 1828413, but that patch's use of threedshadow for menuseparators seems to not work well when the system is in light mode and Firefox is in dark mode (e.g. using a dark theme from AMO). I'm attaching a screenshot of how this looks over here.

I don't know if we want to fix threedshadow to do something reasonable here, or just not use threedshadow? E.g. this seems to work fine:

diff --git a/toolkit/themes/linux/global/menu.css b/toolkit/themes/linux/global/menu.css
--- a/toolkit/themes/linux/global/menu.css
+++ b/toolkit/themes/linux/global/menu.css
@@ -200,11 +200,11 @@ menuseparator {
   menuitem[type="radio"] .menu-iconic-icon {
     appearance: auto;
     -moz-default-appearance: radio;
   }
 
   menuseparator {
     appearance: none;
     margin-block: 2px;
-    border-top: 1px solid color-mix(in srgb, ThreeDShadow 50%, transparent 50%);
+    border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
   }
 }
Flags: needinfo?(emilio)

Do they look different on your system compared to when the system is in dark mode itself? If so that needs fixing.

Our current separators look pretty close to what gtk3-demo and gtk4-demo do, on my setup at least... But you're right that on dark mode they don't have a lot of contrast, so maybe deviating a bit from the native styles here is worth it.

Other than that, I tested your patch and on a bunch of themes and it looks fine, so I wouldn't oppose to it.

Flags: needinfo?(emilio)
Flags: needinfo?(dao+bmo)

If you're on Ubuntu ("about:support" should say something like "OS Theme: Yaru / Yaru-dark" or so), this might be kind of expected, Yaru-dark has basically invisible menuseparators here :/

Attached image native dark mode

(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)

Do they look different on your system compared to when the system is in dark mode itself? If so that needs fixing.

Yeah, native menus in dark mode look closer to what I get with my fix / hack.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)

If you're on Ubuntu ("about:support" should say something like "OS Theme: Yaru / Yaru-dark" or so), this might be kind of expected, Yaru-dark has basically invisible menuseparators here :/

It's Yaru-dark / Yaru. I recently upgraded to Ubuntu 23.04 so perhaps they've improved this.

Flags: needinfo?(dao+bmo)

I meant, do Firefox's menus look different if you use regular Firefox dark mode vs. light-mode with dark theme? If so we should figure out why and fix that.

If not, alright, your patch seems reasonable to me then :)

Flags: needinfo?(dao+bmo)
Attachment #9331828 - Attachment description: Screenshot from 2023-05-05 16-12-34.png → invisible separators
Flags: needinfo?(dao+bmo)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)

I meant, do Firefox's menus look different if you use regular Firefox dark mode vs. light-mode with dark theme? If so we should figure out why and fix that.

Hm, no, seems broken either way.

Summary: Menu separators are basically invisible when Firefox is in dark mode while the system is in light mode → Menu separators are basically invisible in dark mode
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Keywords: access
OS: All → Linux
Summary: Menu separators are basically invisible in dark mode → Menu separators are basically invisible in dark mode on Ubuntu
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bcfc4ed15774
Make menuseparators more visible, particularly in dark mode and high contrast mode. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
Flags: qe-verify+

I have reproduced this issue using Firefox 114.0a1 (2023.05.05) on Ubuntu 22.
I can confirm this issue is fixed on both Firefox 115.0a1 and Firefox 114.0b4, I verified on Ubuntu 22 .

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: