view src/cagou.kv @ 0:160cc95ad7ea

initial commit: - basic SàT/QuickApp integration - basic XMLUI - profile manager first draft
author Goffi <goffi@goffi.org>
date Sat, 26 Mar 2016 16:20:52 +0100
parents
children 189b76859110
line wrap: on
line source

# Cagou: desktop/mobile frontend for Salut à Toi XMPP client
# Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org)

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

<ProfileManager>:
    Label:
        text: "Profile Manager"
        size_hint: 1,0.05

<ProfileScreen>:
    layout: layout
    BoxLayout:
        id: layout
        orientation: 'vertical'

        Label:
            text: "Select a profile to connect with, or create a new one"
            size_hint: 1,0.05

        GridLayout:
            cols: 2
            size_hint: 1, 0.1
            Button:
                size_hint: 1, 0.1
                text: "New"
            Button:
                text: "Delete"
                size_hint: 1, 0.1

<ConnectButton>:
    text: "Connect"
    size_hint: 1, 0.1

<ProfileItem>:
    background_normal: "button_selected.png" if self.is_selected else "button.png"
    deselected_color: 1,1,1,1
    selected_color: 1,1,1,1
    color: 0,0,0,1