Add settings history and quick AI chain

This commit is contained in:
Thales Maciel 2026-02-09 13:45:07 -03:00
parent 328dcec458
commit a0c3b02ab1
13 changed files with 1627 additions and 23 deletions

View file

@ -28,8 +28,12 @@ class Tray:
def _icon_path(self, state: str) -> str:
if state == "recording":
return str(self.base / "recording.png")
if state == "editing":
return str(self.base / "recording.png")
if state == "transcribing":
return str(self.base / "transcribing.png")
if state == "edit_processing":
return str(self.base / "processing.png")
if state == "processing":
return str(self.base / "processing.png")
return str(self.base / "idle.png")
@ -37,8 +41,12 @@ class Tray:
def _title(self, state: str) -> str:
if state == "recording":
return "Recording"
if state == "editing":
return "Editing"
if state == "transcribing":
return "Transcribing"
if state == "edit_processing":
return "Edit Processing"
if state == "processing":
return "AI Processing"
return "Idle"
@ -50,8 +58,13 @@ class Tray:
return True
def run_tray(state_getter, on_quit):
def run_tray(state_getter, on_quit, on_settings):
tray = Tray(state_getter, on_quit)
tray.update()
GLib.timeout_add(250, tray.update)
if on_settings:
settings_item = Gtk.MenuItem(label="Settings")
settings_item.connect("activate", lambda *_: on_settings())
tray.menu.prepend(settings_item)
tray.menu.show_all()
Gtk.main()