Closed Bug 1293018 Opened 8 years ago Closed 8 years ago

Make arrow panels white (using -moz-field) on Linux

Categories

(Toolkit :: Themes, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Arrow panels are currently different on Linux for no specific reason. We use -moz-field on Windows and we should just do the same here.
Attachment #8778637 - Flags: review?(paolo.mozmail)
Comment on attachment 8778637 [details] [diff] [review]
patch

Makes sense to me, for example this aligns the bookmarks menu to look like the other platform menus from the menu bar.

In the main menu, it seems the contrast of the separators between the cut, copy, and paste commands in the main menu is higher than on the other platforms. Maybe there is no reason for this difference anymore, so this can be fixed here or in a follow-up.

Out of curiosity, are the references to the "panelarrow" SVG files in "non-mac.jar.inc.mn" actually used anywhere?
Attachment #8778637 - Flags: review?(paolo.mozmail) → review+
(In reply to :Paolo Amadini from comment #1)
> In the main menu, it seems the contrast of the separators between the cut,
> copy, and paste commands in the main menu is higher than on the other
> platforms. Maybe there is no reason for this difference anymore, so this can
> be fixed here or in a follow-up.

It's a platform color (ThreeDShadow), ensuring that the border is visible on the background that uses a platform color as well. Judging by attachment 8778315 [details], you appear to be using an OS theme with generally stark contrasts.

> Out of curiosity, are the references to the "panelarrow" SVG files in
> "non-mac.jar.inc.mn" actually used anywhere?

Yes, on Windows and in theory on unsupported platforms falling back on the toolkit stylesheets for Windows. Linux would use this if it didn't have its own popup.css.
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/88b2afb04d81
Make arrow panels white (using -moz-field) on Linux. r=paolo
(In reply to Dão Gottwald [:dao] from comment #2)
> (In reply to :Paolo Amadini from comment #1)
> > In the main menu, it seems the contrast of the separators between the cut,
> > copy, and paste commands in the main menu is higher than on the other
> > platforms. Maybe there is no reason for this difference anymore, so this can
> > be fixed here or in a follow-up.
> 
> It's a platform color (ThreeDShadow), ensuring that the border is visible on
> the background that uses a platform color as well. Judging by attachment
> 8778315 [details], you appear to be using an OS theme with generally stark
> contrasts.

Ah, I see, the theme on my machine must be the reason. It still seems strange that everything else in the panel, like the separators below the buttons and the lines around them, doesn't use the same platform color.
(In reply to :Paolo Amadini from comment #4)
> strange that everything else in the panel, like the separators below the
> buttons and the lines around them, doesn't use the same platform color.

That's likely a bug... I might take care of that as part of bug 1016556.
https://hg.mozilla.org/mozilla-central/rev/88b2afb04d81
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
(In reply to Dão Gottwald [:dao] from comment #0)
> Arrow panels are currently different on Linux for no specific reason. We use
> -moz-field on Windows and we should just do the same here.

They actually take a color from the user's theme in version 50 and lower, which was nicer IMO.

(In reply to :Paolo Amadini from comment #1)
> Makes sense to me, for example this aligns the bookmarks menu to look like
> the other platform menus from the menu bar.

Actually, this change doesn't make e.g. the bookmarks menu match the platform menus (it may just happen to make it look that way in a particular theme). As an example, with the Green-Submarine theme, the platform menus are dark green, whereas in Firefox 51, the bookmarks menu is white with the same theme. (in Firefox 50 and lower, the bookmarks menu is a lighter shade of green supplied by the theme).


Dão, could you reconsider the merits of removing the theme-specified menu background color?
Flags: needinfo?(dao+bmo)
(In reply to vummiess from comment #7)
> (In reply to Dão Gottwald [:dao] from comment #0)
> > Arrow panels are currently different on Linux for no specific reason. We use
> > -moz-field on Windows and we should just do the same here.
> 
> They actually take a color from the user's theme in version 50 and lower,
> which was nicer IMO.

-moz-field is from the user's theme as well, it's just a different theme color.

> (In reply to :Paolo Amadini from comment #1)
> > Makes sense to me, for example this aligns the bookmarks menu to look like
> > the other platform menus from the menu bar.
> 
> Actually, this change doesn't make e.g. the bookmarks menu match the
> platform menus (it may just happen to make it look that way in a particular
> theme)

This is the case on Windows and Mac too, so we're consistent here.
Flags: needinfo?(dao+bmo)
(In reply to Dão Gottwald [:dao] from comment #8)
> -moz-field is from the user's theme as well, it's just a different theme
> color.
sure, but it's a theme color meant for something completely different -- indeed, the bug's goal is to "make it white" (not match the theme's look and feel, as it currently does)

> > (In reply to :Paolo Amadini from comment #1)
> This is the case on Windows and Mac too, so we're consistent here.
it's better to consistently not match the look and feel of a theme anywhere than to allow one platform to continue to match better than the others? or to make adjustments on the other platforms so that they match their themes as well as Linux currently does?
(In reply to vummiess from comment #9)
> (In reply to Dão Gottwald [:dao] from comment #8)
> > -moz-field is from the user's theme as well, it's just a different theme
> > color.
> sure, but it's a theme color meant for something completely different --
> indeed, the bug's goal is to "make it white" (not match the theme's look and
> feel, as it currently does)

That was just a simplification for the sake of having a summary. The actual goal was cross-platform consistency. The mockups we get from designers always assume that arrow panels are white. Expecting them to cook up something special just for Linux isn't realistic.

> > > (In reply to :Paolo Amadini from comment #1)
> > This is the case on Windows and Mac too, so we're consistent here.
> it's better to consistently not match the look and feel of a theme anywhere

That's a mischaracterization. It's possible that this looks particularly inconsistent with your OS theme, but that's not generally the case.

> than to allow one platform to continue to match better than the others? or
> to make adjustments on the other platforms so that they match their themes
> as well as Linux currently does?

Feel free to file a new bug on making arrow panels use -moz-dialog or Menu across platforms. I suspect our UX people won't support this though.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: