Commit 9025021
authored
gwl: Add overflow support through slide/scroll list (#13352)
* gwl: Add initial overflow support through sliding
* gwl: Scroll to focused app when a new one is added or when changing workspaces
To find the new app position in the container instead of using actor.x we are summing the size of each preceding appGroup until the current app to focus because actor.x would report 0 some times.
* gwl: Avoid trying to remove slide timer multiple times
This was triggering GLib Critical error in the logs.
* gwl: Properly integrate with the scroll-behavior settings
* gwl: Avoid trying to remove the scroll to focused app deboucer timer after being removed already
* gwl: Listen to the scrollBox allocation signal to update the scroll buttons visibility
This avoids issues with improper representation of the current allocation after the buttons are hidden.
* gwl: Make sure to scroll to the focused app group on workspace switched
* gwl: Refactor the scroll logic to its own class
* gwl: Improve scroll to item implementation
* gwl: Extract app group scroll box to its own module
* gwl: Disable actions if panel edit mode is enabled and update classes on orientation changed
* gwl: Debounce calls to updateScrollVisibility to avoid it being called excessively
* gwl: Define style in proper cinnamon theme file instead of in-code
* gwl: Update scroll button theme
* gwl: Implementation using the native St.ScrollView
* gwl: Update scroll police depending on the orientation and make sure to debounce setting scrollActive state as inactive to avoid triggering the menu during the scroll animation
* gwl: Fix handleDragOver positioning for the scrollview based implementation
* Update scrollbox vfade/hfade theme defaults
* gwl: Adjust min_size setting for lateral panels
* gwl: Only set appGroup focus if app actually has focus
This avoids an issue where during workspace switching some times a minimized window would visually have the focused window style when it shouldn't.
* gwl: Improve the scroll to last focused app
This is useful when switching to a new workspace or the applet is reloaded so it guarantees user will at least be aware of opened windows that could otherwise be hidden if the scroll state is mantained.
* gwl: Remove important attr from the scrollbox style
* gwl: Improve scroll to last focused
If there's no opened windows just keep the current scroll state.
* gwl: Improve scroll handling to work better with previous scroll options
I've also decided to change the scroll key name, this with the goal of guaranteeing that the scroll app window list will be set as default for all users, those that want other options, or none, can switch back.
* gwl: Remove unused import
* gwl: Bring back slider buttons
* gwl: Fix scroll handling and workspace scrollbox destroy process
* gwl: Improve edge slide area and style handling
gwl: Update name from box to container for clarity
* gwl: Add option to enable/disable slide to focused app button
* gwl: Use xsi-pan icons instead of the arrow icons
Looks better and is consistent with what is used in the alt-tab window switcher for example when it reaches the limits of the screen.
* gwl: Handle possible undefined or null this.state cases
* gwl: Add click to slide option
* gwl: Update scroll box buttons classes
* gwl: Break to handle lastFocused app instead of handling inside the loop
* gwl: Remove edge scroll zone in favor of the side buttons
Considering we are already using the side scroll buttons which gives a clear over area for sliding the app list, having a edge scroll zone there makes it redudant and potentially confusing for the user.
* gwl: Implement proper styling for the slide buttons1 parent 1c50d51 commit 9025021
6 files changed
Lines changed: 568 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
110 | 162 | | |
111 | 163 | | |
112 | 164 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | 378 | | |
383 | 379 | | |
384 | 380 | | |
| |||
393 | 389 | | |
394 | 390 | | |
395 | 391 | | |
| 392 | + | |
396 | 393 | | |
397 | 394 | | |
| 395 | + | |
398 | 396 | | |
399 | 397 | | |
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
404 | | - | |
405 | 402 | | |
| 403 | + | |
406 | 404 | | |
407 | 405 | | |
408 | 406 | | |
| |||
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
558 | | - | |
| 556 | + | |
559 | 557 | | |
560 | 558 | | |
561 | 559 | | |
| |||
642 | 640 | | |
643 | 641 | | |
644 | 642 | | |
645 | | - | |
| 643 | + | |
646 | 644 | | |
647 | 645 | | |
648 | 646 | | |
| |||
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
794 | 796 | | |
795 | 797 | | |
796 | 798 | | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
797 | 811 | | |
798 | 812 | | |
799 | 813 | | |
800 | 814 | | |
801 | 815 | | |
802 | 816 | | |
803 | 817 | | |
804 | | - | |
| 818 | + | |
805 | 819 | | |
806 | 820 | | |
807 | 821 | | |
| |||
815 | 829 | | |
816 | 830 | | |
817 | 831 | | |
818 | | - | |
| 832 | + | |
819 | 833 | | |
820 | 834 | | |
821 | 835 | | |
| |||
835 | 849 | | |
836 | 850 | | |
837 | 851 | | |
838 | | - | |
| 852 | + | |
839 | 853 | | |
840 | 854 | | |
841 | 855 | | |
842 | 856 | | |
843 | 857 | | |
844 | | - | |
| 858 | + | |
845 | 859 | | |
846 | 860 | | |
847 | 861 | | |
848 | 862 | | |
849 | 863 | | |
850 | 864 | | |
851 | 865 | | |
852 | | - | |
| 866 | + | |
853 | 867 | | |
854 | 868 | | |
855 | 869 | | |
| |||
0 commit comments