Mercurial > libervia-desktop-kivy
comparison src/cagou/plugins/plugin_wid_chat.kv @ 117:f0291755b07c
chat: OTR integration first draft:
an encryption button is added in Chat header, launching the start/refresh, end session and authenticate menus.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Jan 2017 20:39:35 +0100 |
parents | 8576d70ff803 |
children | dcd6fbb3f010 |
comparison
equal
deleted
inserted
replaced
116:8576d70ff803 | 117:f0291755b07c |
---|---|
110 source: app.expand("{media}/icons/tango/actions/32/list-add.png") | 110 source: app.expand("{media}/icons/tango/actions/32/list-add.png") |
111 allow_stretch: True | 111 allow_stretch: True |
112 size_hint: None, 1 | 112 size_hint: None, 1 |
113 width: max(self.texture_size[0], dp(40)) | 113 width: max(self.texture_size[0], dp(40)) |
114 on_release: TransferMenu(callback=root.onTransferOK).show(self) | 114 on_release: TransferMenu(callback=root.onTransferOK).show(self) |
115 | |
116 <EncryptionButton>: | |
117 size_hint: None, 1 | |
118 width: dp(30) | |
119 source: app.expand("{media}/icons/muchoslava/png/cadenas_ouvert_30.png") | |
120 | |
121 <OtrButton@Button>: | |
122 size_hint: None, None | |
123 size: self.texture_size | |
124 padding: 5, 5 | |
125 | |
126 <OtrMenu>: | |
127 size_hint_x: None | |
128 width: start_btn.width | |
129 auto_width: False | |
130 canvas.before: | |
131 Color: | |
132 rgba: 0, 0, 0, 1 | |
133 Rectangle: | |
134 pos: self.pos | |
135 size: self.size | |
136 OtrButton: | |
137 id: start_btn | |
138 text: _(u"Start/Refresh encrypted session") | |
139 on_release: root.otr_start() | |
140 OtrButton: | |
141 text: _(u"Finish encrypted session") | |
142 on_release: root.otr_end() | |
143 OtrButton: | |
144 text: _(u"Authenticate destinee") | |
145 on_release: root.otr_authenticate() |