Closed Bug 869933 Opened 11 years ago Closed 11 years ago

The zoom control should show current zoom level

Categories

(Firefox :: Toolbars and Customization, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: u428464, Assigned: mikedeboer)

References

Details

Attachments

(1 file, 3 obsolete files)

The reset button of Australis zoom controls (zoom out/reset/zoom in) currently always shows 100%. It would be more useful to have it indicate the current zoom level (especially for casual users). I can say taking into account what I've read on forums that it is the expected behavior (FWIW Google Chrome does it like that).

Resetting zoom could still be the button's default action or it should become only an indicator. UX feedback needed on this.
Blocks: 869104
Assignee: nobody → mdeboer
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #748789 - Flags: review?(jaws)
Comment on attachment 748789 [details] [diff] [review]
Adjust zoom reset button label whilst zooming in/out

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

This patch doesn't work for synthetic documents (standalone images and standalone videos). You can test it with http://video.webmfiles.org/big-buck-bunny_trailer.webm.

This is because we don't store the zoom setting for synthetic documents, and the code in browser-fullZoom.js short-circuits before notifying observers in the case of .mozSyntheticDocument.

::: browser/locales/en-US/chrome/browser/browser.properties
@@ +457,5 @@
>  slowStartup.disableNotificationButton.label = Don't Tell Me Again
>  slowStartup.disableNotificationButton.accesskey = A
> +
> +# LOCALIZATION NOTE(zoomReset.label): %S is the current zoom level.
> +zoomReset.label = %S%

This needs to have two percentage characters to show a percentage sign. See https://developer.mozilla.org/en-US/docs/XUL/Tutorial/Property_Files#Text_Formatting for more details.
Attachment #748789 - Flags: review?(jaws) → review-
fire events early and properly escape '%'
Attachment #748789 - Attachment is obsolete: true
Attachment #748864 - Flags: review?(jaws)
Comment on attachment 748864 [details] [diff] [review]
Adjust zoom reset button label whilst zooming in/out

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

Everything looks good except we should investigate why we need all the .init() calls in browser-fullZoom.js. I sure hope not all of those are necessary :)
Attachment #748864 - Flags: review?(jaws)
Removed all the init() calls and introduced a less disruptive change: call `FullZoom.init()` BEFORE `Panel().init()` in browser.js.
Attachment #748864 - Attachment is obsolete: true
Attachment #749214 - Flags: review?(jaws)
Comment on attachment 749214 [details] [diff] [review]
Adjust zoom reset button label whilst zooming in/out

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

::: browser/components/customizableui/content/panelUI.inc.xul
@@ +29,5 @@
>                           noautoclose="true" label="&fullZoomReduceCmd.label;"
>                           command="cmd_fullZoomReduce"
>                           tooltiptext="&zoomOutButton.tooltip;"/>
>            <toolbarbutton id="PanelUI-zoomReset-btn" flex="1"
> +                         noautoclose="true" label=""

This label attribute can be removed here.
Attachment #749214 - Flags: review?(jaws) → review+
removed label. Carrying over r=jaws
Attachment #749214 - Attachment is obsolete: true
Attachment #749343 - Flags: review+
Pushed: http://hg.mozilla.org/projects/ux/rev/e545d3da3300
Whiteboard: [fixed-in-ux]
Blocks: 881131
No longer blocks: 881131
Depends on: 881131
https://hg.mozilla.org/mozilla-central/rev/e545d3da3300
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-ux]
Target Milestone: --- → Firefox 28
Depends on: 1089246
Blocks: 1348122
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: