Popup:
    id: ln
    title: _('Lightning Gossip')
    BoxLayout:
        orientation: 'vertical'
        ScrollView:
            GridLayout:
                id: scrollviewlayout
                cols:1
                size_hint: 1, None
                height: self.minimum_height
                padding: '10dp'
                SettingsItem:
                    value: _("{} connections.").format(app.lightning_gossip_num_peers) if app.lightning_gossip_num_peers else _("Not connected")
                    title: _("Gossip") + ': ' + self.value
                    description: _("Connections with lightning nodes")
                CardSeparator
                SettingsItem:
                    title: _("Nodes") + ': ' + str(app.lightning_gossip_num_nodes)
                    description: _("Nodes in database.")
                CardSeparator
                SettingsItem:
                    title: _("Channels") + ': ' + str(app.lightning_gossip_num_channels)
                    description: _("Channels in database.")
                CardSeparator
                SettingsItem:
                    title: _("Pending") + ': ' + str(app.lightning_gossip_num_queries)
                    description: _("Channel updates to query.")
        BoxLayout:
            size_hint: 1, None
            height: '48dp'
            Button:
                size_hint: 0.5, None
                height: '48dp'
                text: _('Clear all gossip')
                on_release: app.delete_ln_gossip_dialog()
            Widget:
                size_hint: 0.5, None
                height: '48dp'
