Closed Bug 626947 Opened 13 years ago Closed 1 month ago

secure lock (and open lock) not centred in the partition / location bar

Categories

(Camino Graveyard :: Location Bar & Autocomplete, defect)

1.9.2 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: phiw2, Assigned: stuart.morgan+bugzilla)

References

Details

Attachments

(4 files, 2 obsolete files)

The images (security_broken.tiff security_lock.tiff) are offset to the right by 1px. The 'body' of the images is an odd number (11px and 15px respectively).

on IRC a couple of ideas:
1) massage the image to at least have the appearance of centred - for secure lock a little bit of drop shadow effect _may_ do the trick (but might look too busy in the small space). Not sure what, if anything, can be done about open lock.
2) crop the image to 15x16px (instead of 16x16px) - by itself this results in a blurred image (*)
3) fix it in code. Smokey pointed to:
http://mxr.mozilla.org/camino/source/camino/src/browser/LocationBarPartitionView.mm#209
… or a combination of 2 and 3


(*) http://dev.l-c-n.com/camino/lock15x16.png
Flags: camino2.1?
Attached file cropped images (obsolete) —
The 2 images cropped to 15x16px that can be used for suggestion 2+3 above.
Attached image current display
Do we want centering when alone, or do we want consistent left and right visual margins around all the icons (lock and feed reader). If we only do the former, then the pair won't be centered when both show. If we do the later, the overall width will be different for closed vs open lock.

I'd prefer the latter; flipping between the two locks doesn't seem like a common case. To do that, we'd need the lock images cropped down to have consistent margins.
OS: Mac OS X → Windows 7
(In reply to comment #3)
 
> I'd prefer the latter; flipping between the two locks doesn't seem like a
> common case. To do that, we'd need the lock images cropped down to have
> consistent margins.

the security_broken.tiff image in attachment 504992 [details] has exactly 0 margin, where as security_lock.tiff has 2px margin on left and right side. What you'd want is for security_lock.tiff to 0px margin as well (for a file size of 11x16px), am I right ?
OS: Windows 7 → Mac OS X
(In reply to comment #3)

... or did you mean to have some margins other than 0 inside the image file (and both images the same amount) - I can prepare the two images to have 1px or 2px on each side (security_lock.tiff in attachment 504992 [details] has 2px).
0 on both would be fine
Attached file cropped images, version 2 (obsolete) —
(per comment 6)
Attachment #504992 - Attachment is obsolete: true
Assignee: nobody → stuart.morgan+bugzilla
With updated security_broken.tiff from bug 669540 but sliced to size as needed in this bug.
Attachment #505247 - Attachment is obsolete: true
Committer note: don't forget to http://wiki.caminobrowser.org/Development:Committing#Checking_in_patches_from_others on the images; you can commit them, then commit the code changes, and finally push both at once, if desired ;)
Whoops, I guess we didn't clear the 2.1? list…
Flags: camino2.1?
Flags: camino2.1.1?
Flags: camino2.1-
Flags: camino2.1.2?
Flags: camino2.1.1?
Flags: camino2.1.1-
Hi Phillipe,

the sliced and shaved lock icon has a negative side-effect: it's streched and (i think to 16x16 px) and looks blurred in the bar.

I've created an own centered lock icon, which looks much sharper in the bar.

Please compare them in the attached screenshot.

Regards
Mehmet
Attached image lock_icon_sharp
Please try it with the attached lock icon :-)
(In reply to Mehmet Sahin from comment #11)

> the sliced and shaved lock icon has a negative side-effect: it's streched
> and (i think to 16x16 px) and looks blurred in the bar.

Mehmet, that is expected. The (current) code that positions and sizes the icons expects larger images. The fix for this bug implies code changes, the attached icons are made for that. With a current Camino build, you should not use the attached images.
Okay, thanks for the clarification.
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: