Add Kivy Settings screen
This commit is contained in:
parent
3e6df9a319
commit
b574529c49
10
src/bitmessagekivy/baseclass/settings.py
Normal file
10
src/bitmessagekivy/baseclass/settings.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
# pylint: disable=unused-argument, no-name-in-module, too-few-public-methods
|
||||
"""
|
||||
Settings screen UI
|
||||
"""
|
||||
|
||||
from kivy.uix.screenmanager import Screen
|
||||
|
||||
|
||||
class Setting(Screen):
|
||||
"""Setting Screen for kivy Ui"""
|
|
@ -5,7 +5,7 @@
|
|||
tab_display_mode:'text'
|
||||
|
||||
Tab:
|
||||
text: app.tr._("User Interface")
|
||||
title: app.tr._("User Interface")
|
||||
ScrollView:
|
||||
do_scroll_x: False
|
||||
BoxLayout:
|
||||
|
@ -220,7 +220,7 @@
|
|||
text: app.tr._('Apply')
|
||||
# on_press: root.change_language()
|
||||
Tab:
|
||||
text: 'Network Settings'
|
||||
title: 'Network Settings'
|
||||
ScrollView:
|
||||
do_scroll_x: False
|
||||
BoxLayout:
|
||||
|
@ -464,7 +464,7 @@
|
|||
MDRaisedButton:
|
||||
text: app.tr._('Apply')
|
||||
Tab:
|
||||
text: 'Demanded Difficulty'
|
||||
title: 'Demanded Difficulty'
|
||||
ScrollView:
|
||||
do_scroll_x: False
|
||||
|
||||
|
@ -616,7 +616,7 @@
|
|||
text: app.tr._('Apply')
|
||||
|
||||
Tab:
|
||||
text: 'Max acceptable Difficulty'
|
||||
title: 'Max acceptable Difficulty'
|
||||
ScrollView:
|
||||
do_scroll_x: False
|
||||
BoxLayout:
|
||||
|
@ -710,7 +710,7 @@
|
|||
MDRaisedButton:
|
||||
text: app.tr._('OK')
|
||||
Tab:
|
||||
text: 'Resends Expire'
|
||||
title: 'Resends Expire'
|
||||
ScrollView:
|
||||
do_scroll_x: False
|
||||
BoxLayout:
|
||||
|
@ -787,7 +787,7 @@
|
|||
text: app.tr._('Apply')
|
||||
|
||||
Tab:
|
||||
text: 'Namecoin Integration'
|
||||
title: 'Namecoin Integration'
|
||||
ScrollView:
|
||||
do_scroll_x: False
|
||||
BoxLayout:
|
||||
|
|
|
@ -222,6 +222,8 @@ MDNavigationLayout:
|
|||
id:id_create
|
||||
NetworkStat:
|
||||
id:id_networkstat
|
||||
Setting:
|
||||
id:id_settings
|
||||
|
||||
MDNavigationDrawer:
|
||||
id: nav_drawer
|
||||
|
|
|
@ -26,5 +26,10 @@
|
|||
"kv_string": "network",
|
||||
"name_screen": "networkstat",
|
||||
"Import": "from pybitmessage.bitmessagekivy.baseclass.network import NetworkStat"
|
||||
},
|
||||
"Settings": {
|
||||
"kv_string": "settings",
|
||||
"name_screen": "set",
|
||||
"Import": "from pybitmessage.bitmessagekivy.baseclass.settings import Setting"
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user