2019-07-17 10:50:27 +02:00
2019-05-09 14:48:29 +02:00
#:import Toolbar kivymd.toolbar.Toolbar
#:import NavigationLayout kivymd.navigationdrawer.NavigationLayout
#:import NavigationDrawerDivider kivymd.navigationdrawer.NavigationDrawerDivider
#:import NavigationDrawerSubheader kivymd.navigationdrawer.NavigationDrawerSubheader
#:import MDCheckbox kivymd.selectioncontrols.MDCheckbox
#:import MDList kivymd.list.MDList
#:import OneLineListItem kivymd.list.OneLineListItem
#:import MDTextField kivymd.textfields.MDTextField
#:import get_color_from_hex kivy.utils.get_color_from_hex
#:import colors kivymd.color_definitions.colors
#:import MDTabbedPanel kivymd.tabs.MDTabbedPanel
#:import MDTab kivymd.tabs.MDTab
#:import MDFloatingActionButton kivymd.button.MDFloatingActionButton
2019-06-06 15:48:20 +02:00
#:import Factory kivy.factory.Factory
2019-08-02 11:11:33 +02:00
#:import MDScrollViewRefreshLayout kivymd.refreshlayout.MDScrollViewRefreshLayout
2019-10-31 11:54:18 +01:00
#:import MDSpinner kivymd.spinner.MDSpinner
2019-11-29 15:57:39 +01:00
#:import NoTransition kivy.uix.screenmanager.NoTransition
2019-05-09 14:48:29 +02:00
2019-06-28 16:54:47 +02:00
#:set color_button (0.784, 0.443, 0.216, 1) # brown
#:set color_button_pressed (0.659, 0.522, 0.431, 1) # darker brown
#:set color_font (0.957, 0.890, 0.843, 1) # off white
2019-05-09 14:48:29 +02:00
<MyNavigationDrawerIconButton@NavigationDrawerIconButton>:
icon: 'checkbox-blank-circle'
2019-06-06 15:48:20 +02:00
<MySpinnerOption@SpinnerOption>:
font_size: '12.5sp'
2019-06-28 16:54:47 +02:00
background_color: color_button if self.state == 'down' else color_button_pressed
background_down: 'atlas://data/images/defaulttheme/button'
color: color_font
2019-06-06 15:48:20 +02:00
2019-05-09 14:48:29 +02:00
<ContentNavigationDrawer@Navigatorss>:
2019-10-31 11:54:18 +01:00
drawer_logo: './images/drawer_logo1.png'
2019-05-09 14:48:29 +02:00
NavigationDrawerDivider:
2019-10-09 18:34:42 +02:00
NavigationDrawerSubheader:
2019-05-09 14:48:29 +02:00
text: "Accounts"
2018-07-18 14:49:39 +02:00
NavigationDrawerIconButton:
2019-08-02 11:11:33 +02:00
CustomSpinner:
2018-07-18 14:49:39 +02:00
id: btn
2019-09-06 17:20:58 +02:00
pos_hint:{"x":0,"y":.25}
2019-06-06 15:48:20 +02:00
option_cls: Factory.get("MySpinnerOption")
2019-09-11 17:03:51 +02:00
font_size: '11.9sp'
2019-05-09 14:48:29 +02:00
text: app.getDefaultAccData()
2019-06-28 16:54:47 +02:00
background_color: color_button if self.state == 'normal' else color_button_pressed
background_down: 'atlas://data/images/defaulttheme/spinner'
color: color_font
2019-05-09 14:48:29 +02:00
values: app.variable_1
2018-08-09 12:20:20 +02:00
on_text:app.getCurrentAccountData(self.text)
2019-09-06 17:20:58 +02:00
Image:
source: app.get_default_image()
2019-09-24 17:21:34 +02:00
x: self.width/6
y: self.parent.y + self.parent.height/4
size: self.parent.height/2, self.parent.height/2
2019-07-17 10:50:27 +02:00
ArrowImg:
2018-07-18 14:49:39 +02:00
NavigationDrawerIconButton:
2019-06-28 16:54:47 +02:00
id: inbox_cnt
2018-08-04 10:30:12 +02:00
icon: 'email-open'
2019-05-09 14:48:29 +02:00
text: "Inbox"
2018-07-18 14:49:39 +02:00
on_release: app.root.ids.scr_mngr.current = 'inbox'
2019-09-19 18:30:26 +02:00
badge_text: "0"
2019-11-29 15:57:39 +01:00
on_press: app.load_screen(self)
2018-07-18 14:49:39 +02:00
NavigationDrawerIconButton:
2019-06-28 16:54:47 +02:00
id: send_cnt
2019-05-09 14:48:29 +02:00
icon: 'send'
text: "Sent"
2018-07-18 14:49:39 +02:00
on_release: app.root.ids.scr_mngr.current = 'sent'
2019-09-19 18:30:26 +02:00
badge_text: "0"
2019-05-09 14:48:29 +02:00
NavigationDrawerIconButton:
2019-07-17 10:50:27 +02:00
id: draft_cnt
2019-05-09 14:48:29 +02:00
icon: 'message-draw'
text: "Draft"
2019-07-17 10:50:27 +02:00
on_release: app.root.ids.scr_mngr.current = 'draft'
2019-09-19 18:30:26 +02:00
badge_text: "0"
2019-11-29 15:57:39 +01:00
#NavigationDrawerIconButton:
#text: "Starred"
#icon:'star'
#on_release: app.root.ids.scr_mngr.current = 'starred'
#badge_text: "0"
#NavigationDrawerIconButton:
#icon: 'archive'
#text: "Archieve"
#on_release: app.root.ids.scr_mngr.current = 'archieve'
#badge_text: "0"
#NavigationDrawerIconButton:
#icon: 'email-open-outline'
#text: "Spam"
#on_release: app.root.ids.scr_mngr.current = 'spam'
#badge_text: "0"
2018-07-18 14:49:39 +02:00
NavigationDrawerIconButton:
2019-06-28 16:54:47 +02:00
id: trash_cnt
2019-05-09 14:48:29 +02:00
icon: 'delete'
text: "Trash"
on_release: app.root.ids.scr_mngr.current = 'trash'
2019-09-19 18:30:26 +02:00
badge_text: "0"
2019-08-14 16:55:34 +02:00
NavigationDrawerIconButton:
id: allmail_cnt
2019-05-09 14:48:29 +02:00
text: "All Mails"
icon:'contact-mail'
2019-08-14 16:55:34 +02:00
on_release: app.root.ids.scr_mngr.current = 'allmails'
2019-09-19 18:30:26 +02:00
badge_text: "0"
2019-05-09 14:48:29 +02:00
NavigationDrawerDivider:
NavigationDrawerSubheader:
text: "All labels"
NavigationDrawerIconButton:
text: "Address Book"
icon:'book-multiple'
on_release: app.root.ids.scr_mngr.current = 'addressbook'
NavigationDrawerIconButton:
text: "Settings"
icon:'settings'
2019-08-02 11:11:33 +02:00
on_release: app.root.ids.scr_mngr.current = 'set'
2019-05-09 14:48:29 +02:00
NavigationDrawerIconButton:
text: "Subscriptions/Payment"
2019-10-10 18:08:52 +02:00
icon:'bell'
2019-05-09 14:48:29 +02:00
on_release: app.root.ids.scr_mngr.current = 'payment'
2019-09-16 12:21:05 +02:00
NavigationDrawerIconButton:
text: "Credits"
icon:'wallet'
on_release: app.root.ids.scr_mngr.current = 'credits'
2019-05-09 14:48:29 +02:00
NavigationDrawerIconButton:
text: "new address"
icon:'account-plus'
on_release: app.root.ids.scr_mngr.current = 'login'
NavigationDrawerIconButton:
text: "Network Status"
icon:'server-network'
on_release: app.root.ids.scr_mngr.current = 'networkstat'
NavigationDrawerIconButton:
text: "My Addresses"
icon:'account-multiple'
on_release: app.root.ids.scr_mngr.current = 'myaddress'
NavigationLayout:
id: nav_layout
ContentNavigationDrawer:
id: nav_drawer
2019-11-08 13:08:26 +01:00
FloatLayout:
id: float_box
BoxLayout:
id: box_layout
orientation: 'vertical'
Toolbar:
id: toolbar
title: app.current_address_label()
opacity: 1 if app.addressexist() else 0
disabled: False if app.addressexist() else True
md_bg_color: app.theme_cls.primary_color
background_palette: 'Primary'
background_hue: '500'
left_action_items: [['menu', lambda x: app.root.toggle_nav_drawer()]]
right_action_items: [['account-plus', lambda x: app.addingtoaddressbook()]]
ScreenManager:
id: scr_mngr
Inbox:
id:sc1
Page:
id:sc2
Create:
id:sc3
Sent:
id:sc4
Trash:
id:sc5
Login:
id:sc6
Random:
id:sc7
Spam:
id:sc8
Setting:
id:sc9
MyAddress:
id:sc10
AddressBook:
id:sc11
Payment:
id:sc12
NetworkStat:
id:sc13
MailDetail:
id:sc14
ShowQRCode:
id:sc15
Draft:
id:sc16
Allmails:
id:sc17
Credits:
id:sc18
Starred:
id:sc19
Archieve:
id:sc20
2018-08-04 10:30:12 +02:00
2018-07-18 14:49:39 +02:00
<Inbox>:
name: 'inbox'
2019-11-29 15:57:39 +01:00
transition: NoTransition()
2019-09-27 18:31:37 +02:00
BoxLayout:
orientation: 'vertical'
spacing: dp(10)
SearchBar:
FloatLayout:
MDScrollViewRefreshLayout:
id: refresh_layout
refresh_callback: root.refresh_callback
2019-11-08 13:08:26 +01:00
root_layout: root.set_root_layout()
2019-09-27 18:31:37 +02:00
MDList:
id: ml
2019-11-04 17:27:53 +01:00
Loader:
2019-08-06 18:13:34 +02:00
ComposerButton:
2018-07-18 14:49:39 +02:00
<Sent>:
name: 'sent'
2019-09-27 18:31:37 +02:00
BoxLayout:
orientation: 'vertical'
SearchBar:
BoxLayout:
orientation:'vertical'
ScrollView:
2019-11-19 16:58:30 +01:00
id: scroll_y
2019-09-27 18:31:37 +02:00
do_scroll_x: False
MDList:
id: ml
2019-11-19 16:58:30 +01:00
Loader:
2019-06-06 15:48:20 +02:00
ComposerButton:
2018-07-18 14:49:39 +02:00
<Trash>:
name: 'trash'
2019-05-09 14:48:29 +02:00
ScrollView:
2019-11-19 16:58:30 +01:00
id: scroll_y
2018-08-21 14:48:16 +02:00
do_scroll_x: False
2019-05-09 14:48:29 +02:00
MDList:
id: ml
2019-11-26 14:19:44 +01:00
Loader:
2019-06-06 15:48:20 +02:00
ComposerButton:
2019-05-09 14:48:29 +02:00
<Draft>:
name: 'draft'
2019-07-17 10:50:27 +02:00
ScrollView:
2019-11-19 16:58:30 +01:00
id: scroll_y
2019-07-17 10:50:27 +02:00
do_scroll_x: False
MDList:
id: ml
ComposerButton:
2019-08-14 16:55:34 +02:00
2019-09-19 18:30:26 +02:00
<Starred>:
name: 'starred'
ScrollView:
do_scroll_x: False
MDList:
id: ml
ComposerButton:
<Archieve>:
name: 'archieve'
ScrollView:
do_scroll_x: False
MDList:
id: ml
ComposerButton:
<Spam>:
name: 'spam'
ScrollView:
do_scroll_x: False
MDList:
id: ml
ComposerButton:
2019-08-14 16:55:34 +02:00
<Allmails>:
name: 'allmails'
FloatLayout:
MDScrollViewRefreshLayout:
id: refresh_layout
refresh_callback: root.refresh_callback
2019-11-08 13:08:26 +01:00
root_layout: root.set_root_layout()
2019-08-14 16:55:34 +02:00
MDList:
id: ml
ComposerButton:
2019-07-17 10:50:27 +02:00
2018-07-18 14:49:39 +02:00
<Test>:
name: 'test'
2018-07-07 14:11:58 +02:00
Label:
2018-07-19 13:47:37 +02:00
text:"I am in test"
2018-07-18 14:49:39 +02:00
color: 0,0,0,1
2019-05-09 14:48:29 +02:00
<Page>:
name: 'page'
Label:
text:"I am on page"
color: 0,0,0,1
2018-07-18 14:49:39 +02:00
<Create>:
name: 'create'
2019-11-08 13:08:26 +01:00
Loader:
2018-07-07 14:11:58 +02:00
2019-09-16 12:21:05 +02:00
<Credits>:
name: 'credits'
ScrollView:
do_scroll_x: False
MDList:
id: ml
size_hint_y: None
height: dp(200)
OneLineListItem:
text: "Available Credits"
BoxLayout:
AnchorLayout:
MDRaisedButton:
size_hint: .6, .35
height: dp(40)
MDLabel:
font_style: 'Title'
text: root.available_credits
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
<DropDownWidget>:
ScrollView:
2018-07-18 14:49:39 +02:00
BoxLayout:
2019-05-09 14:48:29 +02:00
orientation: 'vertical'
2018-07-18 14:49:39 +02:00
size_hint_y: None
2019-09-06 17:20:58 +02:00
height: self.minimum_height + 2 * self.parent.height/4
2019-05-09 14:48:29 +02:00
padding: dp(32)
spacing: 15
BoxLayout:
orientation: 'vertical'
2019-05-13 13:31:33 +02:00
MDTextField:
2019-05-09 14:48:29 +02:00
id: ti
hint_text: 'type or select sender address'
size_hint_y: None
height: 100
2019-07-17 10:50:27 +02:00
font_size: '13sp'
2019-05-09 14:48:29 +02:00
multiline: False
2019-05-13 13:31:33 +02:00
required: True
helper_text_mode: "on_error"
2019-05-09 14:48:29 +02:00
BoxLayout:
size_hint_y: None
2019-06-28 16:54:47 +02:00
height: dp(40)
2019-08-02 11:11:33 +02:00
CustomSpinner:
2019-05-09 14:48:29 +02:00
background_color: app.theme_cls.primary_dark
id: btn
values: app.variable_1
2019-08-21 10:07:47 +02:00
on_text: root.auto_fill_fromaddr() if self.text != 'Select' else ''
2019-06-06 15:48:20 +02:00
option_cls: Factory.get("MySpinnerOption")
2019-07-17 10:50:27 +02:00
background_color: color_button if self.state == 'normal' else color_button_pressed
background_down: 'atlas://data/images/defaulttheme/spinner'
color: color_font
2019-06-06 15:48:20 +02:00
font_size: '12.5sp'
2019-07-17 10:50:27 +02:00
ArrowImg:
2019-05-09 14:48:29 +02:00
BoxLayout:
orientation: 'vertical'
txt_input: txt_input
rv: rv
size : (890, 60)
2019-05-13 13:31:33 +02:00
size_hint: 1,1
2019-05-09 14:48:29 +02:00
MyTextInput:
id: txt_input
size_hint_y: None
2019-07-17 10:50:27 +02:00
font_size: '13sp'
2019-09-20 18:19:28 +02:00
height: self.parent.height/2
2019-05-09 14:48:29 +02:00
hint_text: 'type or search recipients address starting with BM-'
RV:
id: rv
2019-05-13 13:31:33 +02:00
MDTextField:
2018-07-24 12:05:39 +02:00
id: subject
2019-05-09 14:48:29 +02:00
hint_text: 'subject'
2019-05-13 13:31:33 +02:00
required: True
2019-05-09 14:48:29 +02:00
height: 100
2019-07-17 10:50:27 +02:00
font_size: '13sp'
2019-05-13 13:31:33 +02:00
size_hint_y: None
2019-05-09 14:48:29 +02:00
multiline: False
2019-05-13 13:31:33 +02:00
helper_text_mode: "on_error"
MDTextField:
2019-05-09 14:48:29 +02:00
id: body
2019-05-13 13:31:33 +02:00
multiline: True
2019-05-09 14:48:29 +02:00
hint_text: 'body'
size_hint_y: None
2019-07-17 10:50:27 +02:00
font_size: '13sp'
2019-05-13 13:31:33 +02:00
required: True
helper_text_mode: "on_error"
2019-05-09 14:48:29 +02:00
BoxLayout:
2019-06-28 16:54:47 +02:00
spacing:50
2019-05-09 14:48:29 +02:00
<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
2018-07-03 11:08:02 +02:00
2019-05-09 14:48:29 +02:00
<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
<Login>:
name: 'login'
ScrollView:
do_scroll_x: False
2018-07-24 12:05:39 +02:00
BoxLayout:
2019-05-09 14:48:29 +02:00
orientation: 'vertical'
size_hint_y: None
2019-07-17 10:50:27 +02:00
height: dp(750)
padding: dp(10)
2019-05-09 14:48:29 +02:00
BoxLayout:
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "You may generate addresses by using either random numbers or by using a passphrase If you use a passphrase, the address is called a deterministic; address The Random Number option is selected by default but deterministic addresses have several \n pros and cons:\n"
halign: 'center'
bold: True
color:app.theme_cls.primary_dark
BoxLayout:
MDLabel:
font_style: 'Caption'
theme_text_color: 'Primary'
text: "If talk about pros You can recreate your addresses on any computer from memory, You need-not worry about backing up your keys.dat file as long as you can remember your passphrase and aside talk about cons You must remember (or write down) your You must remember the address version number and the stream number along with your passphrase If you choose a weak passphrase and someone on the Internet can brute-force it, they can read your messages and send messages as you"
halign: 'center'
bold: True
color:app.theme_cls.primary_dark
MDCheckbox:
id: grp_chkbox_1
group: 'test'
active: True
2019-05-28 13:12:51 +02:00
allow_no_selection: False
2019-05-09 14:48:29 +02:00
MDLabel:
font_style: 'Caption'
theme_text_color: 'Primary'
2018-07-24 12:05:39 +02:00
text: "use a random number generator to make an address"
2019-05-09 14:48:29 +02:00
halign: 'center'
size_hint_y: None
bold: True
height: self.texture_size[1] + dp(4)
color: [0.941, 0, 0,1]
MDCheckbox:
id: grp_chkbox_1
group: 'test'
2019-05-28 13:12:51 +02:00
allow_no_selection: False
2019-05-09 14:48:29 +02:00
MDLabel:
font_style: 'Caption'
theme_text_color: 'Primary'
2018-08-04 10:30:12 +02:00
text: "use a pseudo number generator to make an address"
2019-05-09 14:48:29 +02:00
halign: 'center'
size_hint_y: None
bold: True
color: [0.941, 0, 0,1]
height: self.texture_size[1] + dp(4)
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .5, .35
height: dp(40)
2019-05-09 14:48:29 +02:00
on_press: app.root.ids.scr_mngr.current = 'random'
2019-11-29 15:57:39 +01:00
on_press: app.root.ids.sc7.reset_address_label()
2019-07-17 10:50:27 +02:00
MDLabel:
font_style: 'Title'
text: 'proceed'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
<Random>:
name: 'random'
ScrollView:
2018-07-24 12:05:39 +02:00
BoxLayout:
2019-05-09 14:48:29 +02:00
orientation: 'vertical'
2018-07-24 12:05:39 +02:00
size_hint_y: None
2019-05-09 14:48:29 +02:00
height: self.minimum_height
2019-07-17 10:50:27 +02:00
padding: dp(20)
spacing: 100
2019-05-09 14:48:29 +02:00
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "Random Addresses"
halign: 'center'
bold: True
color:app.theme_cls.primary_dark
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "Here you may generate as many addresses as you like, Indeed creating and abandoning addresses is encouraged"
halign: 'center'
bold: True
color:app.theme_cls.primary_dark
MDTextField:
2018-07-24 12:05:39 +02:00
id: label
2019-05-09 14:48:29 +02:00
multiline: True
hint_text: "Label"
2019-05-13 13:31:33 +02:00
required: True
helper_text_mode: "on_error"
2019-11-19 16:58:30 +01:00
on_text: root.add_validation(self)
2019-07-17 10:50:27 +02:00
BoxLayout:
AnchorLayout:
MDRaisedButton:
size_hint: .5, None
height: dp(40)
2019-08-21 10:07:47 +02:00
on_release: root.generateaddress(app)
2019-07-17 10:50:27 +02:00
opposite_colors: True
MDLabel:
font_style: 'Title'
text: 'next'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2018-08-04 10:30:12 +02:00
<AddressSuccessful>:
name: 'add_sucess'
Label:
text: 'Successfully created a new bit address'
color: 0,0,0,1
2019-05-09 14:48:29 +02:00
<Setting>:
name: 'set'
ScrollView:
do_scroll_x: False
MDList:
id: ml
size_hint_y: None
height: dp(500)
OneLineListItem:
text: "SERVER SETTINGS"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .6, .55
height: dp(40)
MDLabel:
font_style: 'Title'
text: 'Server'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
OneLineListItem:
text: "DATA SETTINGS"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .6, .55
height: dp(40)
MDLabel:
font_style: 'Title'
text: 'Import or export data'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
OneLineListItem:
text: "OTHER SETTINGS"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .6, .55
height: dp(40)
MDLabel:
font_style: 'Title'
text: 'Restart background service'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
BoxLayout:
AnchorLayout:
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "bitmessage is 11 seconds behind the network"
halign: 'center'
bold: True
color: [0.941, 0, 0,1]
BoxLayout:
MDCheckbox:
id: chkbox
size_hint: None, None
2019-06-28 16:54:47 +02:00
size: dp(48), dp(64)
2019-05-09 14:48:29 +02:00
active: True
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "show settings (for advanced users only)"
halign: 'left'
bold: True
color: app.theme_cls.primary_dark
<MyAddress>:
name: 'myaddress'
2019-09-27 18:31:37 +02:00
BoxLayout:
orientation: 'vertical'
SearchBar:
FloatLayout:
MDScrollViewRefreshLayout:
id: refresh_layout
refresh_callback: root.refresh_callback
2019-11-08 13:08:26 +01:00
root_layout: root.set_root_layout()
2019-09-27 18:31:37 +02:00
MDList:
id: ml
2019-11-04 17:27:53 +01:00
Loader:
2019-06-06 15:48:20 +02:00
ComposerButton:
2019-05-09 14:48:29 +02:00
<AddressBook>:
name: 'addressbook'
BoxLayout:
2019-09-27 18:31:37 +02:00
orientation: 'vertical'
SearchBar:
BoxLayout:
orientation:'vertical'
ScrollView:
2019-11-19 16:58:30 +01:00
id: scroll_y
2019-09-27 18:31:37 +02:00
do_scroll_x: False
MDList:
id: ml
2019-11-19 16:58:30 +01:00
Loader:
2019-06-06 15:48:20 +02:00
ComposerButton:
2019-05-09 14:48:29 +02:00
<Payment>:
name: 'payment'
2019-09-06 17:20:58 +02:00
ScrollView:
do_scroll_x: False
BoxLayout:
2019-09-11 17:03:51 +02:00
orientation: 'vertical'
2019-09-18 09:44:00 +02:00
padding: [dp(app.window_size[0]/16 if app.window_size[0] <= 720 else app.window_size[0]/4*1.1), dp(10)]
2019-09-16 12:21:05 +02:00
spacing: 12
2019-09-11 17:03:51 +02:00
size_hint_y: None
height: self.minimum_height + dp(app.window_size[1]) if app.window_size[1] > app.window_size[0] else dp(app.window_size[0])
2019-09-06 17:20:58 +02:00
BoxLayout:
orientation: 'vertical'
padding: dp(5)
canvas.before:
Color:
2019-09-16 12:21:05 +02:00
rgba: app.theme_cls.primary_dark
2019-09-06 17:20:58 +02:00
Rectangle:
# self here refers to the widget i.e FloatLayout
pos: self.pos
size: self.size
MDLabel:
size_hint_y: None
font_style: 'Headline'
theme_text_color: 'Primary'
text: 'Platinum'
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
2019-09-11 17:03:51 +02:00
text: 'We provide subscriptions for proof of work calculation for first month. '
2019-09-06 17:20:58 +02:00
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDLabel:
2019-09-16 12:21:05 +02:00
id: free_pak
2019-09-06 17:20:58 +02:00
font_style: 'Headline'
theme_text_color: 'Primary'
text: '€ 50.0'
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDRaisedButton:
2019-09-16 12:21:05 +02:00
canvas:
Color:
rgb: (0.93, 0.93, 0.93)
Rectangle:
pos: self.pos
size: self.size
2019-09-06 17:20:58 +02:00
size_hint: 1, None
height: dp(40)
2019-09-16 12:21:05 +02:00
on_press: root.get_available_credits(self)
2019-09-06 17:20:58 +02:00
MDLabel:
font_style: 'Title'
2019-09-16 12:21:05 +02:00
text: 'Get Free Credits'
2019-09-06 17:20:58 +02:00
font_size: '13sp'
2019-09-16 12:21:05 +02:00
color: (0,0,0,1)
2019-09-06 17:20:58 +02:00
halign: 'center'
BoxLayout:
orientation: 'vertical'
padding: dp(5)
canvas.before:
Color:
2019-09-16 12:21:05 +02:00
rgba: app.theme_cls.primary_dark
2019-09-06 17:20:58 +02:00
Rectangle:
# self here refers to the widget i.e FloatLayout
pos: self.pos
size: self.size
MDLabel:
size_hint_y: None
font_style: 'Headline'
theme_text_color: 'Primary'
text: 'Silver'
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
2019-09-11 17:03:51 +02:00
text: 'We provide for proof of work calculation for six month. '
2019-09-06 17:20:58 +02:00
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDLabel:
font_style: 'Headline'
theme_text_color: 'Primary'
text: '€ 100.0'
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDRaisedButton:
2019-09-16 12:21:05 +02:00
canvas:
Color:
rgb: (0.93, 0.93, 0.93)
Rectangle:
pos: self.pos
size: self.size
2019-09-06 17:20:58 +02:00
size_hint: 1, None
height: dp(40)
MDLabel:
font_style: 'Title'
2019-09-16 12:21:05 +02:00
text: 'Get Monthly Credits'
2019-09-06 17:20:58 +02:00
font_size: '13sp'
2019-09-16 12:21:05 +02:00
color: (0,0,0,1)
2019-09-06 17:20:58 +02:00
halign: 'center'
BoxLayout:
orientation: 'vertical'
padding: dp(5)
canvas.before:
Color:
2019-09-16 12:21:05 +02:00
rgba: app.theme_cls.primary_dark
2019-09-06 17:20:58 +02:00
Rectangle:
# self here refers to the widget i.e FloatLayout
pos: self.pos
size: self.size
MDLabel:
size_hint_y: None
font_style: 'Headline'
theme_text_color: 'Primary'
text: 'Gold'
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
2019-09-11 17:03:51 +02:00
text: 'We provide for proof of work calculation for 1years. '
2019-09-06 17:20:58 +02:00
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDLabel:
font_style: 'Headline'
theme_text_color: 'Primary'
text: '€ 500.0'
halign: 'center'
2019-09-16 12:21:05 +02:00
color: 1,1,1,1
2019-09-06 17:20:58 +02:00
MDRaisedButton:
2019-09-16 12:21:05 +02:00
canvas:
Color:
rgb: (0.93, 0.93, 0.93)
Rectangle:
pos: self.pos
size: self.size
2019-09-06 17:20:58 +02:00
size_hint: 1, None
height: dp(40)
MDLabel:
font_style: 'Title'
2019-09-16 12:21:05 +02:00
text: 'Get Yearly Credits'
2019-09-06 17:20:58 +02:00
font_size: '13sp'
2019-09-16 12:21:05 +02:00
color: (0,0,0,1)
2019-09-06 17:20:58 +02:00
halign: 'center'
2019-05-09 14:48:29 +02:00
<GrashofPopup>:
id: popup
2019-09-24 17:21:34 +02:00
size_hint : (None,None)
height: 2*(label.height + address.height) + 10
width :app.window_size[0] - app.window_size[0]/10
2019-05-09 14:48:29 +02:00
title: 'add contact\'s'
background: './images/popup.jpeg'
2019-06-28 16:54:47 +02:00
title_size: sp(20)
2019-05-09 14:48:29 +02:00
title_color: 0.4, 0.3765, 0.3451, 1
auto_dismiss: False
separator_color: 0.3529, 0.3922, 0.102, 0.7
BoxLayout:
2019-06-28 16:54:47 +02:00
size_hint_y: 0.5
2019-05-09 14:48:29 +02:00
orientation: 'vertical'
2019-06-28 16:54:47 +02:00
spacing:dp(20)
2019-05-09 14:48:29 +02:00
id: popup_box
2019-06-28 16:54:47 +02:00
BoxLayout:
orientation: 'vertical'
MDTextField:
id: label
2019-07-17 10:50:27 +02:00
multiline: False
2019-06-28 16:54:47 +02:00
hint_text: "Label"
required: True
helper_text_mode: "on_error"
2019-11-19 16:58:30 +01:00
on_text: root.checkLabel_valid(self)
2019-06-28 16:54:47 +02:00
MDTextField:
id: address
hint_text: "Address"
required: True
helper_text_mode: "on_error"
2019-09-06 17:20:58 +02:00
on_text: root.checkAddress_valid(self)
2019-06-28 16:54:47 +02:00
BoxLayout:
spacing:5
orientation: 'horizontal'
MDRaisedButton:
2019-09-06 17:20:58 +02:00
id: save_addr
2019-06-28 16:54:47 +02:00
size_hint: 1.5, None
height: dp(40)
on_release:
root.savecontact()
MDLabel:
font_style: 'Title'
text: 'Save'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
MDRaisedButton:
size_hint: 1.5, None
height: dp(40)
on_press: root.dismiss()
2019-08-13 09:28:15 +02:00
on_press: root.close_pop()
2019-06-28 16:54:47 +02:00
MDLabel:
font_style: 'Title'
text: 'Cancel'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
MDRaisedButton:
size_hint: 2, None
height: dp(40)
MDLabel:
font_style: 'Title'
text: 'Scan QR code'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
2019-09-06 17:20:58 +02:00
2019-05-09 14:48:29 +02:00
<NetworkStat>:
name: 'networkstat'
MDTabbedPanel:
id: tab_panel
tab_display_mode:'text'
MDTab:
name: 'connections'
text: "Total connections"
ScrollView:
do_scroll_x: False
MDList:
id: ml
size_hint_y: None
height: dp(200)
OneLineListItem:
text: "Total Connections"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .6, .35
height: dp(40)
MDLabel:
font_style: 'Title'
text: root.text_variable_1
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
MDTab:
name: 'processes'
text: 'Processes'
ScrollView:
do_scroll_x: False
MDList:
id: ml
size_hint_y: None
height: dp(500)
OneLineListItem:
text: "person-to-person"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .7, .6
height: dp(40)
MDLabel:
font_style: 'Title'
text: root.text_variable_2
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
OneLineListItem:
text: "Brodcast"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .7, .6
height: dp(40)
MDLabel:
font_style: 'Title'
text: root.text_variable_3
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
OneLineListItem:
text: "publickeys"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .7, .6
height: dp(40)
MDLabel:
font_style: 'Title'
text: root.text_variable_4
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-09 14:48:29 +02:00
OneLineListItem:
text: "objects"
BoxLayout:
AnchorLayout:
MDRaisedButton:
2019-07-17 10:50:27 +02:00
size_hint: .7, .6
height: dp(40)
MDLabel:
font_style: 'Title'
text: root.text_variable_5
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
2019-05-28 13:12:51 +02:00
2019-06-06 15:48:20 +02:00
<MailDetail>:
name: 'mailDetail'
2019-05-28 13:12:51 +02:00
ScrollView:
do_scroll_x: False
BoxLayout:
orientation: 'vertical'
size_hint_y: None
2019-09-11 17:03:51 +02:00
height: dp(500) + self.minimum_height
2019-05-28 13:12:51 +02:00
padding: dp(32)
MDLabel:
font_style: 'Headline'
theme_text_color: 'Primary'
text: root.subject
halign: 'left'
2019-09-06 17:20:58 +02:00
font_size: '20sp'
CopyTextBtn:
2019-06-06 15:48:20 +02:00
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
text: "From: " + root.from_addr
halign: 'left'
2019-09-06 17:20:58 +02:00
CopyTextBtn:
2019-05-28 13:12:51 +02:00
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
text: "To: " + root.to_addr
halign: 'left'
2019-09-06 17:20:58 +02:00
CopyTextBtn:
2019-05-28 13:12:51 +02:00
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
2019-06-06 15:48:20 +02:00
text: root.status
2019-05-28 13:12:51 +02:00
halign: 'left'
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
text: root.message
halign: 'left'
2019-06-06 15:48:20 +02:00
bold: True
2019-09-06 17:20:58 +02:00
CopyTextBtn:
2019-06-06 15:48:20 +02:00
BoxLayout:
2019-09-06 17:20:58 +02:00
orientation: 'vertical'
size_hint_y: None
height: dp(100) + self.minimum_height
2019-11-26 14:19:44 +01:00
Loader:
2019-09-06 17:20:58 +02:00
<CopyTextBtn@Button>:
id: cpyButton
color: 0,0,0,1
background_color: (0,0,0,0)
center_x: self.parent.center_x * 2 - self.parent.parent.padding[0]/2
center_y: self.parent.center_y
on_press:app.root.ids.sc14.copy_composer_text(self)
Image:
source: './images/copy_text.png'
center_x: self.parent.center_x
center_y: self.parent.center_y
size: 20, 20
2019-06-06 15:48:20 +02:00
<ComposerButton@BoxLayout>:
size_hint_y: None
height: dp(56)
spacing: '10dp'
pos_hint: {'center_x':0.45, 'center_y': .1}
Widget:
MDFloatingActionButton:
icon: 'plus'
opposite_colors: True
elevation_normal: 8
md_bg_color: [0.941, 0, 0,1]
on_press: app.root.ids.scr_mngr.current = 'create'
2019-07-17 10:50:27 +02:00
on_press: app.clear_composer()
2019-06-06 15:48:20 +02:00
<MyaddDetailPopup>:
id: myadd_popup
2019-09-24 17:21:34 +02:00
size_hint : (None,None)
height: 4.5*(myaddr_label.height+ my_add_btn.children[0].height)
width :app.window_size[0] - app.window_size[0]/10
2019-06-06 15:48:20 +02:00
background: './images/popup.jpeg'
auto_dismiss: False
2019-09-24 17:21:34 +02:00
separator_height: 0
2019-06-06 15:48:20 +02:00
BoxLayout:
2019-09-24 17:21:34 +02:00
id: myadd_popup_box
2019-06-06 15:48:20 +02:00
size_hint_y: None
2019-06-28 16:54:47 +02:00
spacing:dp(70)
orientation: 'vertical'
BoxLayout:
size_hint_y: None
orientation: 'vertical'
spacing:dp(25)
MDLabel:
2019-09-24 17:21:34 +02:00
id: myaddr_label
2019-06-28 16:54:47 +02:00
font_style: 'Title'
theme_text_color: 'Primary'
text: "Label"
font_size: '17sp'
halign: 'left'
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
text: root.address_label
font_size: '15sp'
halign: 'left'
MDLabel:
font_style: 'Title'
theme_text_color: 'Primary'
text: "Address"
font_size: '17sp'
halign: 'left'
MDLabel:
font_style: 'Subhead'
theme_text_color: 'Primary'
text: root.address
font_size: '15sp'
halign: 'left'
BoxLayout:
2019-09-24 17:21:34 +02:00
id: my_add_btn
2019-06-28 16:54:47 +02:00
spacing:5
orientation: 'horizontal'
MDRaisedButton:
size_hint: 2, None
height: dp(40)
on_press: root.send_message_from()
MDLabel:
font_style: 'Title'
text: 'Send message from'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
MDRaisedButton:
size_hint: 1.5, None
height: dp(40)
on_press: root.dismiss()
on_press: app.root.ids.scr_mngr.current = 'showqrcode'
on_press: app.root.ids.sc15.qrdisplay()
MDLabel:
font_style: 'Title'
text: 'Show QR code'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
MDRaisedButton:
size_hint: 1.5, None
height: dp(40)
on_press: root.dismiss()
2019-08-13 09:28:15 +02:00
on_press: root.close_pop()
2019-06-28 16:54:47 +02:00
MDLabel:
font_style: 'Title'
text: 'Cancel'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
<AddbookDetailPopup>:
id: addbook_popup
2019-09-24 17:21:34 +02:00
size_hint : (None,None)
height: 4*(add_label.height)
width :app.window_size[0] - app.window_size[0]/10
2019-06-28 16:54:47 +02:00
background: './images/popup.jpeg'
separator_height: 0
auto_dismiss: False
BoxLayout:
size_hint_y: None
spacing:dp(70)
id: addbook_popup_box
orientation: 'vertical'
BoxLayout:
size_hint_y: None
orientation: 'vertical'
spacing:dp(20)
MDLabel:
font_style: 'Title'
theme_text_color: 'Primary'
text: "Label"
font_size: '17sp'
halign: 'left'
MDTextField:
id: add_label
font_style: 'Subhead'
font_size: '15sp'
halign: 'left'
text: root.address_label
theme_text_color: 'Primary'
required: True
helper_text_mode: "on_error"
2019-11-19 16:58:30 +01:00
on_text: root.checkLabel_valid(self)
2019-06-28 16:54:47 +02:00
MDLabel:
font_style: 'Title'
theme_text_color: 'Primary'
text: "Address"
font_size: '17sp'
halign: 'left'
MDLabel:
2019-11-19 16:58:30 +01:00
id: address
2019-06-28 16:54:47 +02:00
font_style: 'Subhead'
theme_text_color: 'Primary'
text: root.address
font_size: '15sp'
halign: 'left'
BoxLayout:
2019-09-24 17:21:34 +02:00
id: addbook_btn
2019-06-28 16:54:47 +02:00
spacing:5
orientation: 'horizontal'
MDRaisedButton:
size_hint: 2, None
height: dp(40)
on_press: root.send_message_to()
MDLabel:
font_style: 'Title'
text: 'Send message to'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
MDRaisedButton:
size_hint: 1.5, None
height: dp(40)
font_size: '10sp'
on_press: root.update_addbook_label(root.address)
MDLabel:
font_style: 'Title'
text: 'Save'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
MDRaisedButton:
size_hint: 1.5, None
height: dp(40)
on_press: root.dismiss()
2019-08-13 09:28:15 +02:00
on_press: root.close_pop()
2019-06-28 16:54:47 +02:00
MDLabel:
font_style: 'Title'
text: 'Cancel'
font_size: '13sp'
color: (1,1,1,1)
halign: 'center'
<ShowQRCode>:
name: 'showqrcode'
BoxLayout:
2019-06-06 15:48:20 +02:00
orientation: 'vertical'
2019-07-17 10:50:27 +02:00
id: qr
<ArrowImg@Image>:
source: './images/down-arrow.png' if self.parent.is_open == True else './images/right-arrow.png'
size: 15, 15
x: self.parent.x + self.parent.width - self.width - 5
2019-09-27 18:31:37 +02:00
y: self.parent.y + self.parent.height/2 - self.height + 5
<SearchBar@BoxLayout>:
id: search_bar
size_hint_y: None
height: self.minimum_height
MDIconButton:
icon: 'magnify'
MDTextField:
id: search_field
hint_text: 'Search'
on_text: app.searchQuery(self)
2019-10-31 11:54:18 +01:00
<LoadingPopup>:
separator_color: 1, 1, 1, 1
background: "White.png"
Button:
id: btn
disabled: True
background_disabled_normal: "White.png"
Image:
source: './images/loader.zip'
anim_delay: 0
#mipmap: True
2019-11-04 17:27:53 +01:00
size: root.size
<Loader@MDSpinner>:
id: spinner
size_hint: None, None
size: dp(46), dp(46)
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
active: False