Closed Bug 69710 Opened 24 years ago Closed 16 years ago

Disabled menu items need more three-dimensional appearance

Categories

(Toolkit :: Themes, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9.1b2

People

(Reporter: bugzilla, Assigned: neil)

References

Details

(Keywords: polish)

Attachments

(3 files, 3 obsolete files)

Disabled menuitems need a more three-dimensional appearance, like they have on Windows; they're currently just gray, which isn't quite enough visual feedback. Giving this to Ben, since he said he once had a stack binding that achieved a similar effect.
Blake, I assume you mean that std Windows disabled items are essentially painted twice (once with COLOR_3DHILIGHT and once with COLOR_3DSHADOW, with a slight offset)?
Severity: normal → trivial
Keywords: polish, ui
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Please see comments in Bug 137350. I believe this relates to the implementation of the CSS value GrayText. Windows only.
This will have a positive effect on the IE theme I am developing.
Mass reassign of my non-Firefox bugs to ben_seamonkey@hotmail.com
Assignee: bugs → ben_seamonkey
Status: ASSIGNED → NEW
Product: Core → Mozilla Application Suite
Assignee: ben_seamonkey → guifeatures
QA Contact: bugzilla
Assignee: guifeatures → nobody
Component: XP Apps: GUI Features → XUL Widgets
Depends on: text-shadow
Product: Mozilla Application Suite → Toolkit
QA Contact: xul.widgets
Depends on: 438517
No longer depends on: text-shadow
Attached patch Proposed patch (obsolete) (deleted) — Splinter Review
As per groupboxes this isn't enabled for Luna/Aero but is enabled on W2k.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #341264 - Flags: review?(dao)
Comment on attachment 341264 [details] [diff] [review] Proposed patch >:not(:-moz-system-metric(windows-default-theme)) { :-moz-system-metric(windows-classic) >+ text-shadow: 1px 1px ThreeDHighlight; Is ThreeDHighlight what native apps actually use? >+checkbox[disabled="true"]:not(:-moz-system-metric(windows-default-theme)) { >+ text-shadow: 1px 1px ThreeDHighlight !important; Why !important?
Attachment #341264 - Flags: review?(dao) → review-
(In reply to comment #8) > >+ text-shadow: 1px 1px ThreeDHighlight; > > Is ThreeDHighlight what native apps actually use? This probably needs to be tested with different color schemes, esp. high contrast ones.
Attached patch Updated for review comments (obsolete) (deleted) — Splinter Review
* Replaced :not(:-moz-system-metric(windows-default-theme)) with :-moz-system-metric(windows-classic) (including some existing rules) * Removed !important (including some existing rules) * Added color: ThreeDShadow; after verifying against high contrast themes
Attachment #341264 - Attachment is obsolete: true
Attachment #341284 - Flags: review?(dao)
Comment on attachment 341284 [details] [diff] [review] Updated for review comments It might be a good idea to update the same files in gnomestripe for consistency (except the windows-specific stuff). >diff -r 8f53fcb8bde5 toolkit/themes/winstripe/global/menu.css >+menulist > menupopup > menuitem[disabled="true"]:not([_moz-menuactive="true"]):-moz-system-metric(windows-classic) { >+ text-shadow: none; >+} Shouldn't the color be reset to GrayText here as well?
Attachment #341284 - Flags: review?(dao) → review+
(In reply to comment #11) >(From update of attachment 341284 [details] [diff] [review]) >It might be a good idea to update the same files in gnomestripe for consistency >(except the windows-specific stuff). Sorry, I'm not following you here... do you mean that all those widgets should have shadows in gnomestripe at all times? >>diff -r 8f53fcb8bde5 toolkit/themes/winstripe/global/menu.css >>+menulist > menupopup > menuitem[disabled="true"]:not([_moz-menuactive="true"]):-moz-system-metric(windows-classic) { >>+ text-shadow: none; >>+} >Shouldn't the color be reset to GrayText here as well? I thought that the previous rule had a higher weight, but I was wrong.
(In reply to comment #12) > Sorry, I'm not following you here... do you mean that all those widgets should > have shadows in gnomestripe at all times? No, I was referring to the !important flags cleanup.
Attached patch Fixed patch (deleted) — Splinter Review
I duplicated the style rules in gnomestripe to stop the hover rule overriding the disabled rule (winstripe has no hover text colour).
Attachment #341284 - Attachment is obsolete: true
Attachment #341424 - Flags: review?(dao)
Comment on attachment 341424 [details] [diff] [review] Fixed patch I think this would be more straightforward: radio:not([disabled="true"]):hover { color: -moz-buttonhovertext; }
Attachment #341424 - Flags: review?(dao) → review+
Component: XUL Widgets → Themes
QA Contact: xul.widgets → themes
Pushed changeset 6251e69516c9 to mozilla-central.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attached image screenshot (deleted) —
change width and height of xul:button, xul:checkbox, xul:menulist, xul:radio... This is very strange.
That's not quite true; only checkboxes and radio buttons are affected. (Bug 458231 if you're interested.) dao, as a workaround I could add transparent shadows to all classic checkboxes and radios so that they don't change size when disabled, if you like?
(In reply to comment #18) > That's not quite true; only checkboxes and radio buttons are affected. > (Bug 458231 if you're interested.) Ok, It was my misunderstanding. Thank you.
(In reply to comment #18) > dao, as a workaround I could add transparent shadows to all classic checkboxes > and radios so that they don't change size when disabled, if you like? Depends on if you think bug 458231 makes 1.9.1...
Blocks: 460681
Attached patch Work around bug 458213 (obsolete) (deleted) — Splinter Review
Attachment #347524 - Flags: review?(dao)
Attachment #347524 - Flags: review?(dao)
Comment on attachment 347524 [details] [diff] [review] Work around bug 458213 Why -2px? Wouldn't -1 compensate the shadow correctly? 458213 is the wrong bug number...
Attached patch Work around bug 458231 (deleted) — Splinter Review
Confirmed by screen capture, the appearance with a transparent shadow and bottom margin of -2px matches the appearance without either styles. The disabled appearance with this patch matches the disabled appearance with bug 458231. (Of course, combining both patches results in an incorrect appearance!) I had a look in layout code but I couldn't work out why it was -2 and not -1.
Attachment #347524 - Attachment is obsolete: true
Attachment #347530 - Flags: review?(dao)
Attachment #347530 - Flags: review?(dao) → review+
Attachment #347530 - Flags: approval1.9.1b2?
Target Milestone: Future → mozilla1.9.1b2
Comment on attachment 347530 [details] [diff] [review] Work around bug 458231 a=beltzner
Attachment #347530 - Flags: approval1.9.1b2? → approval1.9.1b2+
Pushed changeset aca67792c001 to mozilla-central.
Depends on: 479957
Depends on: 492960
Blocks: 506569
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: