Popup:
    id: nd
    title: _('Server')
    BoxLayout:
        orientation: 'vertical'
        padding: '10dp'
        spacing: '10dp'
        TopLabel:
            text: _("Electrum requests your transaction history from a single server. The returned history is checked against blockchain headers sent by other nodes, using Simple Payment Verification (SPV).")
            font_size: '6pt'
        Widget:
            size_hint: 1, 0.8
        GridLayout:
            cols: 2
            Label:
                height: '36dp'
                size_hint_x: 1
                size_hint_y: None
                text: _('Server') + ':'
            TextInput:
                id: server_str
                multiline: False
                height: '36dp'
                size_hint_x: 3
                size_hint_y: None
                text: app.network.get_parameters().server.to_friendly_name()
            Widget
            Button:
                id: chooser
                text: _('Choose from peers')
                height: '36dp'
                size_hint_x: 0.5
                size_hint_y: None
                on_release:
                    app.choose_server_dialog(root)
        Widget:
            size_hint: 1, 0.1
        BoxLayout:
            Widget:
                size_hint: 0.5, None
            Button:
                size_hint: 0.5, None
                height: '48dp'
                text: _('OK')
                on_release:
                    app.maybe_switch_to_server(str(root.ids.server_str.text))
                    nd.dismiss()
