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_display_mode:'text'
Tab: Tab:
text: app.tr._("User Interface") title: app.tr._("User Interface")
ScrollView: ScrollView:
do_scroll_x: False do_scroll_x: False
BoxLayout: BoxLayout:
@ -220,7 +220,7 @@
text: app.tr._('Apply') text: app.tr._('Apply')
# on_press: root.change_language() # on_press: root.change_language()
Tab: Tab:
text: 'Network Settings' title: 'Network Settings'
ScrollView: ScrollView:
do_scroll_x: False do_scroll_x: False
BoxLayout: BoxLayout:
@ -464,7 +464,7 @@
MDRaisedButton: MDRaisedButton:
text: app.tr._('Apply') text: app.tr._('Apply')
Tab: Tab:
text: 'Demanded Difficulty' title: 'Demanded Difficulty'
ScrollView: ScrollView:
do_scroll_x: False do_scroll_x: False
@ -616,7 +616,7 @@
text: app.tr._('Apply') text: app.tr._('Apply')
Tab: Tab:
text: 'Max acceptable Difficulty' title: 'Max acceptable Difficulty'
ScrollView: ScrollView:
do_scroll_x: False do_scroll_x: False
BoxLayout: BoxLayout:
@ -710,7 +710,7 @@
MDRaisedButton: MDRaisedButton:
text: app.tr._('OK') text: app.tr._('OK')
Tab: Tab:
text: 'Resends Expire' title: 'Resends Expire'
ScrollView: ScrollView:
do_scroll_x: False do_scroll_x: False
BoxLayout: BoxLayout:
@ -787,7 +787,7 @@
text: app.tr._('Apply') text: app.tr._('Apply')
Tab: Tab:
text: 'Namecoin Integration' title: 'Namecoin Integration'
ScrollView: ScrollView:
do_scroll_x: False do_scroll_x: False
BoxLayout: BoxLayout:

View File

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

View File

@ -26,5 +26,10 @@
"kv_string": "network", "kv_string": "network",
"name_screen": "networkstat", "name_screen": "networkstat",
"Import": "from pybitmessage.bitmessagekivy.baseclass.network import NetworkStat" "Import": "from pybitmessage.bitmessagekivy.baseclass.network import NetworkStat"
},
"Settings": {
"kv_string": "settings",
"name_screen": "set",
"Import": "from pybitmessage.bitmessagekivy.baseclass.settings import Setting"
} }
} }