Skip to content

Commit

Permalink
Temp slider changed pos
Browse files Browse the repository at this point in the history
  • Loading branch information
c4pointer committed Jan 5, 2023
1 parent 2ac5ff7 commit 248d521
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions bunkercalc.kv
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)
Expand All @@ -144,15 +145,15 @@ 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)

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")
Expand Down Expand Up @@ -185,27 +186,28 @@ 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
max: 100
on_value: app.my_value(*args) # <<<<<<<<<<<
value: 15
thumb_color_inactive: "red"
pos_hint: { "center_x": .1, "center_y": .6}
size_hint_y: .95
pos_hint: { "center_x": .2, "center_y": .55}
size_hint_y: .8

0 comments on commit 248d521

Please sign in to comment.