diff --git a/bunkercalc.kv b/bunkercalc.kv index 72d3cf1..e4b48e4 100644 --- a/bunkercalc.kv +++ b/bunkercalc.kv @@ -15,12 +15,13 @@ ScreenManager: # anchor_title: "center" md_bg_color: "#e7e4c0" specific_text_color: "#4a4939" - left_action_items: [["menu", lambda x: app.dropdown(x)]] - right_action_items: [["menu", lambda x:app.screen2()]] + left_action_items: [["menu", lambda x:app.screen2()]] + right_action_items: [["menu", lambda x: app.dropdown(x)]] + # right_action_items: [["menu", lambda x:app.screen2()]] MDLabel: id: right_action - halign: "right" + halign: "left" theme_text_color: "Custom" text_color: "#4a4939" @@ -114,15 +115,15 @@ ScreenManager: # md_bg_color: "lightblue" #app.theme_cls.primary_color MDTextField: id: density_field - helper_text: "Density (default: 0.9000)" - hint_text: "Density (def: 0.9000)" + helper_text: "Density (example: 0.9588)" + hint_text: "Density (example: 0.8566)" helper_text_mode: "on_focus" # icon_left: "fuel" # Maximal lenth of input sounding max_text_length: 6 icon_left_color: app.theme_cls.primary_color pos_hint: {'center_x': 0.5, 'center_y': 0.9} - size_hint: .5, .1 + size_hint: .5, .15 #size: 300,1 # width: 200 # on_text_validate : app.callback_Calc(*args) @@ -144,7 +145,7 @@ ScreenManager: max_text_length: 4 icon_left_color: app.theme_cls.primary_color pos_hint: {'center_x': 0.5, 'center_y': 0.55} - size_hint: .5, .1 + size_hint: .5, .15 # size: .1, .2 # width: 200 on_text_validate : app.callback_Calc(*args) @@ -152,7 +153,7 @@ ScreenManager: MDFloatingActionButton: id:calc text: 'Calculate' - pos_hint: {'center_x': 0.5, 'center_y': 0.45} + pos_hint: {'center_x': 0.5, 'center_y': 0.4} icon: "calculator" theme_icon_color: "Secondary" md_bg_color: ("#465d5a") @@ -185,21 +186,22 @@ ScreenManager: #on_press: app.stop() MDBoxLayout: pos_hint: { "x":.7 ,"center_y": .5} - size_hint: .3, .9 + size_hint: .3, .85 # size: 0.3, 1 orientation: "horizontal" # md_bg_color: "green" #app.theme_cls.primary_color + MDLabel: id: slider_lbl text: "Temp:\n"+str(round(float(temp_slider.value),0)) - pos_hint: {"center_x":.9,"center_y": .4} + pos_hint: {"center_x":.05,"center_y": .4} halign: "right" # size_hint: .2, .2 MDSlider: id: temp_slider - hint: True + hint: False orientation: "vertical" hint_bg_color: "white" min: 0 @@ -207,5 +209,5 @@ ScreenManager: on_value: app.my_value(*args) # <<<<<<<<<<< value: 15 thumb_color_inactive: "red" - pos_hint: { "center_x": .1, "center_y": .6} - size_hint_y: .95 \ No newline at end of file + pos_hint: { "center_x": .2, "center_y": .55} + size_hint_y: .8 \ No newline at end of file