fix: the notch and indicator are now in same children
This commit is contained in:
1 file changed
+8
-3
+8
-3
@@ -86,7 +86,6 @@ class ContentBox(CenterBox):
|
|||||||
orientation="vertical",
|
orientation="vertical",
|
||||||
v_expand=True,
|
v_expand=True,
|
||||||
start_children=[
|
start_children=[
|
||||||
IndicatorBox(),
|
|
||||||
DateTime(
|
DateTime(
|
||||||
formatters=["%A,%B %-d"],
|
formatters=["%A,%B %-d"],
|
||||||
interval=10000,
|
interval=10000,
|
||||||
@@ -153,7 +152,13 @@ class LockScreen(Window):
|
|||||||
anchor="center",
|
anchor="center",
|
||||||
child=Box(
|
child=Box(
|
||||||
orientation="vertical",
|
orientation="vertical",
|
||||||
children=[self.lock_notch, self.content],
|
children=[
|
||||||
|
CenterBox(
|
||||||
|
center_children=self.lock_notch,
|
||||||
|
end_children=IndicatorBox(),
|
||||||
|
),
|
||||||
|
self.content,
|
||||||
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -170,7 +175,7 @@ class LockScreen(Window):
|
|||||||
name="lock-notch",
|
name="lock-notch",
|
||||||
orientation="h",
|
orientation="h",
|
||||||
h_align="center",
|
h_align="center",
|
||||||
v_align="center",
|
v_align="start",
|
||||||
start_children=Box(
|
start_children=Box(
|
||||||
name="lock-notch-corner-left",
|
name="lock-notch-corner-left",
|
||||||
orientation="v",
|
orientation="v",
|
||||||
|
|||||||
Reference in new issue
Block a user