Files
kawai-focus/kv/timer_screen.kv

72 lines
1.9 KiB
Plaintext

#:kivy 2.3.1
<TimerScreen>:
FloatLayout:
Label:
id: title_label
size_hint: None, None
pos_hint: {"center_x": 0.3, "center_y": 0.7}
Label:
id: type_timer_label
text: "Помидор"
size_hint: None, None
pos_hint: {"center_x": 0.7, "center_y": 0.7}
Button:
text: "Старт"
size_hint: None, None
height: 40
width: 100
pos_hint: {"center_x": 0.3, "center_y": 0.5}
on_release: root.start_timer(self)
Button:
text: "Пауза"
size_hint: None, None
height: 40
width: 100
pos_hint: {"center_x": 0.5, "center_y": 0.5}
on_release: root.pause_timer(self)
Button:
id: stop_button
text: "Стоп"
opacity: 0
disabled: True
size_hint: None, None
height: 40
width: 100
pos_hint: {"center_x": 0.7, "center_y": 0.5}
on_release: root.stop_timer(self)
Label:
id: time_label
size_hint: None, None
pos_hint: {"center_x": 0.5, "center_y": 0.6}
Label:
id: title_warning
text: ""
color: (1, 0.3, 0.3, 1)
font_size: 14
size_hint_y: None
height: 20
pos_hint: {"center_x": 0.5, "center_y": 0.4}
Button:
text: "Назад"
size_hint: None, None
height: 40
width: 100
pos_hint: {"center_x": 0.3, "center_y": 0.1}
on_press: root.back(self)
Button:
id: del_timer
text: "Удалить"
size_hint: None, None
height: 40
width: 120
pos_hint: {"center_x": 0.7, "center_y": 0.1}
on_press: root.delete_timer(self)