changeset 175:d65a51fa00b9

core: use hollow borders for TextInput (except for XMLUI, for now)
author Goffi <goffi@goffi.org>
date Mon, 30 Apr 2018 07:57:37 +0200
parents 620f69e4e378
children 2cfef8fbfd4e
files cagou/kv/base.kv cagou/kv/cagou_widget.kv cagou/kv/xmlui.kv
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/kv/base.kv	Mon Apr 30 07:56:28 2018 +0200
+++ b/cagou/kv/base.kv	Mon Apr 30 07:57:37 2018 +0200
@@ -20,3 +20,6 @@
 
 <Button>:
     color: 1, 1, 1, 1
+
+<TextInput>:
+    background_normal: app.expand('{media}/misc/borders/border_hollow_black.png')
--- a/cagou/kv/cagou_widget.kv	Mon Apr 30 07:56:28 2018 +0200
+++ b/cagou/kv/cagou_widget.kv	Mon Apr 30 07:57:37 2018 +0200
@@ -67,6 +67,7 @@
             width: self.height
         TextInput:
             id: header_input
+            background_normal: app.expand('{media}/misc/borders/border_hollow_light.png')
             multiline: False
             on_text_validate: root.onHeaderInput()
             on_text: root.onHeaderInputComplete(*args)
--- a/cagou/kv/xmlui.kv	Mon Apr 30 07:56:28 2018 +0200
+++ b/cagou/kv/xmlui.kv	Mon Apr 30 07:57:37 2018 +0200
@@ -23,6 +23,11 @@
     color: 1, 1, 1, 1
 
 
+<StringWidget,PasswordWidget,IntWidget>:
+
+    background_normal: app.expand('atlas://data/images/defaulttheme/textinput')
+
+
 <ButtonWidget>:
     size_hint: 1, None
     height: dp(button_height)