|
| 1 | +#:set color_transparent (0,0,0,0) # transparent black |
| 2 | +#:set color_black (0,0,0,1) # black |
| 3 | + |
1 | 4 | <MailDetail>: |
2 | 5 | name: 'mailDetail' |
3 | 6 | ScrollView: |
|
15 | 18 | font_style: 'H5' |
16 | 19 | theme_text_color: 'Primary' |
17 | 20 | _no_ripple_effect: True |
18 | | - long_press_time: 1 |
| 21 | + long_press_time: self.long_press_time |
19 | 22 | TwoLineAvatarIconListItem: |
20 | 23 | id: subaft |
21 | 24 | text: app.tr._(root.from_addr) |
|
24 | 27 | on_press: root.detailed_popup() |
25 | 28 | BadgeText: |
26 | 29 | size_hint:(None, None) |
27 | | - size:[120, 140] if app.app_platform == 'android' else [64, 80] |
| 30 | + size: root.badgeProperties.SIZE_ANDROID if app.app_platform == 'android' else root.badgeProperties.SIZE_OTHER |
28 | 31 | text: app.tr._(root.time_tag) |
29 | 32 | halign:'center' |
30 | 33 | font_style:'Caption' |
31 | 34 | pos_hint: {'center_y': .8} |
32 | 35 | _txt_right_pad: dp(70) |
33 | | - font_size: '11sp' |
| 36 | + font_size: root.badgeProperties.FONT_SIZE |
34 | 37 | MDChip: |
35 | | - size_hint: (.16 if app.app_platform == 'android' else .08 , None) |
| 38 | + size_hint: root.chipProperties.SIZE_HINT_ANDROID if app.app_platform == 'android' else root.chipProperties.SIZE_HINT_OTHER |
36 | 39 | text: app.tr._(root.page_type) |
37 | 40 | icon: '' |
38 | | - text_color: (1,1,1,1) |
39 | | - pos_hint: {'center_x': .91 if app.app_platform == 'android' else .95, 'center_y': .3} |
40 | | - radius: [8] |
| 41 | + text_color: root.chipProperties.TEXT_COLOR |
| 42 | + pos_hint: { |
| 43 | + 'center_x': root.chipProperties.CENTER_X_ANDROID if app.app_platform == 'android' else root.chipProperties.CENTER_X_OTHER, |
| 44 | + 'center_y': root.chipProperties.CENTER_Y |
| 45 | + } |
| 46 | + radius: root.chipProperties.RADIUS |
41 | 47 | height: self.parent.height/4 |
42 | 48 | AvatarSampleWidget: |
43 | 49 | source: root.avatar_image |
|
54 | 60 | text: root.message |
55 | 61 | multiline: True |
56 | 62 | readonly: True |
57 | | - line_color_normal: [0,0,0,0] |
58 | | - _current_line_color: [0,0,0,0] |
59 | | - line_color_focus: [0,0,0,0] |
| 63 | + line_color_normal: color_transparent |
| 64 | + _current_line_color: color_transparent |
| 65 | + line_color_focus: color_transparent |
60 | 66 | markup: True |
61 | 67 | font_size: '15sp' |
62 | 68 | canvas.before: |
63 | 69 | Color: |
64 | | - rgba: (0,0,0,1) |
| 70 | + rgba: color_black |
65 | 71 | Loader: |
66 | 72 |
|
67 | 73 |
|
68 | 74 | <MyMDTextField@MDTextField>: |
69 | 75 | canvas.before: |
70 | 76 | Color: |
71 | | - rgba: (0,0,0,1) |
| 77 | + rgba: color_black |
0 commit comments