101 lines
3.2 KiB
Plaintext
101 lines
3.2 KiB
Plaintext
|
<DropDownWidget>:
|
||
|
ScrollView:
|
||
|
BoxLayout:
|
||
|
orientation: 'vertical'
|
||
|
size_hint_y: None
|
||
|
height: self.minimum_height + 2 * self.parent.height/4
|
||
|
padding: dp(32)
|
||
|
spacing: 15
|
||
|
BoxLayout:
|
||
|
orientation: 'vertical'
|
||
|
MDTextField:
|
||
|
id: ti
|
||
|
hint_text: 'type or select sender address'
|
||
|
size_hint_y: None
|
||
|
height: 100
|
||
|
font_size: '13sp'
|
||
|
multiline: False
|
||
|
required: True
|
||
|
helper_text_mode: "on_error"
|
||
|
|
||
|
BoxLayout:
|
||
|
size_hint_y: None
|
||
|
height: dp(40)
|
||
|
Spinner:
|
||
|
id: btn
|
||
|
background_color: app.theme_cls.primary_dark
|
||
|
values: app.variable_1
|
||
|
on_text: root.auto_fill_fromaddr() if self.text != 'Select' else ''
|
||
|
option_cls: Factory.get("MySpinnerOption")
|
||
|
background_color: color_button if self.state == 'normal' else color_button_pressed
|
||
|
background_down: 'atlas://data/images/defaulttheme/spinner'
|
||
|
color: color_font
|
||
|
font_size: '12.5sp'
|
||
|
ArrowImg:
|
||
|
|
||
|
BoxLayout:
|
||
|
orientation: 'vertical'
|
||
|
txt_input: txt_input
|
||
|
rv: rv
|
||
|
size : (890, 60)
|
||
|
MyTextInput:
|
||
|
id: txt_input
|
||
|
size_hint_y: None
|
||
|
font_size: '13sp'
|
||
|
height: self.parent.height/2
|
||
|
hint_text: 'type, select or scan QR code for recipients address'
|
||
|
RV:
|
||
|
id: rv
|
||
|
MDTextField:
|
||
|
id: subject
|
||
|
hint_text: 'subject'
|
||
|
required: True
|
||
|
height: 100
|
||
|
font_size: '13sp'
|
||
|
size_hint_y: None
|
||
|
multiline: False
|
||
|
helper_text_mode: "on_error"
|
||
|
|
||
|
MDTextField:
|
||
|
id: body
|
||
|
multiline: True
|
||
|
hint_text: 'body'
|
||
|
size_hint_y: None
|
||
|
font_size: '13sp'
|
||
|
required: True
|
||
|
helper_text_mode: "on_error"
|
||
|
BoxLayout:
|
||
|
spacing:50
|
||
|
|
||
|
<MyTextInput>:
|
||
|
readonly: False
|
||
|
multiline: False
|
||
|
|
||
|
|
||
|
<SelectableLabel>:
|
||
|
# Draw a background to indicate selection
|
||
|
color: 0,0,0,1
|
||
|
canvas.before:
|
||
|
Color:
|
||
|
rgba: app.theme_cls.primary_dark if self.selected else (1, 1, 1, 0)
|
||
|
Rectangle:
|
||
|
pos: self.pos
|
||
|
size: self.size
|
||
|
|
||
|
<RV>:
|
||
|
canvas:
|
||
|
Color:
|
||
|
rgba: 0,0,0,.2
|
||
|
|
||
|
Line:
|
||
|
rectangle: self.x +1 , self.y, self.width - 2, self.height -2
|
||
|
bar_width: 10
|
||
|
scroll_type:['bars']
|
||
|
viewclass: 'SelectableLabel'
|
||
|
SelectableRecycleBoxLayout:
|
||
|
default_size: None, dp(20)
|
||
|
default_size_hint: 1, None
|
||
|
size_hint_y: None
|
||
|
height: self.minimum_height
|
||
|
orientation: 'vertical'
|
||
|
multiselect: False
|