Commit graph

3278 commits

Author SHA1 Message Date
Micah Stanley
48dedcd546 taskpanel/panel: make navbar and statusbar accessible from within fullscreen windows
These changes make the navigation and status bar accessible from within fullscreen applications by allowing the user to tap on the top or tap or drag on the bottom of the screen.

Also, since the top panel is now over top of all fullscreen applications, this moves the action drawer swipe area back into the status bar.

![navandstatusbar](/uploads/29bce14baf957059669689345c909896/navandstatusbar.gif)
2024-11-25 17:30:47 +00:00
l10n daemon script
6aa5a2e0e0 GIT_SILENT Sync po/docbooks with svn 2024-11-25 01:36:41 +00:00
l10n daemon script
d0c514cf22 GIT_SILENT Sync po/docbooks with svn 2024-11-24 01:35:36 +00:00
Micah Stanley
c6e0591977 popupnotifications: a bit of cleanup and bugfixes
This fixes an issue where if a notification is delivered while the action drawer is opened, it won't dismiss properly. Causing an issue where if a new notification comes through any time afterwards, the top touch area will get stuck and prevent touch inputs.
This also finishes connecting the do not disturb popup whitelist to the notification model.
2024-11-22 01:55:50 +00:00
Micah Stanley
abb9b963f0 lockscreen: handle backspace and enter key when switching from keypad
This fixes an issue were pressing the backspace or enter key on the keyboard when using the keypad, unexpected results occurred.
This also fixes an issue were if only one key is typed from the initial lockscreen view, the backspace key would not actually do anything.
2024-11-22 01:45:58 +00:00
Carl Schwan
70ec403a55 Ensure directory is created
Fix #424
2024-11-22 01:17:16 +00:00
Micah Stanley
3a6a2f78da homescreen/folio: fix icon drop position misalignment within folder and outside folder view check not accounting for size differences
This fixes an issue with folder app icon drop positions being misaligned. Noticeably causing issues when placing apps within folders when using gesture only mode.
Also, this fixes an issue with the outsideView calculation not accounting for folder icon size differences. Causing an issues with some apps still being interactive when outside the current page.
2024-11-20 03:20:01 +00:00
l10n daemon script
6f3e157df9 GIT_SILENT Sync po/docbooks with svn 2024-11-20 01:35:18 +00:00
l10n daemon script
d2fab8b880 GIT_SILENT Sync po/docbooks with svn 2024-11-19 01:34:20 +00:00
l10n daemon script
f990d244e5 GIT_SILENT Sync po/docbooks with svn 2024-11-18 01:38:43 +00:00
l10n daemon script
563185a7cf GIT_SILENT Sync po/docbooks with svn 2024-11-16 01:38:34 +00:00
Devin Lin
57d29a7727 kwin/convergentwindows: Ignore case with undefined desktop
Otherwise the script keeps complaining in logs, if the window doesn't
have a desktop we should ignore it.
2024-11-15 17:58:33 +00:00
Devin Lin
4569296128 kcms/time: Modernize and cleanup code
The time KCM backend code is quite old and is somewhat buggy because
toggling any option causes all fields to update. I cleaned up the code
and isolated different options from each other, and ensured the QML UI
bindings stay up to date. I also moved the date popup to a loader so
that it isn't loaded at start.
2024-11-15 09:53:51 -08:00
Carl Schwan
6ce0058188
time kcm: Lazy load the date picker 2024-11-15 13:07:45 +01:00
Carl Schwan
55f2deb33d
Fix translation extraction 2024-11-15 12:48:53 +01:00
Devin Lin
b3c7f418d7 envmanager: Ensure KWin is reloaded
We need to also call a workspace reconfigure to ensure settings are
properly applied live.
2024-11-15 03:45:48 +00:00
l10n daemon script
7703acf1e9 GIT_SILENT Sync po/docbooks with svn 2024-11-15 01:34:56 +00:00
Micah Stanley
65c2be29e7 mobileshellstate: update isActionDrawerOpen to use intendedToBeVisible
The drawer was recently updated where it is now technically always is visible. So we need to update the binding for MobileShellState to use drawer.intendedToBeVisible so that it works properly.
2024-11-15 01:19:57 +00:00
Devin Lin
24d3186834 quicksettings/audio: Close action drawer when opening volume osd
Now that the action drawer no longer takes focus, we need to manually
trigger the action drawer to close when opening the volume osd.
2024-11-14 17:20:12 +00:00
Micah Stanley
7245080b22 actiondrawer: hide action drawer while adjusting screen brightness
This change hides the action drawer while adjusting the screen brightness so that one can see the content behind it.
2024-11-14 03:34:01 +00:00
Micah Stanley
e4d57d19bc actiondrawer: use action drawer window as the open surface area
Change to use the action drawer window as the open surface area so that we can open the drawer within fullscreen applications.
2024-11-14 03:31:10 +00:00
Micah Stanley
36f0d175fd kwin/convergentwindows: keep current window maximized bugfix
This fix maximizes the current window if it ever leaves a fullscreen or maximized state. This is to fix a bug where if a window exits fullscreen mode, it will not return back to a maximized state.
2024-11-14 01:47:32 +00:00
l10n daemon script
c2f91fa407 GIT_SILENT Sync po/docbooks with svn 2024-11-14 01:34:49 +00:00
l10n daemon script
b09b343597 GIT_SILENT Sync po/docbooks with svn 2024-11-13 01:33:46 +00:00
Devin Lin
238cf4948b actioncenter: Allow expanded mode to be opened as soon as minimized offset crossed
Currently the user can only expand to the expanded state after the initial minimized animation finishes. This animation gets reset as soon as a finger is pressed down, causing the user to have to wait until the animation completely finishes before being able to go to the expanded state.

