comparison cagou/plugins/plugin_wid_chat.kv @ 278:444ba439530f

chat: moved transfer button to header_box
author Goffi <goffi@goffi.org>
date Wed, 20 Mar 2019 09:29:44 +0100
parents a0835f0212d8
children 1b835bcfa663
comparison
equal deleted inserted replaced
277:f5302d57fb09 278:444ba439530f
12 # GNU Affero General Public License for more details. 12 # GNU Affero General Public License for more details.
13 13
14 # You should have received a copy of the GNU Affero General Public License 14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
17 #:import TransferMenu cagou.core.menu.TransferMenu
18 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget 17 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget
19 #:import _ sat.core.i18n._ 18 #:import _ sat.core.i18n._
20 #:import C cagou.core.constants.Const 19 #:import C cagou.core.constants.Const
21 #:import escape kivy.utils.escape_markup 20 #:import escape kivy.utils.escape_markup
22 21
122 size_hint: 1, None 121 size_hint: 1, None
123 height: min(self.minimum_height, dp(250)) 122 height: min(self.minimum_height, dp(250))
124 multiline: True 123 multiline: True
125 hint_text: _(u"Enter your message here") 124 hint_text: _(u"Enter your message here")
126 on_text_validate: root.onSend(args[0]) 125 on_text_validate: root.onSend(args[0])
127 SymbolButton
128 # transfer button
129 size_hint: 1, None
130 symbol: "plus-circled"
131 size_hint: None, 1
132 width: dp(30)
133 font_size: dp(25)
134 on_release: TransferMenu(callback=root.onTransferOK).show(self)
135 126
136 127
137 <SendButton>: 128 <SendButton>:
138 # SendButton is only shown on touch devices 129 # SendButton is only shown on touch devices
139 symbol: "forward" 130 symbol: "forward"
140 size_hint: None, 1 131 size_hint: None, 1
141 width: dp(30) 132 width: dp(30)
142 font_size: dp(25) 133 font_size: dp(25)
143 on_release: self.message_input_box.send_text() 134 on_release: self.message_input_box.send_text()
135
136 # Buttons added in header
137
138 <TransferButton>:
139 size_hint: None, 1
140 symbol: "plus-circled"
141 width: dp(30)
142 font_size: dp(25)
143 color: 0.4, 0.4, 0.4, 1
144 144
145 145
146 <EncryptionMainButton>: 146 <EncryptionMainButton>:
147 size_hint: None, 1 147 size_hint: None, 1
148 width: dp(30) 148 width: dp(30)