Commit Graph
689 Commits
Author SHA1 Message Date
sankalp 789eb62e33 fix: remove redundant 'shared/' prefix from stylesheet path 2026-07-04 05:29:10 +05:45
sankalp 83e49096d0 chore(config/matugen): rename macos.css to modus.css 2026-07-04 05:01:12 +05:45
sankalp 09a01a7f41 fix(src/window/panel): handle missing label gracefully when updating dropdown 2026-07-04 05:00:54 +05:45
sankalp 901731711f refactor(src/window/controlcenter): refactor UI layout and battery icon handling in BluetoothDeviceSlot 2026-07-04 05:00:36 +05:45
sankalp c1e24f7cb4 refactor(styles): simplify color variables and update CSS constants
Add new color palette file and refactor constant definitions to use variable tokens.
2026-07-04 05:00:18 +05:45
sankalp 9c90de0dc8 feat(src): add recursive CSS file monitoring and streamline stylesheet setting
Monitor CSS files and their subdirectories for changes by walking the styles directory and connecting change events to each monitor. Simplify the `set_css` function by removing the unnecessary empty line and directly passing the path to `set_stylesheet_from_file`. This enhances file change detection and reduces redundant code.
2026-07-04 04:59:59 +05:45
sankalp 6c8eca2afe fix(src/window/settings): use set_title() instead of assigning to .title attribute
The title attribute assignment does not affect the window title; using set_title ensures the title is displayed correctly.
2026-07-04 01:30:09 +05:45
sankalp c796dc7bc5 refactor(config/hypr): streamline layer rules for blurs and animations 2026-07-04 01:28:08 +05:45
sankalp f68c076d98 chore(src/shared): update dialog titles and import ordering 2026-07-04 01:25:24 +05:45
sankalp 21f21c6d83 refactor(src/window/settings): reorder imports and set window title 2026-07-04 01:25:04 +05:45
sankalp 6d5d8cce88 feat(src/window/panel): rename panel title and update imports
Change title of create_control_window to "modus-controlcenter" and adjust Panel title to "mdous-bar". Update import ordering and remove redundant imports for clarity.
2026-07-04 01:24:41 +05:45
sankalp 15bf16d9d8 refactor(window): rename titles to prefixed modus- names 2026-07-04 01:24:23 +05:45
sankalp f8ef5c8da4 style: clean up stray comment markers in dock.css 2026-07-04 01:24:05 +05:45
sankalp ae17c172ce refactor(window/controlcenter): replace icon labels with Overlay widgets and reorganize imports 2026-07-04 00:34:07 +05:45
sankalp d1ca18da70 style(src/styles): adjust CSS for control center and widget icons 2026-07-04 00:33:50 +05:45
sankalp ae29326401 refactor(src/shared/widgets/flat_scale): simplify flat_scale drawing and add draw_value flag 2026-07-04 00:33:31 +05:45
sankalp 1594f9ff57 style(src/assets/icons/volume): switch color definitions to currentColor for theme compatibility 2026-07-04 00:33:14 +05:45
sankalp a89b142493 style(icons/brightness): replace hard‑coded fill with currentColor 2026-07-04 00:32:56 +05:45
sankalp 4cdb048a6c refactor(src/window/settings): replace SettingsSwitch with SmoothSwitch and simplify toggle handling 2026-07-03 23:16:02 +05:45
sankalp f381766929 feat(src/window/controlcenter): improve playback state handling and UI for multiple players
Add _on_map handler and connect "map" signal to update playing state.
Refactor button handling to use change-value signal and dynamic child management.
Update playback status notification to avoid duplicates and use current_status variable.
2026-07-03 22:59:45 +05:45
sankalp ce0746eeb2 refactor: simplify DBus menu service discovery and introspection handling 2026-07-03 22:59:26 +05:45
sankalp 8d40ac1a7f refactor(src/services): simplify menu cache implementation and remove unused imports
- Remove time import and unused typing items
- Streamline cache eviction and hit logic
- Replace sentinel handling with simpler checks
- Fix activation environment command arguments
- Improve logging messages and cache hit reporting
2026-07-03 21:31:41 +05:45
sankalp 6171577ecc refactor(controlcenter): remove animation effects and adjust visibility logic 2026-07-03 20:53:18 +05:45
sankalp 7dad927f21 feat(src/shared/window): add animate parameter to control scroll animation 2026-07-03 20:52:56 +05:45
sankalp 374d49148d refactor(src/window): use hyprctl dispatch to focus windows
Improve resilience of window focus by delegating to hyprctl.
2026-06-25 13:26:07 +05:45
sankalp cd1ac21273 refactor(src/services): improve property caching and simplify DBus property handling
Add internal property cache to reduce DBus round‑trips and streamline signal handling.
It also adjusts proxy flags and error handling for better robustness.
2026-06-25 13:15:00 +05:45
sankalp 65d1e43dc9 feat(src/services): bump version to 0.2.0 and update pinned dependencies
Update pinned dependencies and bump version to reflect the new stable release.
2026-06-25 12:30:22 +05:45
sankalp 2d6fd6c84b refactor(controlcenter): simplify refresh handling and add cancellation hooks
The changes replace timeout‑based refreshes with animation‑aware callbacks, improving responsiveness and preventing stale pending operations.
2026-06-24 12:53:30 +05:45
sankalp 3a05e123e7 refactor(src/shared): adjust default bezier curve for smoother scrolling
Use more balanced control points to improve animation responsiveness and visual flow
2026-06-24 12:53:11 +05:45
sankalp 287ae5f44c refactor(src/utils): refine desktop file name lookup and fallback handling
Use resolved name when present, else fall back to title; return None when no desktop file found
2026-06-24 12:52:54 +05:45
sankalp 0594759fed feat(services): streamline DBus menu caching and notification handling
- Consolidate logger disabling, cache empty menus with TTL, and move name resolution to a dedicated resolver to reduce duplication and improve performance
2026-06-24 12:52:36 +05:45
sankalp 8ec0ae267d chore(root): add ruff per-file ignore and fabric source in uv
Prevent lint errors in src/main.py and lock Fabric to a specific commit.
2026-06-24 12:52:17 +05:45
sankalp bbb250c6aa refactor(src/styles): reformat constant definitions
Adjust @define statements to proper syntax and remove outdated comment markers, improving readability and consistency.
2026-06-24 08:38:34 +05:45
sankalp 14580b4d68 refactor(service): enhance menu cache handling and emission sequence checks
Use lock to protect cache access, capture sequence for race‑safe idle emission, and check seq against extraction_seq to prevent stale menu updates.
2026-06-24 08:38:17 +05:45
sankalp bf47875b84 refactor(src/utils): remove GTK menu fallback and add invalidate on ActionMenuClient
Drop unused GTK menu parsing to simplify maintenance and add invalidate hook to clear cached items when menu state changes.
2026-06-23 14:31:12 +05:45
sankalp ab7ac85b80 refactor(src/services): use mutable list[int] for shared node counter in bounded DFS
Avoid resetting the counter per recursion level by using a mutable list; adds clarifying comments about the shared state.
2026-06-23 14:30:49 +05:45
sankalp bc07920f1a refactor(src/window/panel/components): adjust top-level menu filtering to respect visibility
Ensure only visible top-level items are considered
Prevent hidden items from appearing in the menu hierarchy
2026-06-23 14:29:06 +05:45
sankalp 2afbe05229 feat(src/utils): add ActionMenuClient and depth limits for menu parsing
Add flat GTK Action handling and guard DBus menu depth to prevent recursion and overflow.
2026-06-23 14:28:47 +05:45
sankalp b4d011d158 feat(src/services): deduplicate in-flight menu extractions
Prevents duplicate background extraction threads for the same WM class PID, avoiding race conditions and unnecessary work.
2026-06-23 14:28:29 +05:45
sankalp d4d087604b refactor(config): remove GTK_MODULES env var causing Gdk-CRITICAL assertion failures
Remove global env setting that interferes with Modus's GTK windows.
2026-06-23 14:11:43 +05:45
sankalp 6707e1e830 feat(src/window): migrate device monitoring to map/unmap events
Ensure monitoring starts only when the widget is shown and stops on hide, preventing timer leaks and unnecessary refreshes
2026-06-23 14:11:25 +05:45
sankalp 01fed4c52f feat(src/utils): centralize SESSION bus and shrink DBusMenuItem with __slots__
Prevent duplicate bus connections and cut per-instance memory usage.
2026-06-23 14:11:07 +05:45
sankalp d89b392a0e refactor(src): lazy‑load Launcher and refine GlobalMenuService cache invalidation
Prevents premature instance creation and stale empty‑menu cache entries
2026-06-23 14:10:49 +05:45
sankalp 3d8b1b895e feat(root): add libdbusmenu-gtk3 and libdbusmenu-qt5 to PACKAGES
Add DBus menu libraries required for proper GTK and Qt integration in the application
2026-06-23 14:10:31 +05:45
sankalp 99d35afa36 feat(src/services): capture target pid early and propagate it through extraction pipeline
Add captured PID to logs, DBus client discovery, and fallback path selection to improve consistency and avoid race conditions; use PID inheritance checks for accurate client matching.
2026-06-22 18:57:41 +05:45
sankalp 5663499f32 feat(src/utils): implement universal DBus + GTK Global Menu Client
Add support for multiple DBus backends and GTK GMenuModel fallback, improve thread safety and caching.
2026-06-22 18:38:24 +05:45
sankalp 09d84598cb feat(src/services): add LRU menu cache and thread‑safe extraction sequencing
Prevent stale UI updates and reduce DBus load by caching menus with automatic eviction when limit exceeded
2026-06-22 18:38:07 +05:45
sankalp ef0b9f0b68 feat(deps): lock fabric to specific commit and add required dependencies
Align with latest stable API and ensure reproducible builds
2026-06-22 17:46:34 +05:45
sankalp e8f3e4dd8b feat(src/utils): expose Gio, GLib, logger from fabric.utils
Use unified imports from fabric.utils instead of gi.repository to simplify imports and align with project convention
2026-06-22 17:46:16 +05:45
sankalp 96bb00c199 refactor(src/services): refactor DBus menu discovery and pre-warm PID cache
Pre-warm DBus PID cache using a ThreadPoolExecutor to instantly resolve service PIDs, centralize registry locking, and improve robustness and performance.
2026-06-22 17:45:56 +05:45