stole the settings menu from my Berry IDE lol

This commit is contained in:
2026-01-18 07:04:54 +11:00
parent 8e69b0d602
commit 23a99fddf5
3 changed files with 166 additions and 2 deletions

View File

@@ -9,9 +9,12 @@ from ui.widgets.timeline import Timeline, TimelineRow
from ui.widgets.project_settings import ProjectSettings
from ui.widgets.channel import Channel
from ui.widgets.context_menu import ContextMenu, NoSelectStatic
from ui.widgets.chunk_types.audio import AudioChunk, Chunk
from ui.screens.settings import SettingsScreen
from project import ProjectChannel, Project, ChunkType
from ui.widgets.chunk_types.audio import AudioChunk, Chunk
from settings_store import ConfigHandler
class AppUI(App):
@@ -23,6 +26,8 @@ class AppUI(App):
self.last_zoom_level = self.zoom_level
self.project = project
self.config_handler = ConfigHandler(self)
self.open_project_path = None
self.first_tab_click = True # stupid events firing when the app is first composed :/
@@ -135,6 +140,9 @@ class AppUI(App):
)
), callback=callback)
case "Settings":
self.push_screen(SettingsScreen())
case _:
self.notify("Sorry, that isn't implemented yet... ;-;", severity="warning")
@@ -175,4 +183,8 @@ class AppUI(App):
yield Sidebar()
yield Timeline()
yield ProjectSettings()
yield Footer()
yield Footer()
def on_mount(self):
# load config into the UI
self.config_handler.apply_settings()