Skip to content

Commit

Permalink
Navigation drawer to contain address, refs #70
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Jul 23, 2017
1 parent c5c4c32 commit 61ecfba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
from kivymd.button import MDFlatButton, MDIconButton
from kivymd.dialog import MDDialog
from kivymd.label import MDLabel
from kivymd.list import ILeftBodyTouch, OneLineListItem, TwoLineIconListItem
from kivymd.list import (ILeftBodyTouch, OneLineListItem, TwoLineIconListItem,
TwoLineListItem)
from kivymd.navigationdrawer import NavigationDrawerHeaderBase
from kivymd.snackbar import Snackbar
from kivymd.textfields import MDTextField
from kivymd.theming import ThemeManager
Expand Down Expand Up @@ -61,6 +63,12 @@ def run(*k, **kw):
return run


class NavigationDrawerTwoLineListItem(
TwoLineListItem, NavigationDrawerHeaderBase):
def _update_specific_text_color(self, instance, value):
pass


class IconLeftWidget(ILeftBodyTouch, MDIconButton):
pass

Expand Down
6 changes: 4 additions & 2 deletions src/pywallet.kv
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
# need this hack to push widgets up
id: push_up


<Navigation@NavigationLayout>:
MDNavigationDrawer:
id: navigation_drawer
NavigationDrawerToolbar:
title: "Menu"
NavigationDrawerTwoLineListItem:
text: "Account"
secondary_text: "secondary_text"
NavigationDrawerIconButton:
icon: "home"
text: "Home"
Expand Down

0 comments on commit 61ecfba

Please sign in to comment.