/ src / bitmessagekivy / kv / maildetail.kv
maildetail.kv
 1  <MailDetail>:
 2      name: 'mailDetail'
 3      ScrollView:
 4          do_scroll_x: False
 5          BoxLayout:
 6              size_hint_y: None
 7              orientation: 'vertical'
 8              # height: dp(bod.height) + self.minimum_height
 9              height: self.minimum_height
10              padding: dp(10)
11              # MDLabel:
12              #     size_hint_y: None
13              #     id: subj
14              #     text: root.subject
15              #     theme_text_color: 'Primary'
16              #     halign: 'left'
17              #     font_style: 'H5'
18              #     height: dp(40)
19              #     on_touch_down: root.allclick(self)
20              OneLineListTitle:
21                  id: subj
22                  text: app.tr._(root.subject)
23                  divider: None
24                  font_style: 'H5'
25                  theme_text_color: 'Primary'
26                  _no_ripple_effect: True
27                  long_press_time: 1
28              TwoLineAvatarIconListItem:
29                  id: subaft
30                  text: app.tr._(root.from_addr)
31                  secondary_text: app.tr._('to ' + root.to_addr)
32                  divider: None
33                  on_press: root.detailedPopup()
34                  BadgeText:
35                      size_hint:(None, None)
36                      size:[120, 140] if app.app_platform == 'android' else [64, 80]
37                      text: app.tr._(root.time_tag)
38                      halign:'center'
39                      font_style:'Caption'
40                      pos_hint: {'center_y': .8}
41                      _txt_right_pad: dp(70)
42                      font_size: '11sp'
43                  MDChip:
44                      size_hint: (.16 if app.app_platform == 'android' else .08 , None)
45                      text: app.tr._(root.page_type)
46                      icon: ''
47                      text_color: (1,1,1,1)
48                      pos_hint: {'center_x': .91 if app.app_platform == 'android' else .95, 'center_y': .3}
49                      radius: [8]
50                      height: self.parent.height/4
51                  AvatarSampleWidget:
52                      source: root.avatarImg
53              MDLabel:
54                  text: root.status
55                  disabled: True
56                  font_style: 'Body2'
57                  halign:'left'
58                  padding_x: 20
59              # MDLabel:
60              #     id: bod
61              #     font_style: 'Subtitle2'
62              #     theme_text_color: 'Primary'
63              #     text: root.message
64              #     halign: 'left'
65              #     height: self.texture_size[1]
66              MyMDTextField:
67                  id: bod
68                  size_hint_y: None
69                  font_style: 'Subtitle2'
70                  text: root.message
71                  multiline: True
72                  readonly: True
73                  line_color_normal: [0,0,0,0]
74                  _current_line_color: [0,0,0,0]
75                  line_color_focus: [0,0,0,0]
76                  markup: True
77                  font_size: '15sp'
78                  canvas.before:
79                      Color:
80                          rgba: (0,0,0,1)
81      Loader:
82  
83  
84  <MyMDTextField@MDTextField>:
85      canvas.before:
86          Color:
87              rgba: (0,0,0,1)