diff cagou/plugins/plugin_wid_settings.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 1b835bcfa663
children 772c170b47a9
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_settings.py	Wed Mar 27 22:22:51 2019 +0100
+++ b/cagou/plugins/plugin_wid_settings.py	Wed Mar 27 22:22:51 2019 +0100
@@ -31,13 +31,15 @@
 
 PLUGIN_INFO = {
     "name": _(u"settings"),
-    "main": "Settings",
+    "main": "CagouSettings",
     "description": _(u"Cagou/SàT settings"),
     "icon_symbol": u"wrench",
 }
 
 
-class Settings(quick_widgets.QuickWidget, cagou_widget.CagouWidget):
+class CagouSettings(quick_widgets.QuickWidget, cagou_widget.CagouWidget):
+    # XXX: this class can't be called "Settings", because Kivy has already a class
+    #      of this name, and the kv there would apply
 
     def __init__(self, host, target, profiles):
         quick_widgets.QuickWidget.__init__(self, G.host, target, profiles)