shift-shell/containments/homescreens/folio
Micah Stanley 5fade2d5eb Folio: Search Widget View State Bugfix
Fixes a bug where if one swipes up from the app drawer and immediately swipes up again to the search widget, then lets the widget fully appear, then after that at any point swipes down to dismiss it, it will cause the swipe action to reveal the app drawer instead of the home screen. This was resolved by making sure when `closeAppDrawerAnim` is active, to only set the view state to `PageView` if the view state equals `AppDrawerView`. This prevents `closeAppDrawerAnim` from overwriting the `SearchWidgetView` state and making it seem to think we are still on the home screen when swiping down.

Here is a video of the bug in question.

![Screencast_20250424_225241__online-video-cutter.com_](/uploads/f5d03324850688028628ef8fc18f6c28/Screencast_20250424_225241__online-video-cutter.com_.mp4)
2025-04-25 12:39:05 +00:00
..
package Folio: Make SettingsComponent Buttons Match FavoritesBar Location 2025-04-25 01:23:48 +00:00
applicationlistmodel.cpp folio: Delete delegates if the application is removed 2025-03-19 23:40:11 -04:00
applicationlistmodel.h folio: Delete delegates if the application is removed 2025-03-19 23:40:11 -04:00
CMakeLists.txt Adding translation domains to some dynamic libraries to resolve untranslated issues. 2024-07-09 14:13:50 +08:00
delegatetoucharea.cpp Flag unused parameters with Q_UNUSED() 2024-09-28 06:31:00 +00:00
delegatetoucharea.h homescreens/folio: Add widgets support 2023-11-04 22:18:52 -07:00
dragstate.cpp folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
dragstate.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
favouritesmodel.cpp folio: Delete delegates if the application is removed 2025-03-19 23:40:11 -04:00
favouritesmodel.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
folioapplication.cpp folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
folioapplication.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
folioapplicationfolder.cpp folio: Delete delegates if the application is removed 2025-03-19 23:40:11 -04:00
folioapplicationfolder.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
foliodelegate.cpp folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
foliodelegate.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
foliosettings.cpp Folio: Add ability to lock layout 2025-04-21 14:01:54 +00:00
foliosettings.h Folio: Add ability to lock layout 2025-04-21 14:01:54 +00:00
foliowidget.cpp folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
foliowidget.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
homescreen.cpp homescreens/folio: Add applications drawer search bar 2024-07-01 16:04:32 +00:00
homescreen.h homescreens/folio: Add applications drawer search bar 2024-07-01 16:04:32 +00:00
homescreenstate.cpp Folio: Search Widget View State Bugfix 2025-04-25 12:39:05 +00:00
homescreenstate.h Folio: Settings Component Bugfix 2025-04-24 13:42:16 +00:00
Messages.sh homescreens/folio: Fix translations id 2023-11-05 11:45:36 -08:00
pagelistmodel.cpp homescreens/folio: Port away from singletons to support multi-display 2024-06-22 19:11:04 -04:00
pagelistmodel.h homescreens/folio: Port away from singletons to support multi-display 2024-06-22 19:11:04 -04:00
pagemodel.cpp folio: Delete delegates if the application is removed 2025-03-19 23:40:11 -04:00
pagemodel.h folio: Use smart pointers to manage delegate lifetimes 2025-02-21 18:06:24 +00:00
README.md Proofreading 2024-06-17 00:02:08 +03:00
widgetcontainer.cpp homescreens/folio: Add widgets support 2023-11-04 22:18:52 -07:00
widgetcontainer.h homescreens/folio: Add widgets support 2023-11-04 22:18:52 -07:00
widgetsmanager.cpp homescreens/folio: Port away from singletons to support multi-display 2024-06-22 19:11:04 -04:00
widgetsmanager.h homescreens/folio: Port away from singletons to support multi-display 2024-06-22 19:11:04 -04:00
windowlistener.cpp folio: Rewrite 2023-10-22 04:08:28 +00:00
windowlistener.h folio: Rewrite 2023-10-22 04:08:28 +00:00

Folio Homescreen

This is the paged homescreen for Plasma Mobile.

How it works

Most of the homescreen is in C++ in order to keep logic together, with QML only responsible for the display and user input.

As such, all the positioning and placement of delegates on the screen are top down from the model, as well as drag and drop behaviour.

TODO

  • BUG: If an app gets uninstalled, the homescreen UI needs to ensure that delegates are updated
  • BUG: landscape favourites bar duplication when dragging icon from it sometimes
  • BUG: can't insert delegates in-between very well in landscape favourites bar
  • BUG: drag and drop animation when rejected on a different page
  • IMPROVEMENT: can make the touch area only the icon?
  • FEATURE: Add folio/halcyon switcher in initial-start
  • FEATURE: add widget import/export
  • FEATURE: keyboard navigation
  • FEATURE: touchpad navigation
  • FEATURE: option to darken wallpaper
  • FEATURE: option to turn off row/column swap
  • PERFORMANCE: ensure that the widget config overlays are in loaders