Commit graph

3522 commits

Author SHA1 Message Date
Devin Lin
46578fde73 singletons: Initialize singletons in shell desktop, not panel
We have some singletons (ex. for notification popups, volume, dbus) that
need to be initialized somewhere in plasmashell. Currently they are done
from the panel containment, which is a bit of a strange location. There isn't really
any offical way it seems to do this, so move it to the shell package
which feels more central.
2025-06-25 19:33:00 -04:00
Devin Lin
7c07dc0122 components: Remove unused ExtendedAbstractButton
This component is not used anywhere in the shell, remove it.
2025-06-25 16:47:01 -04:00
Devin Lin
3cc22dd7fb volumeosd: Fix qml errors when undefined
Sometimes the HasVolume property apparently is undefined? Handle this
case gracefully so it doesn't spam the console.
2025-06-25 16:40:29 -04:00
Florian RICHER
2b51e0c30c homescreens/folio: Add options to turn off and lock the phone after a double tap on screen
Linked to issue: https://invent.kde.org/teams/plasma-mobile/issues/-/issues/318
2025-06-25 16:39:36 -04:00
l10n daemon script
0b8c42193d GIT_SILENT Sync po/docbooks with svn 2025-06-25 01:47:09 +00:00
l10n daemon script
8f4c7234be 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"
2025-06-25 01:34:50 +00:00
l10n daemon script
5ea804659d GIT_SILENT Sync po/docbooks with svn 2025-06-23 01:42:28 +00:00
Micah Stanley
7e2019cb0e MobileShell: Unify Item Background Elements
We so far have been recreating the background elements for all the item throughout the shell. This merge request simplifies this by unifying these elements into a single component, making is easier to keep things at a consistent design while also being able to adjust things when needed in the future.

Per request, I tried to keep thing looking mostly the same as before.

The first picture is what the action drawer looks like now, the one after is with these changes.

![Screenshot_20250621_154201](/uploads/7bd5129d942c8fbc3706dd1728b3a1dd/Screenshot_20250621_154201.png)
![Screenshot_20250621_155520](/uploads/9d2e925c9483579dec765813465e4d2d/Screenshot_20250621_155520.png)
2025-06-22 20:16:16 -04:00
l10n daemon script
ae226561e2 GIT_SILENT Sync po/docbooks with svn 2025-06-22 01:50:18 +00:00
Florian RICHER
19e07982dc lockscreen: Trigger QuickActionButton action after time finished instead of onRelease
Currently, we wait user release the button to trigger action. It makes more sense to trigger directly when the timer is triggered.

I keep buttonHeld variable for animation.
2025-06-21 07:49:30 -04:00
l10n daemon script
0512e1f3a2 GIT_SILENT Sync po/docbooks with svn 2025-06-21 01:45:50 +00:00
l10n daemon script
8ecfdf9927 GIT_SILENT Sync po/docbooks with svn 2025-06-19 01:41:47 +00:00
Micah Stanley
775d612d3e ActionDrawer: Fix Panel Opacity when Brightness is Adjusted
This merge request moves the location where the action drawer panel opacity gets set to the top of the background item stack to resolve an issue with the opacity not changing properly when the brightness is adjusted.
2025-06-18 17:02:12 -04:00
Florian RICHER (aka MrDev023)
43672a5ec5 homescreens/folio: Block propagation if edit mode is active to avoid widget to trigger event
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/387 and https://invent.kde.org/plasma/plasma-mobile/-/issues/353

I can't only block the touch events because it blocks also MouseEvent.
> I think because it's used to convert it by QT into Mouse Event with source == MouseEventSynthesizedByQt or MouseEventSynthesizedBySystem.

So the solution, it's to check if mouse event is a synthetized event and if edit mode has been triggered to block or not the event propagation

Test:

