File: settings_window.blp

package info (click to toggle)
wordbook 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 752 kB
  • sloc: python: 1,460; xml: 9; makefile: 2
file content (47 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (2)
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
using Gtk 4.0;
using Adw 1;

template $SettingsDialog: Adw.PreferencesDialog {
    content-width: 450;
    content-height: 350;

    Adw.PreferencesPage {
        Adw.PreferencesGroup appearance {
            title: _("Appearance");

            Adw.SwitchRow dark_ui_switch {
                title: _("Force Dark Mode");
            }
        }

        Adw.PreferencesGroup {
            title: _("Behavior");

            Adw.SwitchRow live_search_switch {
                title: _("Live Search");
                subtitle: _("Show definition as the terms are typed in");
            }

            Adw.SwitchRow double_click_switch {
                title: _("Double Click Search");
                subtitle: _("Search any word by double clicking on it");
            }

            Adw.SwitchRow auto_paste_switch {
                title: _("Auto Paste on Launch");
                subtitle: _("Automatically paste and search clipboard content on launch");
            }

            Adw.ComboRow pronunciations_accent_row {
                title: _("Pronunciations Accent");

                model: StringList {
                    strings [
                        "American English",
                        "British English",
                    ]
                };
            }
        }
    }
}