we have a very basic search system working
This commit is contained in:
1
widgets/__init__.py
Normal file
1
widgets/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .navbar import Navbar
|
||||
21
widgets/navbar.py
Normal file
21
widgets/navbar.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from textual.widgets import Static, Button
|
||||
from textual.containers import HorizontalGroup
|
||||
|
||||
|
||||
class Navbar(HorizontalGroup):
|
||||
DEFAULT_CSS = """
|
||||
Navbar {
|
||||
background: $surface-darken-1;
|
||||
border-bottom: hkey $surface;
|
||||
height: 3;
|
||||
padding: 1;
|
||||
padding-bottom: 0;
|
||||
|
||||
#hamburger-menu {
|
||||
max-width: 1;
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
def compose(self):
|
||||
yield Button("≡", compact=True, id="hamburger-menu")
|
||||
Reference in New Issue
Block a user