- On VM with kwin_wayland command
- On mobile
2025-06-18 05:53:15 -04:00
l10n daemon script
3f3f4c9630 GIT_SILENT Sync po/docbooks with svn 2025-06-18 01:41:50 +00:00
Devin Lin
19ea9f5164 actiondrawer: Draw our own background
Draw our own background in the action drawer instead of using the svg, because it loads faster when visible: true/false is set, and we do a bunch of resizing animations.
2025-06-17 18:00:41 -04:00
l10n daemon script
c4f11d2f01 GIT_SILENT Sync po/docbooks with svn 2025-06-17 01:42:41 +00:00
Florian RICHER
6a869007fc Load minimized Quicksettings as Async 2025-06-16 15:16:03 -04:00
Florian RICHER (aka MrDev023)
f9d4bd9a83 paginatemodel: Avoid to disconnect if model is the same because it's not reconnected after
The quick settings is not updated because sometimes is set to the same model but here, we disconnect all signals to previous model without check if is the same model, but we don't reconnect the signals if is the same model.
2025-06-16 15:04:32 -04:00
l10n daemon script
6bc80a7bce GIT_SILENT Sync po/docbooks with svn 2025-06-16 01:41:49 +00:00
l10n daemon script
2b88bc2fb0 GIT_SILENT Sync po/docbooks with svn 2025-06-15 01:43:08 +00:00
Devin Lin
7f8c9f8d5e notifications: Don't factor action drawer state in expiry
Currently opening the action drawer causes notification popups to
"expire", causing some unintended behaviour (ex. dismiss alarm/timer).

This commit removes this behaviour, and also fixes notification popup
expiry while the action drawer is open.

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/468
2025-06-14 19:16:02 -04:00
Florian RICHER
a83e99ae8c Fix mistake on paginatemodel 2025-06-15 01:07:55 +02:00
Florian RICHER
3e0677b78e Use synchrone component loading instead of asynchrone to avoid concurrent bug 2025-06-15 00:59:09 +02:00
Florian RICHER (aka MrDev023)
4dec0e8c1d lockscreen: Add feedback when lockscreen action is not held
Final result: ![Enregistrement_d_écran_20250612_172825](/uploads/5714e5003c4252d22f0e2671dbd3523d/Enregistrement_d_écran_20250612_172825.webm)

