Commit graph

3257 commits

Author SHA1 Message Date
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
l10n daemon script
c99d745904 GIT_SILENT Sync po/docbooks with svn 2024-11-06 01:34:04 +00:00
Luis Büchi
2d47217829 disable electric border highlighting by default in envmanager 2024-11-05 09:03:45 +01:00
Devin Lin
6a5a89313f kcms/time: Fix layout of time dialog and port date dialog to DatePopup
Some changes in Kirigami.Dialog recently completely broke the dialog, we
apparently now have to manually set dimensions on children. Use
DatePopup from Kirigami Addons in order to reduce the code needed here.
2024-11-04 20:34:57 -08:00
Devin Lin
4a86ad8c06 actiondrawer: Cleanup and simplify
Make sure that the view colorset is correct, remove unnecessary layer
(clip is enabled), and remove unnecessary visibility hack for the
notifications widget.
2024-11-05 03:42:25 +00:00
l10n daemon script
6d8f0f2564 GIT_SILENT Sync po/docbooks with svn 2024-11-02 01:32:42 +00:00
l10n daemon script
48ec53bff8 GIT_SILENT Sync po/docbooks with svn 2024-11-01 01:32:19 +00:00
Devin Lin
051e8b7903 envmanager: Fix KWin effect and script reloading
Previously, we had a silent failure of the dbus call to "reloadConfig"
which turned out to be a signal and not a method that we can call. To
reload effects, we need to manually call dbus to load and unload each
individual one. A similar situation exists for scripts, except that we
only unload scripts through individual calls, and call `start` to load
all of the enabled scripts at once.
2024-10-31 20:33:13 +00:00
Devin Lin
76882f5b5d actiondrawer: Share components between portrait and landscape
This avoids having to completely load the quicksettings, status bar,
media widget, and notifications list from scratch when the view changes.
We now have a single instance of each component which is reparented to
the new view (portrait/landscape).

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/406
2024-10-31 15:27:00 +00:00
Nicolas Fella
6da6f3fd55 Port to KStandardActions 2024-10-31 08:41:01 +00:00
Nicolas Fella
d49143456e Drop unused link libraries 2024-10-31 08:41:01 +00:00
Devin Lin
c4b49cf086 hapticsplugin: Only initialize dbus interface if used
Only create dbus interface when needed to avoid wasting resources.
2024-10-31 03:27:36 +00:00
Devin Lin
3fd81679ed homescreens/folio: Remove icon on one of the settings delegates
None of the other settings delegates have icons, it makes it look
strange.
2024-10-31 03:15:22 +00:00
Devin Lin
57caf24504 homescreens/folio: Never open both search and app drawer
This ensures that the search widget and app drawer never simultaneously
both get opened.
2024-10-31 02:55:24 +00:00
Devin Lin
11a45f94d2 homescreens: Use WheelHandler on app list
Use Kirigami.WheelHandler on the app list to give a native feeling
scrolling experience with the mouse wheel.
2024-10-31 00:49:41 +00:00
Devin Lin
35b1128d1d actioncenter: Reduce usage of transforms and cleanup
Simplify positioning of some components by avoiding transforms and using
simple anchors to improve performance. Also cleanup unused properties.
2024-10-31 00:48:36 +00:00
Devin Lin
159e3bb3a6 homescreens/folio: Fix app icons being rounded to predefined sizes
This fixes the app icon size setting, which used to round to predefined
sizes regardless of the actual size setting.
2024-10-29 19:23:25 -07:00
l10n daemon script
eb908d9cd7 GIT_SILENT Sync po/docbooks with svn 2024-10-29 01:32:14 +00:00
Micah Stanley
f9630ba178 VolumeOSD: Increase animation duration and bugfix for audio applet page 2024-10-28 06:36:16 +00:00
l10n daemon script
07836309c2 GIT_SILENT Sync po/docbooks with svn 2024-10-28 01:37:13 +00:00
l10n daemon script
6759ec9307 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-10-28 01:24:44 +00:00
l10n daemon script
83229e44f0 GIT_SILENT Sync po/docbooks with svn 2024-10-27 01:39:32 +00:00