Add Kivy Settings screen

This commit is contained in:
Mohammad Osama Khan 2022-10-18 19:17:31 +05:30 committed by osamacis
parent 3e6df9a319
commit b574529c49
No known key found for this signature in database
GPG Key ID: 15F978BEFADAB9E1
4 changed files with 23 additions and 6 deletions

View 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"""

View File

@ -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:

View File

@ -222,6 +222,8 @@ MDNavigationLayout:
id:id_create
NetworkStat:
id:id_networkstat
Setting:
id:id_settings
MDNavigationDrawer:
id: nav_drawer

View File

@ -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"
}
}