Mercurial > libervia-desktop-kivy
diff cagou/core/cagou_main.py @ 286:4772ba26623f
xmlui: many improvments:
- use a white background to be coherent with the rest of the UI
- cancel button is added on "window" XMLUIs
- use color for submit/save buttons
- VerticalContainer is not a ScrollView anymore, XMLUIPanel now has the main ScrollView
- when a TabsContainer is used as main container, main XMLUIPanel ScrollView touch events are disabled, to improve user experience (Kivy doesn't support well ScrollView inside an other ScrollView)
- use BoxLayout instead of GridLayout in AdvancedList*, as they use one row/col only
- fixed DividerWidget line location
- added margins in XMLUI panels
- renamed Settings main class to CagouSettings, to avoid conflict with Kivy's Settings class (which is causing troubles with kv)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 27 Mar 2019 22:22:51 +0100 |
parents | 3f7e227aab00 |
children | a7b80552ca8d |
line wrap: on
line diff
--- a/cagou/core/cagou_main.py Wed Mar 27 22:22:51 2019 +0100 +++ b/cagou/core/cagou_main.py Wed Mar 27 22:22:51 2019 +0100 @@ -77,10 +77,12 @@ notification = None log.warning(_(u"Can't import plyer, some features disabled")) + +## platform specific settings ## + if kivy_utils.platform == "android": import socket - #Â FIXME: move to separate android module # sys.platform is "linux" on android by default # so we change it to allow backend to detect android @@ -93,6 +95,8 @@ STATE_STOPPED = "stopped" +## General Configuration ## + # we want white background by default Window.clearcolor = (1, 1, 1, 1) # we don't want multi-touch emulation with mouse