granite icon indicating copy to clipboard operation
granite copied to clipboard

Add Zoom Controls widgets

Open wpkelso opened this issue 6 months ago • 1 comments

Problem

Zoom buttons and scales are used in a fair amount of apps. The buttons (or the idea styled the same) are used in at least Web, Code, Files, and -- in the community -- Jorts. The scale is less used, but it is still present in Photos, and probably some other community apps. Therefore, I think it's reasonable to provide a widget built into the library, so that all uses will have common accelerators, styling, etc., and we don't have to repeat ourselves so many times across apps.

Proposal

Add two widgets:

  • Zoom buttons
  • Zoom scale

Prior Art (Optional)

Image Image

wpkelso avatar Jul 04 '25 18:07 wpkelso

You can freely grab from ZoomBox if you want: https://github.com/ellie-commons/jorts/blob/main/src/Widgets/PopoverWidgets/ZoomBox.vala

teamcons avatar Nov 11 '25 08:11 teamcons