summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/IncrementalSearchBanner.gml
blob: 55c250a6260558fcedbfa032dfd837ae9479d2ba (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@GUI::Widget {
    fill_with_background_color: true
    visible: false
    layout: @GUI::HorizontalBoxLayout {
        margins: [4]
    }

    @GUI::TextBox {
        name: "incremental_search_banner_search_textbox"
        max_width: 250
        preferred_width: "grow"
        placeholder: "Find"
    }

    @GUI::Widget {
        preferred_width: "shrink"
        layout: @GUI::HorizontalBoxLayout {
            spacing: 0
        }

        @GUI::Button {
            name: "incremental_search_banner_previous_button"
            icon: "/res/icons/16x16/go-up.png"
            fixed_width: 18
            button_style: "Coolbar"
            focus_policy: "NoFocus"
        }

        @GUI::Button {
            name: "incremental_search_banner_next_button"
            icon: "/res/icons/16x16/go-down.png"
            fixed_width: 18
            button_style: "Coolbar"
            focus_policy: "NoFocus"
        }
    }

    @GUI::Label {
        name: "incremental_search_banner_index_label"
        text_alignment: "CenterLeft"
    }

    @GUI::Layout::Spacer {}

    @GUI::Widget {
        preferred_width: "shrink"
        layout: @GUI::HorizontalBoxLayout {
            spacing: 0
        }

        @GUI::Button {
            name: "incremental_search_banner_wrap_search_button"
            fixed_width: 24
            icon: "/res/icons/16x16/reload.png"
            tooltip: "Wrap Search"
            checkable: true
            checked: true
            button_style: "Coolbar"
            focus_policy: "NoFocus"
        }

        @GUI::Button {
            name: "incremental_search_banner_match_case_button"
            fixed_width: 24
            icon: "/res/icons/16x16/app-font-editor.png"
            tooltip: "Match Case"
            checkable: true
            button_style: "Coolbar"
            focus_policy: "NoFocus"
        }
    }

    @GUI::VerticalSeparator {}

    @GUI::Button {
        name: "incremental_search_banner_close_button"
        fixed_size: [15, 16]
        button_style: "Coolbar"
        focus_policy: "NoFocus"
    }
}