Closed Bug 171013 Opened 22 years ago Closed 21 years ago

Fix and hookup toolbars (based on bug 22056) as text/icons/both in Modern.

Categories

(SeaMonkey :: Themes, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.4alpha

People

(Reporter: jasonb, Assigned: shliang)

References

Details

(Keywords: helpwanted, relnote, Whiteboard: [adt2])

Attachments

(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20020926
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20020926

From the last comment in bug 22056:

"I think that we can fix each of those in other bugs, the core is fixed:
* modern navigator looks odd because the throbber shrinks"

So - I'm opening a bug on the specific issue.  (I checked over the last two
days, but could find nothing else.)

I don't know if the above is the reason that the toolbar fix doesn't work under
Win32/Modern (I would have assumed it would have been checked in anyway and a
bug would have been opened on the "shrinking throbber" issue specifically).

In any case, I see the preferences in existence under Preferences -> Appearance
but they don't do anything.

Reproducible: Always

Steps to Reproduce:
1. Preferences -> Appearances.
2. Change the radio box between "Pictures and text", "Pictures only", and "Text
only".

Actual Results:  
Toolbar UI should change.

Expected Results:  
Nothing happens.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Jason, just a tip, you dont need to cc yourself to the bug. You are the 
reporter so you will get the mails.
cc-ing yourself makes for easy searching though.
Thanks for the tip - I know.  I do it so that I can do a simple Bugzilla query
of every bug I'm currently following - if I want a bug off of my radar I take
myself off the CC list.

> cc-ing yourself makes for easy searching though.

Oops!  Mid-air collision.   Exactly. <grin>  Now back to the actual bug...
not preferences
Component: Preferences → Skinability
QA Contact: sairuh → pmac
whoops
Assignee: ben → shliang
Component: Skinability → Themes
> not preferences

Odd.  I just used the same component that the original bug 22056 had been filed
against - assuming it would be the same.  Oh, well.
Component: Themes → Preferences
What the ...?  I didn't change it back to Preferences.

-> Themes again.  (?)
Component: Preferences → Themes
In the classic theme and "picture only", the search button still
has both picture and text.
Please open a separate bug on Classic theme issues.
Keywords: mozilla1.2
Attached file Proposed fix
Edited navigator.css to show toolbar button text, but the only problem now is
that the little down arrow to go forward sometimes covers up the "rd" of the
"Forward" text.
Comment on attachment 103875 [details]
Proposed fix

>PK
Attachment #103875 - Attachment is patch: false
Disregard the last comment, and the proposed fix attachment.  Here's what I
changed:  (skins\modern\navigator\navigator.css)

/* Hides text below the above buttons */
.toolbarbutton-1 > stack > .toolbarbutton-menubutton-button 
  > .toolbarbutton-text,
.toolbarbutton-1 > .toolbarbutton-text {
  display: all;                                /* original value display: none */
}

/* ..... dropmarker box ..... */

#back-button > .toolbarbutton-menubutton-stack
    > .toolbarbutton-menubutton-dropmarker,
#forward-button > .toolbarbutton-menubutton-stack
    > .toolbarbutton-menubutton-dropmarker
{
  margin: 30px 0px 15px 34px;              /*original values 30px 0px 0px 34px */
}

/* ::::: navbar-inner - the grooved area around the urlbar ::::: */

#nav-bar-inner {
  -moz-box-align: center;
  margin: 7px 0px 7px 5px;                  /* original values 7px 0px 0px 5px */
  border: 2px solid;
  -moz-border-top-colors: #A2AFBD #EBF4FF;
  -moz-border-right-colors: #D1D9E0 #A2AFBD;
  -moz-border-bottom-colors: #CFD7DE #939EAA;
  -moz-border-left-colors: #9FABB9 #D2DAE1;
  -moz-border-radius: 3px;
  padding: 0px 3px;
  min-width: 0px;
}


That's it.  I also embedded a new preview.gif with the updated icons.  
To download my modified modern.jar file, go to http://www.cs.swt.edu/~as1130/new/

and download either modern11.zip for mozilla 1.1 or modern12b.zip for mozilla1.2b.
*** Bug 175409 has been marked as a duplicate of this bug. ***
Text doesn't work in Linux or OS/2 either. -> OS=All

1.2 milestone is long gone. Does this need to be reassigned to nobody?
OS: Windows XP → All
Summary: Fix and hookup toolbars as text/icons/both under Win32/Modern. → Fix and hookup toolbars as text/icons/both in Modern
Keywords: nsbeta1
Hardware: PC → All
Nav triage team: nsbeta1-
Keywords: nsbeta1nsbeta1-
renominating. this feature is exposed in the prefs UI (Appearance panel) and
does not work.
Keywords: nsbeta1-nsbeta1
chatted w/samir: not enough resources to hide the UI, so will relnote (and
adding helpwanted).
Keywords: nsbeta1helpwanted, nsbeta1-
redux...
Keywords: nsbeta1-nsbeta1
Nav triage team: nsbeta1+/adt2
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt2]
Target Milestone: --- → mozilla1.4alpha
Attached patch patch (obsolete) — Splinter Review
Attached image screenshots
remove groove around urlbar when text-only to save vertical space, adjusted
spacing in various other places
Attachment #117886 - Flags: superreview?(jaggernaut)
Attachment #117886 - Flags: review?(varga)
QA Contact: pmac → gbush
Is there a screenshot of text and icons together?  (You've got what looks like
two of icons only, although they're oddly different if you look at the search
button, and one of text only - which looks good.)  Or - is search the only
element that will actually combine text with an icon?
text and icons would be the first one in the screenshots (what it looks like 
currently - the modern skin does not normally have text under the toolbar 
buttons in navigator)
In that case I've completely misunderstood this bug (and bug 22056). <grin>

