Closed
Bug 407931
Opened 17 years ago
Closed 17 years ago
Switch from buttonstyle to mode
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
References
Details
Attachments
(2 files, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
stefanh
:
review+
iannbugzilla
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
Toolkit uses toolbar[mode="icons"] instead of *[buttonstyle="pictures"] and similar changes are needed for text-only toolbars.
Assignee | ||
Comment 1•17 years ago
|
||
Obviously I've only tried this out on Windows...
Assignee: guifeatures → neil
Status: NEW → ASSIGNED
Attachment #292618 -
Flags: superreview?(jag)
Attachment #292618 -
Flags: review?(stefanh)
Attachment #292618 -
Flags: review?(iann_bugzilla)
Comment 2•17 years ago
|
||
Comment on attachment 292618 [details] [diff] [review]
Proposed patch
Index: suite/themes/modern/jar.mn
This change is part of a different bug, right?
Also, why are you removing the #nav-bar-buttons bits?
Attachment #292618 -
Flags: superreview?(jag) → superreview+
Comment 3•17 years ago
|
||
(In reply to comment #2)
> Index: suite/themes/modern/jar.mn
> This change is part of a different bug, right?
Bug 240393
> Also, why are you removing the #nav-bar-buttons bits?
Bug 407744 removed the #nav-bar-buttons
Assignee | ||
Comment 4•17 years ago
|
||
(In reply to comment #3)
> (In reply to comment #2)
> > Also, why are you removing the #nav-bar-buttons bits?
> Bug 407744 removed the #nav-bar-buttons
That change was supposed to be part of this patch. It's needed for bug 394288. I must have edited that out instead of the jar.mn change by mistake.
Comment 5•17 years ago
|
||
Oops I confused toolbar_button_box with nav-bar-buttons
Assignee | ||
Comment 6•17 years ago
|
||
OK, this version should have all the missing bits.
Attachment #292618 -
Attachment is obsolete: true
Attachment #292958 -
Flags: review?(stefanh)
Attachment #292958 -
Flags: review?(iann_bugzilla)
Attachment #292618 -
Flags: review?(stefanh)
Attachment #292618 -
Flags: review?(iann_bugzilla)
Comment 7•17 years ago
|
||
> +toolbar[mode="text"] > .toolbarbutton-1 > ....
[18:13:10] <stefanh> NeilAway: the child selectors
[18:36:59] <NeilAway> stefanh: also the worst that can happen is that during customisation you see both icons and text
Neil, I think that this is unacceptable. For example if the toolbar is currently in smallicon+icononly mode and you enter customization, the toolbar buttons will become large, acquire text labels and the padding and margins will change. I find this rather unpleasant. In Minefield, the iconsize/mode of the toolbar buttons do not change when customization is entered.
I hope that you will reconsider and make the first child selector a descendant selector instead e.g.:
toolbar[mode="text"] .toolbarbutton-1 > ....
I thought of adding additional rules such as:
toolbar[mode="text"] > * > .toolbarbutton-1 > ....
But decided that this would be too unwieldy. In addition it is theoretically possible that an extension could do something like:
<toolbaritem>
<toolbarbutton .../>
<toolbarbutton .../>
</toolbaritem>
So descendant selectors please? I shall be in your debt forever (or until next Thursday, whichever comes first).
Comment 8•17 years ago
|
||
Comment on attachment 292958 [details] [diff] [review]
Updated patch
I can't make this work on mac, no matter how I try I can't change the pref.
Comment 9•17 years ago
|
||
(In reply to comment #8)
> (From update of attachment 292958 [details] [diff] [review])
> I can't make this work on mac, no matter how I try I can't change the pref.
>
Uh, forget about it (old tree + missed a few bits from the patch)
Assignee | ||
Comment 10•17 years ago
|
||
This version uses descendent selectors so it should be a bit smaller.
Attachment #293331 -
Flags: review?(stefanh)
Attachment #293331 -
Flags: review?(iann_bugzilla)
Comment 11•17 years ago
|
||
(In reply to comment #10)
> This version uses descendent selectors so it should be a bit smaller.
Thanks for that Neil.
> + chromeclass="chromeclass-toolbar-additional"
Sorry for sounding dense, but how does chromeclass="foo" work? I've looked for css rules that use this, and for inherit directives in xbl bindings and failed to find anything relevant. In fact I can't find anything in LXR that uses |chromeclass=| .
Assignee | ||
Comment 12•17 years ago
|
||
Comment on attachment 293331 [details] [diff] [review]
Alternative version
It occurs to me that switching to descendant selectors deserves a new superreview.
Attachment #293331 -
Flags: superreview?(jag)
Assignee | ||
Comment 13•17 years ago
|
||
(In reply to comment #11)
>Sorry for sounding dense, but how does chromeclass="foo" work?
http://mxr.mozilla.org/seamonkey/source/toolkit/content/xul.css#40
Assignee | ||
Comment 14•17 years ago
|
||
jag pointed out what Ratty meant...
Attachment #293331 -
Attachment is obsolete: true
Attachment #293384 -
Flags: superreview?(jag)
Attachment #293384 -
Flags: review?(stefanh)
Attachment #293384 -
Flags: review?(iann_bugzilla)
Attachment #293331 -
Flags: superreview?(jag)
Attachment #293331 -
Flags: review?(stefanh)
Attachment #293331 -
Flags: review?(iann_bugzilla)
Updated•17 years ago
|
Attachment #293384 -
Flags: superreview?(jag) → superreview+
Updated•17 years ago
|
Attachment #293384 -
Flags: review?(stefanh) → review+
Comment 15•17 years ago
|
||
Comment on attachment 293384 [details] [diff] [review]
Fixed version
Looks good to me and not spotted in problems in use over the last few days.
Attachment #293384 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Comment 16•17 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Attachment #292958 -
Flags: review?(stefanh)
Attachment #292958 -
Flags: review?(iann_bugzilla)
You need to log in
before you can comment on or make changes to this bug.
Description
•