Bypass the need to wait for the animation to finish by setting the open state immediately if the offset already is past the minimized threshold.
2024-11-12 00:25:33 -08:00
Devin Lin
c396555509 widgets/krunner: Modernize design to match app drawer, and add section headers
This MR:
- Caps the maximum width of delegates and centers them
- Makes the search widget style match the app drawer search bar
- Adds section headers
- Uses rounded delegates
2024-11-10 23:44:23 -08:00
Devin Lin
fdf2ad87f6 screenbrightnessplugin: Fix behaviour if dbus service is not initialized followup
Fix abfe419b3b
2024-11-10 22:57:32 -08:00
Devin Lin
abfe419b3b screenbrightnessplugin: Fix behaviour if dbus service is not initialized
If the dbus service gets initialized later, ensure that the latest values are being fetched.
2024-11-10 21:57:17 -08:00
Devin Lin
b9d4ff6455 Revert "homescreens: Use WheelHandler on app list"
This reverts commit 11a45f94d2.
2024-11-10 21:01:28 -08:00
l10n daemon script
7f98a8191a GIT_SILENT Sync po/docbooks with svn 2024-11-11 01:40:52 +00:00
Devin Lin
a8068ff2bb homescreen/folio: Fix favourites bar reordering when full
Fix the favourites bar reordering when it is already full, currently it
prevents any changes on a full bar, requiring users to move the delegate
out and back in again.
2024-11-10 19:22:32 +00:00
User8395
a54503419e Improvements to initialstart + 1 more
This MR implements multiple things

- Add `.vscode/` to .gitignore
  - Any files generated by Visual Studio code or its extensions will not be pushed.
- Give `InitialStartModule` a required `name` property
  - Every `InitialStartModule` now requires a `name` property. This replaces the previous setup where a `property string name` was needed in the `contentitem` of the `InitialStartModule`.
- Remove the cellular page if no modem
  - If the device has no modem (`PlasmaMM.SignalIndicator.modemAvailable == false`), the cellular page will no longer be shown.
2024-11-10 06:35:06 +00:00
l10n daemon script
b7611e58a5 GIT_SILENT Sync po/docbooks with svn 2024-11-10 01:41:31 +00:00
Micah Stanley
ca7b79e0b7 homescreen/folio: Fix folder apps still being Interactable when outside current page
This fixes an issue where apps in the folder can still be interacted with when outside the current page.
2024-11-10 00:05:10 +00:00
Micah Stanley
f52bf0bd71 homescreens/folio: Homescreen folder page snapping position bugfix
This fixes an issue where if the device is rotated in a folder, the page would not snap immediately back to the right position, but would instead animate icon position changes.

To achieve this, the following changes were made.
- changes were made to how the folder gird size is calculated to prevent an issue with the grid size changing for a brief period of time during screen rotation, causing problems with snapping to the correct page.
- icons position animations are now done by a animated index value to prevent it from animating when the device rotates
- when the device screen size changes (ex: device rotation), it now snaps to the current folder page, as before it would just stay in between the two pages.
2024-11-09 19:04:24 +00:00
Devin Lin
a508c8d524 quicksettings/screenrotation: Nullptr check
Add nullptr check, since apparently it's possible for outputs to be
given as nullptr.
2024-11-09 18:45:27 +00:00
Devin Lin
c2731f650e homescreens/folio: Fix goToPage call not updated with new parameter 2024-11-09 09:34:57 -08:00
Devin Lin
3d9ddbde15 navigationpanel: Add manual screen rotation button
When the device is rotated and autorotate is off, a button will appear
on the navigation panel to manually rotate.