I thought that the summary was pretty clear - that you should be able to have
text / icons / or both text and icons with the Modern theme.  Perhaps part of
the confusion was that, despite the summary, my comment 0 indicated that it was
just extending bug 22056 into the Modern theme.

Should the summary of this bug be changed to read "Fix and hookup search
function as text/icon/both in Modern?"  (It looks now as if that's the only
element to which this summary actually applies.)  Because, given the current
summary, this patch isn't going to solve what I thought I'd originally filed...

Should I file a new bug on actually having "Preferences -> Show toolbars as"
make sense with the Modern theme (i.e. putting text under the toolbar buttons)?
shliang's right, the browser window in modern doesn't have text under the icons.

however, other windows (mailnews 3pane, composer, mail compose, address book,
aim compose (nscp only)) in modern do have icon+text. would we be able to
provide icon-only and text-only versions toolbars for those windows as well?
Attached image mail toolbars
ok. i thought this bug was to make the text/pictures pref do something
sensible, given the current design of modern, which is what i did.

this feature was always working but appeared not to be in navigator because
there is no text under the buttons. so it did work in other windows, i just did
a little bit of cleanup there. 

i am not sure i want to add the option of having text below the toolbarbuttons
because there is no text there by design, which is the default, default being
the "text and pictures" option. then the way it currently looks would turn into
the "pictures only" option, which i don't think we want.

then there are the other windows to consider, right now there is a combination
of "pictures only" in navigator and "text and pictures" in everything else
which doesn't fit into one option. we would have to pick the same one for
everything then which would probably mean that the default for navigator in
modern would have both text and pictures, which would change the original
design, which i can't do without approval etc (and also doesn't look that good
visually)
Right.  My real problem is the same as what sairuh indicates in comment 17.

The Preferences UI indicates that you can see the toolbars as icons, text, or
both.  The normal expectation of people selecting "both" would be to see both
everywhere, and not just in one or two places. <grin>  (Such an expectation is
borne out by many other interfaces in which *all* elements change based on such
a preference.)

Don't get me wrong - the implementation of being able to switch between just
text and just icons (which this patch will do) is a *big* improvement, and
should definitely be checked in here - at the very least as a partial fix. 
(Then, at least, the preference would do *something*, even if not *everything*
one might expect.)

If text cannot be added to existing icons (where it doesn't currently exist) an
alternative solution to this bug (in addition to the suggested patch) would be
to simply remove the "Both" option from the preferences UI - assuming that it's
even possible to do that, since it should only be removed if Modern is being used.

However, that also presents other difficulties, as mentioned in comment 27,
because Both *IS* currently the default, and anybody who sees toolbars other
than those used by Navigator, or who has the Search button displayed, currently
will be used to Both in those cases - and would complain quite strongly if they
were suddenly forced to see only text or icon representation.

FWIW: I've always been assuming that I'd only been seeing icons in my toolbars -
because I don't have the Search button displayed, and I only use Navigator.  It
was only when I (just now) explicitly looked at my settings that I discovered
it had been set to Both.  The behaviour the Navigator toolbar currently exhibits
for both (in my case) led me to believe that Icons was the default.

Given all of this, what I'm tempted to do here is to leave this bug exactly as
shliang assumed it to be - so that if the proposed patch is checked in, this bug
will be resolved.  However, I think I should *also* open a separate bug, setting
this bug as a dependency, for adding text to the Navigator buttons in Modern
(and any other toolbar element that doesn't currently have it) so that the
existing preference actually make sense for anybody who uses "Both" as their
preference setting.

Any comments / objections to doing this?  (Does anybody think that it should all
be covered in this bug?  Or is it simpler to break these two issues apart?)
Summary: Fix and hookup toolbars as text/icons/both in Modern → Fix and hookup toolbars as text/icons/both in Modern.
yes, that makes sense (breaking the issues apart)  
Filed bug 198476, and modifying summary to be explicit on what this bug's goals are.
Blocks: 198476
Summary: Fix and hookup toolbars as text/icons/both in Modern. → Fix and hookup toolbars (based on bug 22056) as text/icons/both in Modern.
Comment on attachment 117886 [details] [diff] [review]
patch

I just remembered another way of making nav-bar-inner sync up with nav-bar:

<hbox id="nav-bar-inner" flex="1">
  <observes element="nav-bar" attribute="buttonstyle"/>
  <!-- rest of nav-bar-inner -->
Re the screenshots in comment 22: there is much too much horizontal whitespace
between main "buttons" in text-only. What resolution were those shots made
using? A (the?) reason to choose text-only is to minimize space consumption by
the toolbar buttons.
Attached patch patchSplinter Review
Attachment #117886 - Attachment is obsolete: true
Attachment #118163 - Flags: superreview?(jaggernaut)
Attachment #118163 - Flags: review?(varga)
Attachment #117886 - Flags: superreview?(jaggernaut)
Attachment #117886 - Flags: review?(varga)
Comment on attachment 118163 [details] [diff] [review]
patch

r=varga
Attachment #118163 - Flags: review?(varga) → review+
Comment on attachment 118163 [details] [diff] [review]
patch

sr=jag
Attachment #118163 - Flags: superreview?(jaggernaut) → superreview+
resolving
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
looks good on Win and Linux, waiting for Mac build
Mac build 2003032803
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: