/ src / bitmessagekivy / kv / popup.kv
popup.kv
  1  <AddressChangingLoader>:
  2      separator_color: 1, 1, 1, 1
  3      background: "White.png"
  4      Button:
  5          id: btn
  6          disabled: True
  7          background_disabled_normal: "White.png"
  8          Image:
  9              source: app.image_path + '/loader.gif'
 10              anim_delay: 0
 11              #mipmap: True
 12              size: root.size
 13  
 14  
 15  <AddAddressPopup>:
 16      id: popup_box
 17      orientation: 'vertical'
 18      # spacing:dp(20)
 19      # spacing: "12dp"
 20      size_hint_y: None
 21      # height: "120dp"
 22      height: label.height+address.height
 23      address: address
 24      label: label
 25      BoxLayout:
 26          orientation: 'vertical'
 27          MDTextField:
 28              id: label
 29              multiline: False
 30              hint_text: app.tr._("Label")
 31              required: True
 32              icon_right: 'label'
 33              helper_text_mode: "on_error"
 34              # TODO: on_text: root.checkLabel_valid(self) is not used now but it will be used later
 35              canvas.before:
 36                  Color:
 37                      rgba: (0,0,0,1)
 38          MDTextField:
 39              id: address
 40              hint_text: app.tr._("Address")
 41              required: True
 42              icon_right: 'book-plus'
 43              helper_text_mode: "on_error"
 44              multiline: False
 45              # TODO: on_text: root.checkAddress_valid(self) is not used now but it will be used later
 46              canvas.before:
 47                  Color:
 48                      rgba: (0,0,0,1)
 49  
 50  <SavedAddressDetailPopup>:
 51      id: addbook_popup_box
 52      size_hint_y: None
 53      height: 2.5*(add_label.height) 
 54      orientation: 'vertical'
 55      spacing:dp(5)
 56      MDLabel
 57          font_style: 'Subtitle2'
 58          theme_text_color: 'Primary'
 59          text: app.tr._("Label")
 60          font_size: '17sp'
 61          halign: 'left'
 62      MDTextField:
 63          id: add_label
 64          font_style: 'Body1'
 65          font_size: '15sp'
 66          halign: 'left'
 67          text: app.tr._(root.address_label)
 68          theme_text_color: 'Primary'
 69          required: True
 70          helper_text_mode: "on_error"
 71          on_text: root.checkLabel_valid(self)
 72          canvas.before:
 73              Color:
 74                  rgba: (0,0,0,1)
 75      MDLabel:
 76          font_style: 'Subtitle2'
 77          theme_text_color: 'Primary'
 78          text: app.tr._("Address")
 79          font_size: '17sp'
 80          halign: 'left'
 81      Widget:
 82          size_hint_y: None
 83          height: dp(1)
 84      BoxLayout:
 85          orientation: 'horizontal'
 86          MDLabel:
 87              id: address
 88              font_style: 'Body1'
 89              theme_text_color: 'Primary'
 90              text: app.tr._(root.address)
 91              font_size: '15sp'
 92              halign: 'left'
 93          IconRightSampleWidget:
 94              pos_hint: {'center_x': 0, 'center_y': 1}
 95              icon: 'content-copy'
 96              on_press: app.copy_composer_text(root.address)
 97  
 98  
 99  <MyaddDetailPopup>:
100      id: myadd_popup
101      size_hint_y: None
102      height: "130dp"
103      spacing:dp(25)
104  
105      #height: dp(1.5*(myaddr_label.height))
106      orientation: 'vertical'
107      MDLabel:
108          id: myaddr_label
109          font_style: 'Subtitle2'
110          theme_text_color: 'Primary'
111          text: app.tr._("Label")
112          font_size: '17sp'
113          halign: 'left'
114      MDLabel:
115          font_style: 'Body1'
116          theme_text_color: 'Primary'
117          text: root.address_label
118          font_size: '15sp'
119          halign: 'left'
120      MDLabel:
121          font_style: 'Subtitle2'
122          theme_text_color: 'Primary'
123          text: app.tr._("Address")
124          font_size: '17sp'
125          halign: 'left'
126      BoxLayout:
127          orientation: 'horizontal'
128          MDLabel:
129              id: label_address
130              font_style: 'Body1'
131              theme_text_color: 'Primary'
132              text: app.tr._(root.address)
133              font_size: '15sp'
134              halign: 'left'
135          IconRightSampleWidget:
136              pos_hint: {'center_x': 0, 'center_y': 1}
137              icon: 'content-copy'
138              on_press: app.copy_composer_text(root.address)
139      BoxLayout:
140          id: my_add_btn
141          spacing:5
142          orientation: 'horizontal'
143          size_hint_y: None
144          height: self.minimum_height
145          MDRaisedButton:
146              size_hint: 2, None
147              height: dp(40)
148              on_press: root.send_message_from()
149              MDLabel:
150                  font_style: 'H6'
151                  text: app.tr._('Send message from')
152                  font_size: '13sp'
153                  color: (1,1,1,1)
154                  halign: 'center'
155          MDRaisedButton:
156              size_hint: 1.5, None
157              height: dp(40)
158              on_press: app.set_screen('showqrcode')
159              on_press: app.root.ids.id_showqrcode.qrdisplay(root, root.address)
160              MDLabel:
161                  font_style: 'H6'
162                  text: app.tr._('Show QR code')
163                  font_size: '13sp'
164                  color: (1,1,1,1)
165                  halign: 'center'
166          MDRaisedButton:
167              size_hint: 1.5, None
168              height: dp(40)
169              on_press: root.close_pop()
170              MDLabel:
171                  font_style: 'H6'
172                  text: app.tr._('Cancel')
173                  font_size: '13sp'
174                  color: (1,1,1,1)
175                  halign: 'center'
176  
177  <AppClosingPopup>:
178      id: closing_popup
179      size_hint : (None,None)
180      height: 1.4*(popup_label.height+ my_add_btn.children[0].height)
181      width :app.window_size[0] - (app.window_size[0]/10 if app.app_platform == 'android' else app.window_size[0]/4)
182      background: app.image_path + '/popup.jpeg'
183      auto_dismiss: False
184      separator_height: 0
185      BoxLayout:
186          id: myadd_popup_box
187          size_hint_y: None
188          spacing:dp(70)
189          orientation: 'vertical'
190          BoxLayout:
191              size_hint_y: None
192              orientation: 'vertical'
193              spacing:dp(25)
194              MDLabel:
195                  id: popup_label
196                  font_style: 'Subtitle2'
197                  theme_text_color: 'Primary'
198                  text: app.tr._("Bitmessage isn't connected to the network.\n If you quit now, it may cause delivery delays.\n Wait until connected and the synchronisation finishes?")
199                  font_size: '17sp'
200                  halign: 'center'
201          BoxLayout:
202              id: my_add_btn
203              spacing:5
204              orientation: 'horizontal'
205              MDRaisedButton:
206                  size_hint: 1.5, None
207                  height: dp(40)
208                  on_press: root.closingAction(self.children[0].text)
209                  on_press: app.stop()
210                  MDLabel:
211                      font_style: 'H6'
212                      text: app.tr._('Yes')
213                      font_size: '13sp'
214                      color: (1,1,1,1)
215                      halign: 'center'
216              MDRaisedButton:
217                  size_hint: 1.5, None
218                  height: dp(40)
219                  on_press: root.closingAction(self.children[0].text)
220                  MDLabel:
221                      font_style: 'H6'
222                      text: app.tr._('No')
223                      font_size: '13sp'
224                      color: (1,1,1,1)
225                      halign: 'center'
226              MDRaisedButton:
227                  size_hint: 1.5, None
228                  height: dp(40)
229                  #on_press: root.dismiss()
230                  on_press: root.closingAction(self.children[0].text)
231                  MDLabel:
232                      font_style: 'H6'
233                      text: app.tr._('Cancel')
234                      font_size: '13sp'
235                      color: (1,1,1,1)
236                      halign: 'center'
237  
238  <SenderDetailPopup>:
239      id: myadd_popup
240      size_hint : (None,None)
241      # height: 2*(sd_label.height+ sd_btn.children[0].height)
242      width :app.window_size[0] - (app.window_size[0]/10 if app.app_platform == 'android' else app.window_size[0]/4)
243      background: app.image_path + '/popup.jpeg'
244      auto_dismiss: False
245      separator_height: 0
246      BoxLayout:
247          id: myadd_popup_box
248          size_hint_y: None
249          orientation: 'vertical'
250          spacing:dp(8 if app.app_platform == 'android' else 3)
251          BoxLayout:
252              orientation: 'vertical'
253              MDLabel:
254                  id: from_add_label
255                  font_style: 'Subtitle2'
256                  theme_text_color: 'Primary'
257                  text: app.tr._("From :")
258                  font_size: '15sp'
259                  halign: 'left'
260          Widget:
261              size_hint_y: None
262              height: dp(1 if app.app_platform == 'android' else 0)
263          BoxLayout:
264              size_hint_y: None
265              height: 50
266              orientation: 'horizontal'
267              MDLabel:
268                  id: sd_label
269                  font_style: 'Body2'
270                  theme_text_color: 'Primary'
271                  text: app.tr._("[b]" + root.from_addr + "[/b]")
272                  font_size: '15sp'
273                  halign: 'left'
274                  markup: True
275              IconRightSampleWidget:
276                  icon: 'content-copy'
277                  on_press: app.copy_composer_text(root.from_addr)
278          Widget:
279              id: space_1
280              size_hint_y: None
281              height: dp(2 if app.app_platform == 'android' else 0)
282          BoxLayout:
283              id: to_addtitle
284          Widget:
285              id:space_2
286              size_hint_y: None
287              height: dp(1 if app.app_platform == 'android' else 0)
288          BoxLayout:
289              id: to_addId
290          BoxLayout:
291              size_hint_y: None
292              orientation: 'vertical'
293              height: 50
294              MDLabel:
295                  font_style: 'Body2'
296                  theme_text_color: 'Primary'
297                  text: app.tr._("Date : " + root.time_tag)
298                  font_size: '15sp'
299                  halign: 'left'
300          BoxLayout:
301              id: sd_btn
302              orientation: 'vertical'
303              MDRaisedButton:
304                  id: dismiss_btn
305                  on_press: root.dismiss()
306                  size_hint: .2, 0
307                  pos_hint: {'x': 0.8, 'y': 0}
308                  MDLabel:
309                      font_style: 'H6'
310                      text: app.tr._('Cancel')
311                      font_size: '13sp'
312                      color: (1,1,1,1)
313                      halign: 'center'
314  
315  <ToAddrBoxlayout>:
316      orientation: 'horizontal'
317      MDLabel:
318          font_style: 'Body2'
319          theme_text_color: 'Primary'
320          text: app.tr._(root.to_addr)
321          font_size: '15sp'
322          halign: 'left'
323      IconRightSampleWidget:
324          icon: 'content-copy'
325          on_press: app.copy_composer_text(root.to_addr)
326  
327  <ToAddressTitle>:
328      orientation: 'vertical'
329      MDLabel:
330          id: to_add_label
331          font_style: 'Subtitle2'
332          theme_text_color: 'Primary'
333          text: "To :"
334          font_size: '15sp'
335          halign: 'left'