-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: restructure Rust GTK app layout, event handling, and styling
- Reorganize widget creation and layout: - Simplify `summary_box` creation and remove redundant code. - Move `reply_entry` and `reply_revealer` to a more appropriate hierarchy position. - Conditionally append `app_icon` to `app_name_box` based on configuration. - Improve event handling logic: - Reimplement mouse hover (`EventControllerMotion`) and click (`GestureClick`) events. - Enhance gesture handling organization using `connect_enter`, `connect_leave`, and `connect_released`. - Refactor notification management: - Use `glib::spawn_future_local` in `handle_notification` for asynchronous management. - Move gesture control logic to window setup for better modularity. - Optimize setup and configuration: - Introduce `logger_init` and `setup_styling` for centralized logging and CSS loading. - Streamline configuration for theme and styling. - Simplify `main` function: - Refactor for improved application setup, event connections, and notification management. - Enhance error handling and remove redundant calls. - Update CSS and styling: - Restructure `load_css` under `setup_styling` for better dynamic theme handling. - Add fixes and improvements: - Include comments and `FIXME`/`TODO` notes for future enhancements. - Handle edge cases related to window overflow.
- Loading branch information
Showing
8 changed files
with
568 additions
and
503 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.