Closed
Bug 853431
Opened 12 years ago
Closed 12 years ago
Fix menulist active (hover) text color on Windows 7 and up
Categories
(Toolkit :: Themes, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: fryn, Assigned: Paenglab)
References
Details
Attachments
(1 file)
3.05 KB,
patch
|
fryn
:
review+
fryn
:
ui-review+
|
Details | Diff | Splinter Review |
When hovering the cursor over an item in a menulist (for example, the Actions column items of the Applications tab of Firefox preferences), the menulist item text color should be white, but it is black.
This is because -moz-menuhovertext is black on Windows 7 and up, and we use -moz-menuhovertext for both regular menus and menulists, probably because they had very similar theming in the Windows 95/XP Classic days. Since then, the theming for the two types of widgets has diverged: regular menus use black text even on hover, whereas menulists still use white text on hover.
Since we probably want to keep -moz-menuhovertext for regular menus, since they are much more common, we should switch to something different from -moz-menuhovertext for menulists, at least on Windows 7 and up.
(I haven't tested on Windows Vista, as I don't particularly care about it.)
Comment 1•12 years ago
|
||
Don't hovered menulist items use Highlight and HighlightText as their colours?
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to neil@parkwaycc.co.uk from comment #1)
> Don't hovered menulist items use Highlight and HighlightText as their
> colours?
Only in the menulist:-moz-focus-ring state, which only takes effect when the menulist is closed, I think.
menu.css is rather difficult to understand. :/
Assignee | ||
Comment 3•12 years ago
|
||
In Bug 658328 I made this changes already for TB. I could do this directly in menu.css
Assignee | ||
Comment 4•12 years ago
|
||
This patch sets for menulists the background-color: highlight; and color: highlighttext; for all Windows versions. On XP and Win7 Classic where is no difference to menus. On Win7 Basic, Aero and Win8 the hovered text is now white.
Additionally I removed the top and bottom padding as the native menulist items are a lot more close together on all Win versions.
On Win7 not Classic and Win8 I removed also the highlight when the menulist is focused like the native menulist.
If this needs ui-r, who can I set for it?
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 729171 [details] [diff] [review]
proposed fix
Review of attachment 729171 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for working on this!
(In reply to Richard Marti [:Paenglab] from comment #4)
> If this needs ui-r, who can I set for it?
I'll do the ui-review after I test this on various platforms. :)
::: toolkit/themes/windows/global/menulist-aero.css
@@ +13,5 @@
> + .menulist-label-box {
> + background-color: transparent !important;
> + color: inherit !important;
> + }
> +}
Does this block apply to Windows 8?
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Frank Yan (:fryn) from comment #5)
> Comment on attachment 729171 [details] [diff] [review]
> proposed fix
>
> Review of attachment 729171 [details] [diff] [review]:
> -----------------------------------------------------------------
> ::: toolkit/themes/windows/global/menulist-aero.css
> @@ +13,5 @@
> > + .menulist-label-box {
> > + background-color: transparent !important;
> > + color: inherit !important;
> > + }
> > +}
>
> Does this block apply to Windows 8?
Yes, -aero.css does apply to Win 8 like on Win 7.
Reporter | ||
Comment 7•12 years ago
|
||
Comment on attachment 729171 [details] [diff] [review]
proposed fix
Review of attachment 729171 [details] [diff] [review]:
-----------------------------------------------------------------
Code looks good and works well.
Tested on Windows XP, 7, and 8.
Thanks to MattN for helping me to test this on Windows XP and 7.
While this fixes color issues, it doesn't fix the padding issue:
On Windows 7 and up (and probably Vista), our menulist widget (the thing you click to open the menu, not the menu itself) has 3 pixels of extra vertical padding (2px below and 1 above, but that's probably just pixel-snapped centering) that the native menulist does not have. If you're interested, could you file a followup bug and look into that?
Attachment #729171 -
Flags: ui-review+
Attachment #729171 -
Flags: review?(fyan)
Attachment #729171 -
Flags: review+
Reporter | ||
Comment 8•12 years ago
|
||
Pushed to mozilla-inbound:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c15696ed3d83
Target Milestone: --- → mozilla22
Assignee | ||
Comment 9•12 years ago
|
||
Filed Bug 856040 for the widget padding issue.
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•