From 17a79949181863c0a1b82c7afa6d3c28a6c3edcc Mon Sep 17 00:00:00 2001 From: navjot Date: Tue, 17 Mar 2020 21:32:52 +0530 Subject: [PATCH] worked on fixing network UI or changed requirement.txt file --- python3_requirements.txt | 3 +- src/bitmessagekivy/kv/network.kv | 100 +++++++++++++++---------------- 2 files changed, 51 insertions(+), 52 deletions(-) diff --git a/python3_requirements.txt b/python3_requirements.txt index c9957e22..bf9f860c 100644 --- a/python3_requirements.txt +++ b/python3_requirements.txt @@ -6,11 +6,10 @@ idna==2.8 isort==4.3.21 Kivy==1.11.1 Kivy-Garden==0.1.4 -git+https://github.com/surbhicis/KivyMD-1 +-e git+https://github.com/surbhicis/KivyMD-1#egg=kivymd lazy-object-proxy==1.4.3 mccabe==0.6.1 Pillow==6.1.0 -pkg-resources==0.0.0 pydenticon==0.3.1 Pygments==2.4.2 pylint==2.4.4 diff --git a/src/bitmessagekivy/kv/network.kv b/src/bitmessagekivy/kv/network.kv index 80d1bba1..25f2bacc 100644 --- a/src/bitmessagekivy/kv/network.kv +++ b/src/bitmessagekivy/kv/network.kv @@ -15,16 +15,16 @@ OneLineListItem: text: "Total Connections" BoxLayout: - AnchorLayout: - MDRaisedButton: - size_hint: .6, .3 - height: dp(40) - MDLabel: - font_style: 'H6' - text: root.text_variable_1 - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + orientation: 'vertical' + size_hint_y: None + height: dp(58) + MDRaisedButton: + size_hint: .5, 0 + height: dp(40) + text: root.text_variable_1 + elevation_normal: 2 + opposite_colors: True + pos_hint: {'center_x': .5} Tab: text: 'Processes' ScrollView: @@ -36,52 +36,52 @@ OneLineListItem: text: "person-to-person" BoxLayout: - AnchorLayout: - MDRaisedButton: - size_hint: .7, .55 - height: dp(40) - MDLabel: - font_style: 'H6' - text: root.text_variable_2 - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + orientation: 'vertical' + size_hint_y: None + height: dp(58) + MDRaisedButton: + size_hint: .5, 0 + height: dp(40) + text: root.text_variable_2 + elevation_normal: 2 + opposite_colors: True + pos_hint: {'center_x': .5} OneLineListItem: text: "Brodcast" BoxLayout: - AnchorLayout: - MDRaisedButton: - size_hint: .7, .55 - height: dp(40) - MDLabel: - font_style: 'H6' - text: root.text_variable_3 - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + orientation: 'vertical' + size_hint_y: None + height: dp(58) + MDRaisedButton: + size_hint: .5, 0 + height: dp(40) + text: root.text_variable_3 + elevation_normal: 2 + opposite_colors: True + pos_hint: {'center_x': .5} OneLineListItem: text: "publickeys" BoxLayout: - AnchorLayout: - MDRaisedButton: - size_hint: .7, .55 - height: dp(40) - MDLabel: - font_style: 'H6' - text: root.text_variable_4 - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + orientation: 'vertical' + size_hint_y: None + height: dp(58) + MDRaisedButton: + size_hint: .5, 0 + height: dp(40) + text: root.text_variable_4 + elevation_normal: 2 + opposite_colors: True + pos_hint: {'center_x': .5} OneLineListItem: text: "objects" BoxLayout: - AnchorLayout: - MDRaisedButton: - size_hint: .7, .55 - height: dp(40) - MDLabel: - font_style: 'H6' - text: root.text_variable_5 - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' \ No newline at end of file + orientation: 'vertical' + size_hint_y: None + height: dp(58) + MDRaisedButton: + size_hint: .5, 0 + height: dp(40) + text: root.text_variable_5 + elevation_normal: 2 + opposite_colors: True + pos_hint: {'center_x': .5}