Popup:
    id: settings
    title: _('Settings')

    BoxLayout:
        orientation: 'vertical'
        SettingsItem:
            title: _('PIN Code') + ' (%s)'%('ON' if app.wallet.use_encryption else 'OFF')
            description: _("Your PIN code will be required in order to spend bitcoins.")
            on_release:
                app.change_password()
                self.title = _('PIN Code') + ' (%s)'%('ON' if app.wallet.use_encryption else 'OFF')
        CardSeparator
        SettingsItem:
            title: _('Denomination') + ' (' + app.base_unit + ')'
            description: _("Base unit for Bitcoin amounts.")
            on_release:
                app._rotate_bu()
                self.title = _('Denomination') + ' (' + app.base_unit + ')'
        CardSeparator
        SettingsItem:
            title: _('OpenAlias')
            description: "Email-like address."

        Widget:
            size_hint: 1, 1

        BoxLayout:
            Widget:
                size_hint: 0.5, None
            Button:
                size_hint: 0.5, None
                height: '48dp'
                text: _('OK')
                on_release:
                    settings.dismiss()

