refactor: enhance TimerPage layout and functionality; update theme and tokens for improved design consistency

- Refactored TimerPage component to improve layout and user experience.
- Updated theme configuration to utilize design tokens for better maintainability.
- Introduced new tokens for colors and typography to align with design principles.
- Simplified state management and improved timer functionality.
- Enhanced accessibility and responsiveness of UI elements.
This commit is contained in:
timka123 committed 2026-10-18 23:57:36 +03:00
1 parent 17a0a3c4c9
commit 77b26757bf
84 files changed
+4501 -2682

No files matched your search

+6 -1
View File
@@ -5,6 +5,7 @@ talk to a *running* instance over D-Bus instead of starting a second one, which
is what makes them usable as global shortcuts:
kadence-desktop --toggle # bind this to a key in System Settings
kadence-desktop --mini # show/hide the floating mini timer
kadence-desktop --status # prints "Focus 18:42 · Write the docs · 3/8 today"
"""
@@ -27,6 +28,7 @@ REMOTE_VERBS = {
"interrupt": "Interrupt",
"status": "Status",
"report": "SendReport",
"mini": "ToggleMini",
"show": "Raise",
}
@@ -53,6 +55,9 @@ def _remote(verb: str) -> int:
def main() -> int:
parser = argparse.ArgumentParser(prog="kadence-desktop", description=__doc__)
parser.add_argument("--minimized", action="store_true", help="start in the tray only")
parser.add_argument(
"--view-only", action="store_true", help="start in view-only mode with timer turned off"
)
parser.add_argument("--verbose", action="store_true")
for verb in REMOTE_VERBS:
parser.add_argument(
@@ -77,7 +82,7 @@ def main() -> int:
print("Kadence is already running — raised its window.")
return 0
return KadenceApp(sys.argv, minimized=args.minimized).run()
return KadenceApp(sys.argv, minimized=args.minimized, view_only=args.view_only).run()
if __name__ == "__main__":