Closed Bug 882178 Opened 11 years ago Closed 11 years ago

Fix navigation toolbar problems in small-icons mode (toolbar and throbber background).

Categories

(SeaMonkey :: Themes, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.21

People

(Reporter: philip.chee, Assigned: philip.chee)

References

(Blocks 1 open bug)

Details

(Keywords: modern)

Attachments

(3 files, 1 obsolete file)

From Bug #526210 Comment 16 Matt A. Tobin wrote:

> --- ISSUE: when in small icons mode on the navigation toolbar the background 
> goes from a gradient to a solid color and the throbber box has a background
> 
> --- SOLUTION (done): Apply the background to the small icons mode and reenforce 
> no background on the throbber box with an !important decoration.
>
Summary: Fix long standing issues with the SeaMonkey Modern Theme → Fix navigation toolbar problems in small-icons mode (toolbar and throbber background).
Attachment #761510 - Flags: review?(neil)
Attachment #761510 - Flags: feedback?(email)
Why did you mark this as "meta" in the keywords?
Looks like you're solving a single issue here.
> Why did you mark this as "meta" in the keywords?
oops clone copies too much data over.
Keywords: meta
Comment on attachment 761510 [details] [diff] [review]
Patch 1.0 based on fix by Matt A. Tobin

> #nav-bar[iconsize="small"] > .toolbar-primary-holder {
>-  background: #D0D7DF;
>+  background-color: #D0D7DF;
> }
Not sure why this was ever here (it dates to bug 68136) but there's no point just changing the colour, you might as well remove the style completely.

>+.toolbar-primary #throbber-box,
No idea what the point of this is supposed to be.
Attachment #761510 - Flags: review?(neil) → review-
If I recall correctly the throbber needs a background in mailnews for that line between the icon and the text labels to make it stop. I will have to check to see if that piece of code is for that or not. Will report back.
>> #nav-bar[iconsize="small"] > .toolbar-primary-holder {
>>-  background: #D0D7DF;
>>+  background-color: #D0D7DF;
>> }
> Not sure why this was ever here (it dates to bug 68136) but there's no point
> just changing the colour, you might as well remove the style completely.
Fixed.

>>+.toolbar-primary #throbber-box,
> No idea what the point of this is supposed to be.

In modern/communicator/brand.css we have:

> .toolbar-primary #throbber-box {
>   background: url("chrome://communicator/skin/toolbar/prtb-bg-noline.gif") #B1BDC9 repeat-x top;
> }

This isn't noticeable in large icon mode (or icon+text) because the primary-toolbar-holder also has the same background image.
In small icon mode the background image on the toolbar-holder is gone so the background image on the throbber-box clashes.
Removing the first hunk completely:

>- #nav-bar[iconsize="small"] > .toolbar-primary-holder {
>-   background: #D0D7DF;
 
And the background images match again.

>>+.toolbar-primary #throbber-box,
> No idea what the point of this is supposed to be.

This turns off the background image on the throbber box and relies on the primary-toolbar-holder background.

> .toolbar-primary #throbber-box,
> #throbber-box {
>   background: none; /* override bg used to cover toolbar line */
>   margin: 0px 0px 2px;
> }

This bit isn't necessary but it's tidying up a loose end.
Assignee: nobody → philip.chee
Attachment #761510 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #761510 - Flags: feedback?(email)
Attachment #761954 - Flags: ui-review?(email)
Attachment #761954 - Flags: review?(neil)
(In reply to Philip Chee from comment #6)
> (In reply to comment #4)
> > (From update of attachment 761510 [details] [diff] [review])
> > >+.toolbar-primary #throbber-box,
> > No idea what the point of this is supposed to be.
> This turns off the background image on the throbber box and relies on the
> primary-toolbar-holder background.
Ah, so what happened here is that bug 575956 changed the background image rule to only affect the throbber box on the primary toolbar, but navigator.css was never updated. The correct fix is to change the rule, not add a new one.
Comment on attachment 761954 [details] [diff] [review]
Patch v1.1 Remove toolbar-primary-holder rule completely

> /* ::::: navigator throbber ::::: */
> 
>+.toolbar-primary #throbber-box,
> #throbber-box {
r=me with the rule edited instead of added.
Attachment #761954 - Flags: review?(neil) → review+
Blocks: 575956
>>+.toolbar-primary #throbber-box,
>> #throbber-box {
> r=me with the rule edited instead of added.
Fixed.
Attachment #762046 - Flags: ui-review?(email)
Attachment #762046 - Flags: review+
Attachment #762046 - Attachment description: Patch v1.2 for check-in r=Neil → Patch v1.2 (Original fix by Matt A. Tobin) for check-in r=Neil
Comment on attachment 762046 [details] [diff] [review]
Patch v1.2 (Original fix by Matt A. Tobin) for check-in r=Neil [check-in Comment 12]

Review of attachment 762046 [details] [diff] [review]:
-----------------------------------------------------------------

This current version of the patch seems to fix the navibar/throbber issues as described. I am happy with it.
Attachment #761954 - Flags: ui-review?(email)
Attachment #762046 - Flags: ui-review?(email) → ui-review+
Comment on attachment 762046 [details] [diff] [review]
Patch v1.2 (Original fix by Matt A. Tobin) for check-in r=Neil [check-in Comment 12]

Pushed to comm-central a=Callek CLOSED TREE
Attachment #762046 - Attachment description: Patch v1.2 (Original fix by Matt A. Tobin) for check-in r=Neil → Patch v1.2 (Original fix by Matt A. Tobin) for check-in r=Neil [check-in Comment 12]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: