From b1f7489b0955145c579da7ea5d5475a705fd7bd0 Mon Sep 17 00:00:00 2001 From: surbhi Date: Sat, 4 Aug 2018 14:00:12 +0530 Subject: [PATCH] Implemement Ui for Inbox Load feature with create new address based on random number --- src/bitmessagekivy/main.kv | 114 +++++++++++------- src/bitmessagekivy/mpybit.py | 91 +++++++++++--- src/images/ngletteravatar/1.png | Bin 0 -> 1194 bytes src/images/ngletteravatar/12.png | Bin 0 -> 1914 bytes src/images/ngletteravatar/14.png | Bin 0 -> 1249 bytes src/images/ngletteravatar/16.png | Bin 0 -> 483 bytes src/images/ngletteravatar/2.jpg | Bin 0 -> 4733 bytes src/images/ngletteravatar/3.png | Bin 0 -> 1335 bytes src/images/ngletteravatar/5.png | Bin 0 -> 1379 bytes src/images/ngletteravatar/56.png | Bin 0 -> 3247 bytes src/images/ngletteravatar/65.png | Bin 0 -> 822 bytes src/images/ngletteravatar/8.png | Bin 0 -> 1316 bytes src/images/ngletteravatar/90.png | Bin 0 -> 9685 bytes src/images/ngletteravatar/a.png | Bin 0 -> 2378 bytes src/images/ngletteravatar/b.png | Bin 0 -> 4732 bytes src/images/ngletteravatar/c.png | Bin 0 -> 1637 bytes src/images/ngletteravatar/d.png | Bin 0 -> 1705 bytes ...stration-letter-l-sign-design-template.jpg | Bin 0 -> 243858 bytes src/images/ngletteravatar/e.png | Bin 0 -> 631 bytes src/images/ngletteravatar/g.png | Bin 0 -> 1491 bytes src/images/ngletteravatar/h.png | Bin 0 -> 537 bytes src/images/ngletteravatar/i.png | Bin 0 -> 397 bytes src/images/ngletteravatar/j.png | Bin 0 -> 656 bytes src/images/ngletteravatar/k.png | Bin 0 -> 938 bytes src/images/ngletteravatar/l.png | Bin 0 -> 806 bytes src/images/ngletteravatar/m.png | Bin 0 -> 1314 bytes src/images/ngletteravatar/n.png | Bin 0 -> 6277 bytes src/images/ngletteravatar/o.png | Bin 0 -> 2112 bytes src/images/ngletteravatar/p.png | Bin 0 -> 783 bytes src/images/ngletteravatar/r.png | Bin 0 -> 1378 bytes src/images/ngletteravatar/s.png | Bin 0 -> 2466 bytes src/images/ngletteravatar/t.png | Bin 0 -> 449 bytes src/images/ngletteravatar/u.png | Bin 0 -> 972 bytes src/images/ngletteravatar/v.png | Bin 0 -> 2284 bytes src/images/ngletteravatar/w.png | Bin 0 -> 5622 bytes src/images/ngletteravatar/z.png | Bin 0 -> 750 bytes 36 files changed, 146 insertions(+), 59 deletions(-) create mode 100644 src/images/ngletteravatar/1.png create mode 100644 src/images/ngletteravatar/12.png create mode 100644 src/images/ngletteravatar/14.png create mode 100644 src/images/ngletteravatar/16.png create mode 100644 src/images/ngletteravatar/2.jpg create mode 100644 src/images/ngletteravatar/3.png create mode 100644 src/images/ngletteravatar/5.png create mode 100644 src/images/ngletteravatar/56.png create mode 100644 src/images/ngletteravatar/65.png create mode 100644 src/images/ngletteravatar/8.png create mode 100644 src/images/ngletteravatar/90.png create mode 100644 src/images/ngletteravatar/a.png create mode 100644 src/images/ngletteravatar/b.png create mode 100644 src/images/ngletteravatar/c.png create mode 100644 src/images/ngletteravatar/d.png create mode 100644 src/images/ngletteravatar/depositphotos_142729281-stock-illustration-letter-l-sign-design-template.jpg create mode 100644 src/images/ngletteravatar/e.png create mode 100644 src/images/ngletteravatar/g.png create mode 100644 src/images/ngletteravatar/h.png create mode 100644 src/images/ngletteravatar/i.png create mode 100644 src/images/ngletteravatar/j.png create mode 100644 src/images/ngletteravatar/k.png create mode 100644 src/images/ngletteravatar/l.png create mode 100644 src/images/ngletteravatar/m.png create mode 100644 src/images/ngletteravatar/n.png create mode 100644 src/images/ngletteravatar/o.png create mode 100644 src/images/ngletteravatar/p.png create mode 100644 src/images/ngletteravatar/r.png create mode 100644 src/images/ngletteravatar/s.png create mode 100644 src/images/ngletteravatar/t.png create mode 100644 src/images/ngletteravatar/u.png create mode 100644 src/images/ngletteravatar/v.png create mode 100644 src/images/ngletteravatar/w.png create mode 100644 src/images/ngletteravatar/z.png diff --git a/src/bitmessagekivy/main.kv b/src/bitmessagekivy/main.kv index ed8ad339..c678331a 100644 --- a/src/bitmessagekivy/main.kv +++ b/src/bitmessagekivy/main.kv @@ -1,59 +1,41 @@ +#:import la kivy.adapters.listadapter +#:import factory kivy.factory +#:import mpybit bitmessagekivy.mpybit +#:import ListItemButton kivy.uix.listview.ListItemButton + : id: nav_drawer NavigationDrawerIconButton: - Button: + Spinner: + pos_hint:{"x":0,"y":.3} id: btn - background_color:app.theme_cls.primary_dark - text: 'BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk' - on_release: dropdown.open(self) - pos_hint: {'x': 0, 'y': 0.3} - size_hint_y: None - height: '48dp' - - DropDown: - - id: dropdown - on_parent: self.dismiss() - on_select: btn.text = '{}'.format(args[1]) - Button: - background_color:app.theme_cls.primary_dark - text: 'BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk' - size_hint_y: None - height: '48dp' - on_release: dropdown.select('BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk') - on_release: app.root.ids.scr_mngr.current = 'dialog' - - Button: - background_color:app.theme_cls.primary_dark - text: 'BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk' - size_hint_y: None - height: '48dp' - on_release: dropdown.select('BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk') - on_release: app.root.ids.scr_mngr.current = 'button' + background_color: app.theme_cls.primary_dark + text: '
' + values: app.showmeaddresses() NavigationDrawerIconButton: - icon: 'email' + icon: 'email-open' text: "inbox" on_release: app.root.ids.scr_mngr.current = 'inbox' NavigationDrawerIconButton: - icon: 'email' + icon: 'mail-send' text: "sent" on_release: app.root.ids.scr_mngr.current = 'sent' NavigationDrawerIconButton: - icon: 'email' + icon: 'dropbox' text: "trash" on_release: app.root.ids.scr_mngr.current = 'trash' NavigationDrawerIconButton: icon: 'email' - text: "dialog" + text: "drafts" on_release: app.root.ids.scr_mngr.current = 'dialog' NavigationDrawerIconButton: - icon: 'email' + icon: 'markunread-mailbox' text: "test" on_release: app.root.ids.scr_mngr.current = 'test' NavigationDrawerIconButton: text: "new identity" - icon:'notifications-add' + icon:'accounts-add' on_release: app.root.ids.scr_mngr.current = 'newidentity' BoxLayout: @@ -67,8 +49,8 @@ BoxLayout: text:"EXIT" color: 0,0,0,1 background_color: (0,0,0,0) - size_hint_y: 0.1 - size_hint_x: 0.1 + size_hint_y: 0.4 + size_hint_x: 0.5 pos_hint: {'x': 0.8, 'y':0.4} on_press: app.say_exit() @@ -89,10 +71,14 @@ BoxLayout: id:sc6 NewIdentity: id:sc7 + Page: + id:sc8 + AddressSuccessful: + id:sc9 Button: height:100 - size_hint_y: 0.1 + size_hint_y: 0.2 size_hint_x: 0.1 pos_hint: {'x': 0.85, 'y': 0.5} background_color: (0,0,0,0) @@ -102,8 +88,30 @@ BoxLayout: y: self.parent.y x: self.parent.x + self.parent.width - 50 size: 70, 70 + +: + height: dp(25) + size_hint: (1,.1) + selected_color: 0,0,0,0 + deselected_color: 0,0,0,0 + color: 0, 0,0, 1 + : name: 'inbox' + ScrollView: + GridLayout: + id: box_share + cols: 1 + size_hint_y: None + spacing: 10 + padding: 10 + height: self.minimum_height + canvas: + Color: + rgb: 30,144,255 + Rectangle: + pos: self.pos + size: self.size : name: 'sent' @@ -141,7 +149,7 @@ BoxLayout: pos: 10,10 id: spinner_id text: '