using Gtk 4.0;using Adw 1;template $BzScreenshotPage: Adw.Bin {ShortcutController {Shortcut {trigger: "Left";action: "action(screenshot.previous)";}Shortcut {trigger: "Right";action: "action(screenshot.next)";}Shortcut {trigger: "<ctrl>plus|<ctrl>equal|<ctrl>KP_Add";action: "action(screenshot.zoom-in)";}Shortcut {trigger: "<ctrl>minus|<ctrl>KP_Subtract";action: "action(screenshot.zoom-out)";}Shortcut {trigger: "<ctrl>0|<ctrl>KP_0";action: "action(screenshot.zoom-reset)";}Shortcut {trigger: "<ctrl>c";action: "action(screenshot.copy)";}}child: Adw.BreakpointBin {width-request: 360;height-request: 100;Adw.Breakpoint {condition ("max-width: 700px")setters {mobile_caption_box.margin-bottom: 78;}}child: Adw.ToastOverlay toast_overlay {child: Adw.ToolbarView {top-bar-style: flat;extend-content-to-top-edge: true;styles ["view-dark",][top]Adw.HeaderBar header_bar {show-end-title-buttons: false;show-start-title-buttons: false;show-back-button: false;show-title: false;styles ["flat","header-osd",][start]Button {icon-name: "go-previous-symbolic";tooltip-text: _("Back");clicked => $back_clicked();styles ["flat",]}}content: Overlay overlay {[overlay]Box {halign: start;valign: end;margin-bottom: 18;margin-start: 18;spacing: 6;Box {spacing: 6;visible: bind $has_multiple_screenshots(template.screenshots) as <bool>;styles ["osd-box",]Button {icon-name: "go-previous-symbolic";tooltip-text: _("Previous Screenshot");action-name: "screenshot.previous";focusable: false;styles ["flat",]}Button {icon-name: "go-next-symbolic";tooltip-text: _("Next Screenshot");action-name: "screenshot.next";focusable: false;styles ["flat",]}}Box {styles ["osd-box",]Button {icon-name: "edit-copy-symbolic";tooltip-text: _("Copy Image");action-name: "screenshot.copy";styles ["flat",]}}}[overlay]Revealer {halign: center;valign: end;reveal-child: bind $is_valid_string(template.current-caption) as <bool>;transition-type: crossfade;can-target: false;child: Box mobile_caption_box {margin-bottom: 18;styles ["osd-box",]Label {halign: center;hexpand: true;label: bind template.current-caption;height-request: 34;justify: center;max-width-chars: 30;wrap: true;wrap-mode: word_char;margin-start: 8;margin-end: 8;styles ["heading",]}};}[overlay]Box {halign: end;valign: end;margin-bottom: 18;margin-end: 18;styles ["osd-box",]Revealer {reveal-child: bind template.is-zoomed;transition-type: slide_right;Button {icon-name: "zoom-original-symbolic";tooltip-text: _("Reset View");action-name: "screenshot.zoom-reset";styles ["flat",]}}Button {icon-name: "zoom-minus-symbolic";tooltip-text: _("Zoom Out");action-name: "screenshot.zoom-out";styles ["flat",]}Button {icon-name: "zoom-plus-symbolic";tooltip-text: _("Zoom In");action-name: "screenshot.zoom-in";styles ["flat",]}}child: Adw.Carousel carousel {can-focus: false;interactive: bind template.is-zoomed inverted;allow-scroll-wheel: bind template.is-zoomed inverted;allow-mouse-drag: bind template.is-zoomed inverted;allow-long-swipes: false;notify::position => $on_carousel_position_changed();};};};};};}