Make text more readable

This commit is contained in:
Admar Schoonen 2023-04-10 01:01:25 +02:00
parent 5bfe72e039
commit 6556adb5e3
1 changed files with 12 additions and 2 deletions

View File

@ -108,7 +108,7 @@ Builder.load_string('''
id: settings_menu
size_hint: None, None
pos_hint: {"center_x":0.5, "center_y":0.5}
size: 0.7*min(root.size), 0.7*min(root.size)
size: 0.8*min(root.size), 0.7*min(root.size)
canvas:
Color:
rgb: 0.1, 0.1, 0.1
@ -123,6 +123,7 @@ Builder.load_string('''
text: "Volume"
halign: "left"
valign: "middle"
font_size: root.height*0.05
text_size: self.size
Slider:
id: volume_slider
@ -136,15 +137,18 @@ Builder.load_string('''
text:"Wake up sound"
halign: "left"
valign: "middle"
font_size: root.height*0.05
text_size: self.size
Button:
id: settings_menu_wake_up_sound_select_button
on_press: root.settings_menu_wake_up_sound_select_button_cb()
font_size: root.height*0.05
text: str(app.alarm_settings.sound_selected)
Label:
text:"Wake up brightness"
halign: "left"
valign: "middle"
font_size: root.height*0.05
text_size: self.size
Slider:
id: wake_up_bightness_slider
@ -158,6 +162,7 @@ Builder.load_string('''
text:"Reading light brightness"
halign: "left"
valign: "middle"
font_size: root.height*0.05
text_size: self.size
Slider:
id: reading_light_brightness_slider
@ -171,6 +176,7 @@ Builder.load_string('''
text:"Display brightness"
halign: "left"
valign: "middle"
font_size: root.height*0.05
text_size: self.size
Slider:
id: display_brightness_slider
@ -184,7 +190,7 @@ Builder.load_string('''
id: settings_menu_wake_up_sound
size_hint: None, None
pos_hint: {"center_x":0.5, "center_y":0.5}
size: 0.7*min(root.size), 0.7*min(root.size)
size: 0.8*min(root.size), 0.8*min(root.size)
canvas:
Color:
rgb: 0.1, 0.1, 0.1
@ -196,6 +202,7 @@ Builder.load_string('''
pos_hint: {"center_x":0.5, "center_y":0.5}
Label:
text: "Select wake up sound"
font_size: root.height*0.05
GridLayout:
cols: 2
CheckBox:
@ -207,6 +214,7 @@ Builder.load_string('''
halign: "left"
valign: "middle"
text_size: self.size
font_size: root.height*0.05
active: True
CheckBox:
group: "settings_menu_wake_up_sound"
@ -217,10 +225,12 @@ Builder.load_string('''
halign: "left"
valign: "middle"
text_size: self.size
font_size: root.height*0.05
Button:
id: settings_menu_wake_up_sound_Ok_button
on_press: root.settings_menu_wake_up_sound_Ok_button_cb()
text: "Ok"
font_size: root.height*0.05
''')
Position = collections.namedtuple('Position', 'x y')