Skip to content

Commit

Permalink
Draft manage keystore tab
Browse files Browse the repository at this point in the history
Simple view with two password fields that doesn't nothing,
refs #9
  • Loading branch information
AndreMiras committed Jun 25, 2017
1 parent 5379ac3 commit 1cb9042
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
36 changes: 32 additions & 4 deletions src/controller.kv
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
on_release: app.controller.load_landing_page()
NavigationDrawerIconButton:
icon: "key"
text: "Keystores"
text: "Keystore"
on_release: app.controller.load_manage_keystores()
NavigationDrawerIconButton:
icon: "help"
Expand Down Expand Up @@ -121,6 +121,28 @@
text: 'Copy it in to the keystore directory.\n%s' % root.keystore_path


<CreateNewAccount@BoxLayout>:
orientation: 'vertical'
MDLabel:
font_style: 'Display1'
halign: 'center'
valign: 'middle'
text: "Create new account"
MDTextField:
hint_text: "Password"
helper_text: "Enter the for encrypting your new account"
helper_text_mode: "on_focus"
# text: root.password
MDTextField:
hint_text: "Password"
helper_text: "Retype your password"
helper_text_mode: "on_focus"
# text: root.password
# push widgets up
BoxLayout:



<ManageExisting@BoxLayout>:
orientation: 'vertical'
MDLabel:
Expand All @@ -130,20 +152,26 @@
text: "Manage existing"


<ManageKeystores>:
<ManageKeystore>:
orientation: 'vertical'
MDBottomNavigation:
id: bottom_navigation_id
MDBottomNavigationItem:
name: "import_keystore"
text: "Import"
icon: 'format-list-bulleted'
icon: "download"
ImportKeystore:
MDBottomNavigationItem:
name: "manage_existing"
text: "Manage"
icon: 'format-list-bulleted'
ManageExisting:
MDBottomNavigationItem:
name: "create_new"
text: "Create new"
icon: "plus"
CreateNewAccount:



<About@BoxLayout>:
Expand Down Expand Up @@ -204,7 +232,7 @@
id: receive_id
Screen:
name: 'manage_keystores'
ManageKeystores:
ManageKeystore:
id: manage_keystores_id
Screen:
name: 'about'
Expand Down
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ def setup(self):
dialog.open()


class ManageKeystores(BoxLayout):
class ManageKeystore(BoxLayout):

keystore_path = StringProperty()

def __init__(self, **kwargs):
super(ManageKeystores, self).__init__(**kwargs)
super(ManageKeystore, self).__init__(**kwargs)
Clock.schedule_once(lambda dt: self.setup())

def setup(self):
Expand Down

0 comments on commit 1cb9042

Please sign in to comment.