feat: added hiding and revealing the stop button
This commit is contained in:
@@ -2,6 +2,19 @@
|
||||
|
||||
<TimerScreen>:
|
||||
FloatLayout:
|
||||
# Label для названия таймера
|
||||
Label:
|
||||
id: title_label
|
||||
size_hint: None, None
|
||||
pos_hint: {'center_x': 0.3, 'center_y': 0.7}
|
||||
|
||||
# Label для типа таймера
|
||||
Label:
|
||||
id: type_timer_label
|
||||
text: 'Помидор'
|
||||
size_hint: None, None
|
||||
pos_hint: {'center_x': 0.7, 'center_y': 0.7}
|
||||
|
||||
# Кнопка "Старт"
|
||||
Button:
|
||||
text: 'Старт'
|
||||
@@ -22,7 +35,10 @@
|
||||
|
||||
# Кнопка "Стоп"
|
||||
Button:
|
||||
id: stop_button
|
||||
text: 'Стоп'
|
||||
opacity: 0
|
||||
disabled: True
|
||||
size_hint: None, None
|
||||
height: 40
|
||||
width: 100
|
||||
@@ -32,6 +48,5 @@
|
||||
# Label для отображения времени
|
||||
Label:
|
||||
id: time_label
|
||||
# text: root.get_init_time(self)
|
||||
size_hint: None, None
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.6}
|
||||
Reference in New Issue
Block a user