Closed Bug 1717260 Opened 3 years ago Closed 1 year ago

It hard to distinguish which item is in focus on Library window

Categories

(Firefox :: Bookmarks & History, defect, P2)

Firefox 91
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
113 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox89 --- unaffected
firefox90 --- unaffected
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix
firefox111 --- wontfix
firefox112 --- wontfix
firefox113 --- verified
firefox114 --- verified

People

(Reporter: alice0775, Assigned: imlata1111, Mentored)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: nightly-community, regression, ux-error-prevention, Whiteboard: [proton-foundations][lang=css])

Attachments

(3 files)

Attached image Screenshot Nightly91

In new Library Window Theme, It hard to distinguish which item is in focus.
The left and right panes have the same selection background color, so it's impossible to tell which one will be deleted when the DEL key is pressed.

Steps To reproduce:
Open Library Window
Select an folder

Actual Results:
The left and right panes have the same selection background color!!
It hard to distinguish which item is in focus.

Expected Results:
Easily identify the element that currently has the focus.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f1b6f24bd6fa97140efe5cc0f1d252ca15adde00&tochange=c4dee83ede3f801ccba3cd53ccd104799b06c770

This seems like a valid point.
mak, what do you suggest to do here?

Flags: needinfo?(mak)

The dark theme color already had this issue, afaict, even before the fix for Bug 1705967. I agree it's confusing for the user, as it already was in Dark.

I can only think of 2 options:

  • we eat the pill of using Primary, that unfortunately in the multi-selection case may cause a huge bright area in Dark theme (for example doing a select all will paint a huge bright cyan area in Dark).
  • we use Secondary instead of Secondary Active in non-focused panes.

I think this is more a questions for theme peers, because the first choice would be more coherent theme-wise, but the second may be less annoying for users of the dark theme.
Trees are pretty much the only (or most common) multi-selection widgets and I think a decision was not made here yet.

Flags: needinfo?(mak) → needinfo?(dao+bmo)
Whiteboard: [proton-foundations]

Hey Harry, do you have any ideas for this?

Flags: needinfo?(htwyford)

I prefer the solution of using Secondary instead of Secondary Active in non-focused panes. Using that much Primary would be an eyesore and might make the text in the tree harder to parse.

Flags: needinfo?(htwyford)
Flags: needinfo?(itiel_yn8)
Severity: -- → S3
Priority: -- → P2
Mentor: mak
Whiteboard: [proton-foundations] → [proton-foundations][lang=css]

hello, I'm beginner so I would like to fix this as my first contribution, I had setup firefox environment pls guide me

If it's your absolute first contribution to Mozilla, I'd suggest to pick a bug with the good-first-bug keyword from https://codetribute.mozilla.org/projects/ff those are easier and thus allow you to concentrate on ensuring your environment is ready for development.
Once that's done, you can move to more complex bugs like this one.
If you wish to continue anyway, please have a look at https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html that contains all the technical details to start.
If you have questions about this specific bug, just put down your question in a comment and set the Request Information from option below to me.

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

Hey Mak, Ghazker - is the bug still available? Would love to take it for fixing if no one working on that!
Thanks, Jane

Yes, note this is a Windows-only bug.

Has Regression Range: --- → yes

Hii, I have solved a few good-first bug. I'm interested in solving this bug, Can you assign me?

Can i work on this bug

Bugs are automatically assigned when a patch is posted, if you have further questions please ask.

I'm working on it. Will submit a patch soon.

Hii! I have figured out that changing --default-focusring: var(--default-focusring-width) dotted; to --default-focusring: var(--default-focusring-width) solid; here https://searchfox.org/mozilla-central/source/toolkit/themes/shared/global-shared.css#16 can solve this problem as it become more visible then. Will that work? As this problem is only on Windows, will this change cause any problem for linux or mac? Am I thinking in the right direction? Please guide.

I don't think that'd be a good solution, you are changing the focusring to the whole product, but here the problem is not the focus ring not being visible enough, here the problem is that the selected element background color, is the same in both panes of the Library window.
Since the bug is limited to the Library window, you only want to modify the style for it.
The styles for the library are in organizer.css, in particular for Windows it's https://searchfox.org/mozilla-central/source/browser/themes/windows/places/organizer.css
you can see there's many variables there and likely the one we care about is --organizer-selected-background
There, we want to override the case where the view containing the selected row (tree, pane) is NOT focused, and in that case replace the color (this will require to use either an attribute or a focus selector).
I think a good color for Dark may be rgb(43, 42, 51) while for light rgb(249,249,251). We'll check if those colors make sense with the patch applied.

As I said earlier, this is not a trivial bug if you don't know css very well.

Assignee: nobody → imlata1111
Status: NEW → ASSIGNED

Hey! I have changed the selected element background color to rgb(43, 42, 51) (Although, this looks very dark now). Please review and if any change is required please suggest.

Hey! I have submitted a patch with further changes few days before. Please let me know if there is anything I am supposed to change. Thanks.

Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/9361e4b16e0b
Its hard to distinguish which item is in focus on Library window. r=mak,desktop-theme-reviewers,Itiel
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Flags: qe-verify+

Reproducible on a 2023-03-29 Nightly build on Windows 10.
Verified as fixed on Firefox 113.0b6(build ID: 20230420180037) and Nightly 114.0a1(build ID: 20230420212414) on Windows 10 and Windows 11.

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

Attachment

General

Created:
Updated:
Size: