Investigate whether the titlebar for vertical tabs can be styled like the nav bar
Categories
(Firefox :: Sidebar, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox134 | --- | fixed |
People
(Reporter: sclements, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
Filing this to capture the request from Ania and Yulia in this bug to investigate/discuss whether we can make changes to the title bar theme variables so as to ensure the sidebar and titlebar match the spec in vertical tabs mode.
Both Emilio and Gijs, have mentioned several of the reason why the nav bar was moved into the title bar in bug 1899598.
Recapping Emilio's latest comment here:
Part of the issue is that if you don't use the titlebar color, then there's other things that don't work:
The titlebar no longer communicates window activeness (this is relevant to all themes).
The native window controls might not have enough contrast, depending on the theme (this is relevant to Linux and HCM).
The titlebar no longer matches the environment (applies to all native themes, windows with the accent-color-in-titlebar, etc).
An alternative would be to change the sidebar styling to work around this limitation.
Comment 1•4 months ago
|
||
I wanted to add some thoughts here for clarity. The main source of confusion seems to have been that I initially thought we would move the window controls down to the toolbar. However, instead of that toolbar elements were moved up to the title bar, which totally make sense after reading comments and reasoning in another bug.
In the current vertical tabs mode, the new title bar/toolbar has inherited certain characteristics from the title bar, such as color and spacing. Since the title bar color is darker than the toolbar color, the address bar is now difficult to see.
Our goal is for the title bar/toolbar to match the sidebar color, creating a unified surface. I'd appreciate your opinions on the best way to achieve this. Could we change the title bar color to match the sidebar (for example, making it lighter in the light and dark theme)? Looking at Edge, they seem to take a similar approach.
Alternatively, we could apply the title bar color to the sidebar so both match. In this case, we’d still need to adjust the title bar color slightly in light and dark themes to ensure the address bar remains visible.
If we consider other themes, this approach would only work for themes with a solid color assigned to the title bar. For more complex themes, we could implement a fallback solution.
What do you think would be the best and simplest way to achieve this without causing any issues? I understand that making this work for all themes could be complex and isn’t a priority right now. For now, it’s most important to ensure that in light and dark themes, the title bar and sidebar colors are consistent, and that the address bar remains clearly visible.
Comment 2•4 months ago
|
||
Comment 3•4 months ago
|
||
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 4•4 months ago
|
||
As per discussion with UX, we might want the toolbox background to be
different in (some of) our default themes in this case, but that seems
orthogonal, and this seems somewhat straight-forward.
Updated•4 months ago
|
Assignee | ||
Comment 5•4 months ago
|
||
With the previous patch, this color is used more directly (it's already
used in light mode, but in dark mode toolbar_background is almost opaque
which papers over it).
Make it the bottom of the gradient background, to improve the behavior
with the previous patch.
Reporter | ||
Comment 6•4 months ago
|
||
These are some nice improvements (especially for Alphenglow light), however I'm surprised to see a patch already when this bug was meant to document a discussion... where did this conversation with UX happen per your comment 4?
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Comment 9•4 months ago
|
||
bugherder |
Assignee | ||
Updated•4 months ago
|
Comment 10•4 months ago
|
||
The proposed patch sets up a the new CSS variable to use for the toolbars and sidebar area --toolbox-bgcolor: var(--lwt-accent-color)
which gets populated from the theme's frame
color. There was a concern in code review that some themes might define this as some random color as its often obscured by a opaque background image. I got a rough report out of a dump of the top several hundred themes to assess this - is it common? Or even a thing at all. The report doesn't inline the background image so its not ideal but scanning down it, it looks to me like the majority of the frame colors seem to be intentional and in a matching color palette.
Comment 11•4 months ago
|
||
Comment 12•4 months ago
|
||
bugherder |
Updated•4 months ago
|
Description
•