This is specific to the navigation panel, perhaps we can have a floating
button in gesture-only mode similar to Android?

TODO: PoC, I haven't yet actually tested this on device. I also need to
make sure that I check for whether autorotation is enabled on the
output.
2024-11-09 17:24:23 +00:00
Devin Lin
aa3e42f65a homescreens/folio: Fix favourites bar ghost position when drag out
Fix the scenario where the favourites bar ghost position is not removed
when the user drags the delegate out of the bar area.
2024-11-09 17:12:04 +00:00
Devin Lin
5decdbe2b5 quicksettings/autorotate: Properly listen to external changes
This ensures that external changes to screen rotation are listened to
and updated in the quicksetting.

TODO: haven't actually tested on device yet
2024-11-09 09:39:55 +00:00
l10n daemon script
57a35ddd0c GIT_SILENT Sync po/docbooks with svn 2024-11-09 01:33:06 +00:00
Devin Lin
f3dc108602 actiondrawer: Use layershell to avoid taking focus from current window
We can use layershell to avoid taking focus from the current window,
which avoids any unnecessary behavior from an unfocus event.
2024-11-07 20:06:22 -08:00
Devin Lin
6e7376990b envmanager: Toggle interactive window moving
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/340

This toggles whether interactive window moving is enabled based on
whether docked mode is enabled.

Requires https://invent.kde.org/plasma/kwin/-/merge_requests/6745
2024-11-08 03:03:41 +00:00
l10n daemon script
e5739eb339 GIT_SILENT Sync po/docbooks with svn 2024-11-08 01:33:30 +00:00
l10n daemon script
a2d8105d08 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-11-08 01:25:01 +00:00
Micah Stanley
eba6074161 notifications: Implement popup notifications
This merge request implements a more mobile optimized solution for popup notification.
- 

The current controls are:
- Swipe up to move the notification to the notification center.
- Swipe left/right to dismiss the notification entirely.
- If multiple popup notifications are grouped together, tap on the bottom area to view them in a expanded view.

What still needs to be done:
- ~~For notification without a default action, tapping on them should probably open up the associated app.~~ Note: I think I will add this in a separate merge request as it probably should be the case regardless if the notification is a popup
- ~~Swiping down on a notification currently does nothing. Maybe we should map this to a notification action?~~ Note: I have some ideas I will try later, though for now, I will leave this action blank
- ~~The expanded view of notifications should be able to be dismissed by swiping up/down on the top/bottom of the list.~~ Note: Added
- Investigate further into how to remove the current desktop popup notifications.
- ~~Code clean up.~~ Note: The code is at least a bit better

Single popup notification:

![notification_1](/uploads/63d12be6da1dd2676de17940dcadbdfa/notification_1.gif)

Multiple popup notifications:

![notification_2](/uploads/907a14b772f66f46040c28342f4dcf02/notification_2.gif)

Multiple popup notifications in the expanded view:

![notification_3](/uploads/9a7cd09a6bb8a0f7ee70e5bcf7c29c6b/notification_3.gif)

Any feedback would be greatly appreciated.
2024-11-07 16:13:06 +00:00
Devin Lin
e66d88a754 initialstart: Introduce InitialStartModule as top level item for modules
Currently modules are initialized as QQuickItems. In order to be able to
add custom properties for modules to set in the future, introduce
InitialStartModule as the top-level QML object for modules to
initialize.

Currently only two properties are implemented: `available` for whether
to show the module in the wizard, and `contentItem` for the visual
module item.
2024-11-06 22:07:50 -08:00
Micah Stanley
2a5dec9cf0 homescreens/folio: FavouritesBar: Icon position animation bugfix
This fixes in issue where the favorites bar icons would previously animate based off of position changes. This was causing unwanted animations in situations like screen rotation and login.
2024-11-07 05:17:57 +00:00
Micah Stanley
f5728e1a21 homescreens/folio: Homescreen page snapping position Bugfix
This fixes an issue where if the device is rotated on the 2nd or further page, the page would not snap immediately back to the right position, but would instead animate.
2024-11-07 05:12:47 +00:00
l10n daemon script
df7aae2b4e GIT_SILENT Sync po/docbooks with svn 2024-11-07 01:34:32 +00:00