Skip to content

Commit

Permalink
add css path on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 20, 2024
1 parent 7db320d commit bc68c8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dooit/ui/api/dooit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from dooit.ui.widgets.trees.model_tree import ModelTree
from dooit.ui.widgets.bars import StatusBarWidget
from dooit.ui.api.components import TodoLayout, WorkspaceLayout
from dooit.utils.css_manager import CssManager


if TYPE_CHECKING:
Expand All @@ -18,6 +19,9 @@ def __init__(self, app: "Dooit") -> None:
self.plugin_manager = PluginManager()
self.plugin_manager.scan()
self.keybinds = defaultdict(lambda: defaultdict(lambda: lambda: None))
self.css_manager = CssManager()

self.css_manager.refresh_css()

def no_op(self):
pass
Expand Down
5 changes: 4 additions & 1 deletion dooit/ui/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
from dooit.api.manager import manager
from dooit.ui.events.events import ModeChanged, DooitEvent, ModeType, Startup
from dooit.ui.widgets import BarSwitcher
from dooit.ui.widgets.bars import StatusBar, SearchBar
from dooit.ui.widgets.bars import StatusBar
from dooit.ui.widgets.trees.workspaces_tree import WorkspacesTree
from dooit.ui.screens import MainScreen, HelpScreen
from textual.binding import Binding
from dooit.utils.css_manager import CssManager
from .api import DooitAPI

PRINTABLE = (
Expand All @@ -19,6 +20,8 @@


class Dooit(App):
CSS_PATH = CssManager.css_file

SCREENS = {
"main": MainScreen,
"help": HelpScreen,
Expand Down

0 comments on commit bc68c8d

Please sign in to comment.