Closed Bug 326872 Opened 18 years ago Closed 16 years ago

Make tab site icons (favicons) the same size as in the location bar

Categories

(Camino Graveyard :: Tabbed Browsing, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alqahira, Assigned: chris)

References

()

Details

(Whiteboard: l10n)

Attachments

(8 files, 4 obsolete files)

Right now the favicons in the tab bar are 1-2px smaller in each dimension than the ones in the location bar.  This leads to blurry favicons, exacerbating bug 310630, and also rendering some favicons that are legible at 16px (location bar) illegible in the tab (bug 310630 comment 18).

This will apparently require increasing the height of the tab bar by a pixel or so, but I think it would be a UE win.  

Sam's got some other tabs work tentively targeted at 1.2, so putting this there, too, to start.
Blocks: 338983
Assignee: mikepinkerton → d.elliott
QA Contact: tabbed.browsing
Status: NEW → ASSIGNED
No longer blocks: 338983
Not currently working on this, freeing up
Assignee: d.elliott → nobody
Status: ASSIGNED → NEW
Mass un-setting milestone per 1.6 roadmap.

Filter on RemoveRedonkulousBuglist to remove bugspam.

Developers: if you have a patch in hand for one of these bugs, you may pull the bug back to 1.6 *at that point*.
Target Milestone: Camino1.6 → ---
Attached patch One line fix (obsolete) — Splinter Review
Quick fix that makes the tab icons 16x16 (thanks, Pixie.app). The vertical padding is razor-thin now, so I would value others' comments. If we want taller tabs, I can do that as well; it would involve increasing the tab bar height in BrowserWindow.nib. The tab item images (backgrounds and divider) will have to be modified too, or the drawRect method changed to tile the images vertically, though I think changing the images would be the better option.

Note: this doesn't fix Bug 310630, as the BBC favicon is now blurry in both the tab bar and location bar.
Assignee: nobody → trendyhendy2000
Status: NEW → ASSIGNED
Attachment #346627 - Flags: review?
Attached patch Two Line Fix (obsolete) — Splinter Review
Modifies the bottom padding so that the distances between the tops of the icon and text label are the same as before the patch. It's only a one pixel difference, but people notice. The bigger icons are now right up against the bottom of the tab, so we may need to bump the tab height up a couple of pixels.
Attachment #346627 - Attachment is obsolete: true
Attachment #346639 - Flags: review?
Attachment #346627 - Flags: review?
Attached image Before the fix
Screenshot of the current behaviour. Note the blurriness of the icons.
Attached image After the one line fix
No longer blurry, but the text is ever so slightly above centre.
Attached image After the two line fix
Icon not blurry, text nicely centred, but the icon is scraping the bottom of the tab. I can centre the text and have a gap below the icon by using the one line patch and adding the following line to TruncatingTextAndImageCell.mm:129

textRect.origin.y -= 1.0;

which is quite hacky.
Neither of the second two screenshots (particularly the bg tabs) look as good as the original one in terms of the overall appearance of the tab widget; I think we really have to bite the bullet and increase the tab bar height if we want to fix this.
The only difference between the original one and the one after the two line fix is a single pixel vertical gap below the icon. To make the padding the same as the original, we'd have to increase the tab height by one pixel in the nib and the tiffs. That's doable, but before I do that we should decide whether we want even taller tabs. Right now they are 22 px, and Firefox's are ~24 px. Safari's are even shorter than ours, but they don't have icons.
Attached image 24 pixel high tabs
Screenshot of what 24 pixel high tabs look like. Involved editing 6 tiffs and tweaking a few constants in the source code. I like it. Gives a bit more room for the favicons.
Comment on attachment 346639 [details] [diff] [review]
Two Line Fix

Removing review, as the fix will probably involve more than these two lines.
Attachment #346639 - Flags: review?
I should point out that having 24 pixel high tabs means that background tabs have the same layout as bookmark bar entries. By that I mean that there is a 2 pixel gap between the icon and the top and bottom of the tab, and the tab height is 20 pixels. The extra 4 pixels are in the beveled strip between the tab bar and browser view.
[12:45pm] pinkerton: i say ship it

Also from the meeting, a nib will need some changing here, so this needs to be in before b1.
Flags: camino2.0b1?
Whiteboard: l10n
Attached patch Fix v1.0 (obsolete) — Splinter Review
Code part of the fix. Changes a couple of constants, and nudges the text label a bit so it looks nice and centred.

Full fix requires this patch, the new BrowserWindow.nib, and the 6 replacement tab tiffs.
Attachment #346639 - Attachment is obsolete: true
Attachment #349908 - Flags: review?
Attached file BrowserWindow.nib
BrowserWindow.nib, modified with the latest IB 2.5 on 10.5. Only change is that the height of the tab bar view was increased to 24px.
Attached file Tab images
The new tab images, increased to 24px high.
Attachment #349908 - Flags: review? → review?(Jeff.Dlouhy)
Here is a screenshot that shows the 24px tab bar and the 22px high bookmark bar. I believe there is beauty in symmetry and the tab bar should stay at 22px and not enlarged to 24px.

Also, should the overflow tab arrows be adjusted to be vertically centered?
Comment on attachment 349908 [details] [diff] [review]
Fix v1.0

I believe the overflow arrows need to be adjusted as well to be vertically centered for the new 24px height.

The code and images are fine for the most part. I addressed my other concerns in attachment 350270 [details].

r-
Attachment #349908 - Flags: review?(Jeff.Dlouhy) → review-
Attached patch Fix v1.1 (obsolete) — Splinter Review
Vertically centres the overflow buttons.

The tabs are the same height as the bookmark bar; a 16x16 favicon has 2 pixels of 'whitespace' above and below it on both. The extra height comes from the divider between the tabs and the content view.

Personally, I see no reason to have the two bars the same height - they are functionally different and needn't be constrained by each other. I don't have a 22px high main toolbar, either.

> I believe there is beauty in symmetry

Some people don't even have a 22px bookmark bar (one with 2+ rows), so there is no symmetry for them.
Attachment #349908 - Attachment is obsolete: true
Attachment #351215 - Flags: review?(Jeff.Dlouhy)
(We need to remember to file a bug against me on updating the tab theme docs for 2.0 when this lands.)
Attachment #351215 - Flags: review?(Jeff.Dlouhy) → review+
Comment on attachment 351215 [details] [diff] [review]
Fix v1.1

I'll give in.

:-P

r=me.
Attachment #351215 - Flags: superreview?(mikepinkerton)
Comment on attachment 351215 [details] [diff] [review]
Fix v1.1

sr=pink.

+  textRect.origin.y -= 1.0;

maybe a comment on why this is necessary is warranted?
Attachment #351215 - Flags: superreview?(mikepinkerton) → superreview+
That line now has an explanatory comment.

Thanks for the sr, Mike.
Attachment #351215 - Attachment is obsolete: true
Attachment #353095 - Flags: superreview+
Landed on cvs trunk!

hendy, can you please do comment 20 (Product Site component, me as owner)?
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: camino2.0b1? → camino2.0b1+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: