Closed M-Wicenec closed 1 month ago
This pull request implements persistent UI state for the left and right windows in the Eagle application. It stores the visibility and mode of these windows as hidden settings, allowing the UI to maintain its state across page reloads. The changes also refactor the code to use these settings directly, removing some redundant code from the SideWindow class.
Change | Details | Files |
---|---|---|
Implement persistent UI state for left and right windows |
|
src/Eagle.ts src/SideWindow.ts templates/base.html src/KeyboardShortcut.ts src/Setting.ts src/Utils.ts |
Refactor window visibility toggling logic |
|
src/SideWindow.ts src/Eagle.ts templates/base.html |
Improve transition effect for window toggling |
|
static/base.css src/SideWindow.ts |
storing right window mode, right and left window visibility as a hidden setting. this means these ui items will continue as you left off when you reload the page.
each of these ui elements are now also using and referencing the setting directly, this means i was able to remove some code from the SideWindow class.
Summary by Sourcery
Persist window mode and visibility settings for the right and left windows, allowing them to maintain their state across page reloads. Refactor the SideWindow class to utilize settings for managing window visibility, removing redundant code.
Enhancements: