using Gtk 4.0;
using Adw 1;

template $PipeTapUiSliderOverlay: $PipeTapUiFloatingWindow {
    title: _("PipeTap Slider");

    content: Gtk.Box content_box {
        orientation: bind template.orientation;
        halign: fill;
        spacing: 10;

        Separator spacer {
            styles [
                "spacer",
            ]
        }

        Scale scale {
            orientation: bind template.orientation;
            vexpand: true;
            hexpand: true;
            halign: fill;
            valign: fill;

            adjustment: Adjustment {
                lower: 0;
                upper: 1000;
                step-increment: 1;
                value: 500;
            };

            styles [
                "pt-slider",
            ]
        }

        Gtk.ToggleButton lock_btn {
            icon-name: "camera-iso-symbolic";
            tooltip-text: _("Lock");

            styles [
                "flat",
            ]
        }
    };
}
