declaration parser

This commit is contained in:
Will McGugan
2021-12-18 17:35:59 +00:00
parent fe40123ea7
commit e87f561428
10 changed files with 169 additions and 42 deletions

View File

@@ -1,4 +1,13 @@
App > DockView {
App > View {
docks: main=top;
}
#sidebar {
dock-group: main;
}
/*
App > View {
layout: dock;
docks: side=left/1 header=top footer=bottom;
layers: base panels;
@@ -37,3 +46,4 @@ App > DockView {
dock-group: header;
text: on #20639b;
}
*/

View File

@@ -6,7 +6,7 @@ class BasicApp(App):
"""A basic app demonstrating CSS"""
def on_load(self):
self.bind("t", "toggle_class('#sidebar', '-active')")
self.bind("tab", "toggle_class('#sidebar', '-active')")
def on_mount(self):
"""Build layout here."""