diff cagou/plugins/plugin_wid_chat.py @ 185:ab3f5173ef5c

chat, simple XHTML: font size adjustement
author Goffi <goffi@goffi.org>
date Fri, 11 May 2018 20:07:17 +0200
parents c63922860f80
children a826c70beda2
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.py	Thu May 10 08:32:46 2018 +0200
+++ b/cagou/plugins/plugin_wid_chat.py	Fri May 11 20:07:17 2018 +0200
@@ -25,7 +25,7 @@
 from kivy.uix.boxlayout import BoxLayout
 from kivy.uix.gridlayout import GridLayout
 from kivy.uix.textinput import TextInput
-from kivy.metrics import dp
+from kivy.metrics import sp, dp
 from kivy import properties
 from sat_frontends.quick_frontend import quick_widgets
 from sat_frontends.quick_frontend import quick_chat
@@ -65,6 +65,7 @@
     mess_padding = (dp(5), dp(5))
     avatar = properties.ObjectProperty()
     delivery = properties.ObjectProperty()
+    font_size = properties.NumericProperty(sp(12))
 
     def __init__(self, **kwargs):
         # self must be registered in widgets before kv is parsed