summaryrefslogtreecommitdiff
path: root/Userland/Applications/BrowserSettings/AutoplaySettingsWidget.gml
blob: 1e2ccbb44b09c62f285855e2835a087467f6ba45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@GUI::Frame {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [8]
    }

    @GUI::CheckBox {
        name: "allow_autoplay_on_all_websites_checkbox"
        text: "Allow media to automatically play on all websites"
    }

    @GUI::GroupBox {
        title: "Autoplay allowlist"
        layout: @GUI::VerticalBoxLayout {
            margins: [8]
        }

        @GUI::ListView {
            name: "allowlist_view"
        }

        @GUI::Widget {
            fixed_height: 32
            layout: @GUI::HorizontalBoxLayout {}

            @GUI::Layout::Spacer {}

            @GUI::Button {
                name: "add_website_button"
                fixed_width: 100
                text: "Add Website..."
            }
        }
    }
}