I use a fill animation finally  (filling, unfilling) [See comments](https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/731#note_1237874)
2025-06-14 17:45:00 -04:00
Devin Lin
e4919690b4 quicksettings/record: Make it more efficient on initial load
Try to reduce the amount of preloaded objects that aren't needed until the quick setting is toggled. Also port the the kpipewire interaction parts to C++.
2025-06-13 21:16:20 -04:00
Devin Lin
92a1cfc740 envmanager: Write options as immutable, and add kdeglobals
This commit writes options as immutable to the config file ([$i]
suffix), so that user defined options from desktop do not override our
specified mobile settings.

This commit also moves kdeglobals settings to be written to
~/.config/plasma-mobile/kdeglobals rather than directly to
~/.config/kdeglobals, continuing the work from
!723

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/467
2025-06-13 07:16:18 -04:00
l10n daemon script
babb8587f8 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"
2025-06-13 01:33:11 +00:00
Micah Stanley
a9ddcf726d MarqueeLabel: Smooth Scrolling
This merge request reworks the MarqueeLabel to add smooth scrolling, giving it a more clean appearance while also improving scrolling when filled when characters of different lengths.

Before:

![margueeLabel_before__トリミング_](/uploads/b162949db828a0e243b0ef109456bfdd/margueeLabel_before__トリミング_.webm)

After:

![margueeLabel__トリミング_](/uploads/7ec2a2b72799a56412b08d04b2f6eb00/margueeLabel__トリミング_.webm)
2025-06-12 08:25:42 -04:00
Devin Lin
5511cd73a5 shell: Remove unused options in defaults
From my understanding from reading plasma-workspace, these config
entries are not implemented anywhere. We already handle setting the LnF
package from envmanager. See the desktop one also for reference: https://invent.kde.org/plasma/plasma-desktop/-/blob/master/desktoppackage/contents/defaults
2025-06-11 22:05:43 -04:00
Devin Lin
62f9237aec taskswitcher: Fix task close icon colour in light mode
Breeze changed the icon for the "close" button to be a plain X, instead
of having a red background. Ensure that we use the complementary colour
scheme.
2025-06-11 00:22:38 -04:00
l10n daemon script
4fa5d3440a GIT_SILENT Sync po/docbooks with svn 2025-06-11 01:49:45 +00:00
l10n daemon script
b4d6ba6fbd 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"
2025-06-11 01:34:46 +00:00
Roy Kollen Svendsen
2b1f66ecdc taskswitcher: Fix build when KWin is built without activities support
Fixes:
../kwin/mobiletaskswitcher/plugin/taskfiltermodel.cpp:81:40: error: ‘class KWin::Workspace’ has no member named ‘activities’; did you mean ‘ActivityRaise’?
   81 |     auto activity = Workspace::self()->activities()->current();
      |                                        ^~~~~~~~~~
      |                                        ActivityRaise

This occurs when KWin is built with -DKWIN_BUILD_ACTIVITIES=OFF:

https://invent.kde.org/plasma/kwin/-/blob/master/src/workspace.h#L424
2025-06-10 09:12:25 -04:00
l10n daemon script
1cf868a2b2 GIT_SILENT Sync po/docbooks with svn 2025-06-07 01:40:53 +00:00
l10n daemon script
903a9447bb 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"
2025-06-07 01:33:02 +00:00
l10n daemon script
89c6075dad GIT_SILENT Sync po/docbooks with svn 2025-06-02 01:42:07 +00:00
l10n daemon script
d4f5e1e7a4 GIT_SILENT Sync po/docbooks with svn 2025-06-01 01:48:10 +00:00
l10n daemon script
6d02a24dd4 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"
2025-06-01 01:35:38 +00:00
l10n daemon script
a45395491b 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"
2025-05-29 01:33:33 +00:00
l10n daemon script
dd32a2c864 GIT_SILENT Sync po/docbooks with svn 2025-05-28 01:45:05 +00:00
l10n daemon script
3a771b5f16 GIT_SILENT Sync po/docbooks with svn 2025-05-26 01:44:22 +00:00
l10n daemon script
5fcb33ef67 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"
2025-05-26 01:32:45 +00:00
l10n daemon script
0ad69ad3e0 GIT_SILENT Sync po/docbooks with svn 2025-05-25 02:03:10 +00:00
l10n daemon script
7ef80d4d6c 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"
2025-05-25 01:34:09 +00:00
l10n daemon script
467ba24acc GIT_SILENT Sync po/docbooks with svn 2025-05-24 01:43:14 +00:00
l10n daemon script
ae1a29d5c7 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"
2025-05-24 01:33:35 +00:00
Devin Lin
0e6221ce52 envmanager: Add overlay configs through XDG_CONFIG_DIRS
We currently directly write our settings to ~/.config/kwinrc and ~/.config/ksmserver.

Instead, create a separate config file with our settings (in ~/.config/plasma-mobile), and in startplasmamobile, add that path to XDG_CONFIG_DIRS. These options will be applied in the mobile session, unless the user explicitly sets the config option.
2025-05-22 23:12:43 -04:00
Devin Lin
72284989f8 hapticsplugin: Port to feedbackd
This is an initial port to feedbackd for the haptics plugin.

This implementation is a simple port to have the motor enabled for a certain duration. We will eventually want to use feedbackd events to trigger these instead.

Related MR for qtfeedback: https://invent.kde.org/jbbgameich/ktactilefeedback/-/merge_requests/2

https://invent.kde.org/teams/plasma-mobile/issues/-/issues/10
2025-05-22 11:45:44 -04:00
Bhushan Shah
73b5595139 notifications: do not expire notificationa after invoking action
This may close notification before action is passed and this causes the
action to not work.
2025-05-22 20:04:58 +05:30