Commit graph

3204 commits

Author SHA1 Message Date
Sebastian Kügler
2b822e8c6a [mobileshell]: apply scale factor to status bar
This change allows scaling of the statusbar (the top panel).

As we have to accommodate for a wide variety of devices with different
physical pixel sizes, we need a way to scale the top panel / status bar.
This change introduces a config value (in plasmamobilerc, such as other
shell settings) that controls this size.

For example (plasmamobilerc):

[General]
statusBarScaleFactor=1.5

(Config UI in kcm mobileshell in separate patch)

Signed-off-by: Sebastian Kügler <sebas@kde.org>
2024-10-25 17:53:25 +00:00
User8395
889c085c21 quicksettings: fix landscape not being scrollable
Currently, Quick Settings in landscape mode is not scrollable, due to issues with `scrollViewComponent`. This causes some buttons to become unseen in landscape mode but not portrait. This has been solved by deleting `scrollViewComponent` and replacing it with `swipeViewComponent`, to allow swiping to access other buttons in Quick Settings.

Before (docked mode and hotspot are missing):

![screen-recording__1_](/uploads/e0c4eaf22a2ec401c66e9e513e8ce7e1/screen-recording__1_.webm)

After (docked mode and hotspot are there):

![screen-recording](/uploads/404ebbecc87e1b60b2501b81b8ab83ee/screen-recording.webm)

However, with this setup, `resetSwipeView()` doesn't work, and Quick Settings remains at the page it was left at.
2024-10-25 17:02:30 +00:00
Micah Stanley
681d1683f5 VolumeOSD: Improve design, and prevent touch events from being taken from outside the osd
Fixes: https://invent.kde.org/plasma/plasma-mobile/-/issues/274

Any feedback on these changes would be much appreciated.

![Screenshot_20241024_093458-1](/uploads/7b4f89ace1a53c559737d1c05d591329/Screenshot_20241024_093458-1.png)
![Screenshot_20241023_070919](/uploads/c7b9a8de7c9bba2de01d734408e02b2b/Screenshot_20241023_070919.png)

Change Log:
- NanoShell FullScreenOverlay was changed to a LayerShellQt Window to keep it on the top layer and to prevent the popup from obsorbing all touch inputs.
- New animations were added to the volume popup.
- User can now change the volume by touching and dragging on the popup
- The mute button on the popup was fixed
- Mute buttons were added next to the volume sliders in the AudioApplet page
- Volume icons now dynamically update to the volume level
- Visual design adjustments
2024-10-25 15:52:49 +00:00
l10n daemon script
8d1bb7642d GIT_SILENT Sync po/docbooks with svn 2024-10-24 01:31:50 +00:00
Sebastian Kügler
f21c55953c [battery]: support multiple batteries in shell's top panel
This change make Plasma Mobile show multiple batteries in the top panel
in case the system has more than one.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
2024-10-22 17:03:53 +02:00
Sebastian Kügler
ab957a84f9 [battery]: port battery info to new model
This change ports BatteryInfo away from dataengines to the new battery
model that is also used for Plasma Desktop.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
2024-10-22 17:03:53 +02:00
Luis Büchi
3353d45249 reintroduce maximizing task on activating it in switcher
only maximize when not in docked mode to not break windowed workflow
when docked.
BUG: 492077
2024-10-21 11:53:36 +02:00
Devin Lin
b6f2740ff4 lockscreen: Forward keyboard key immediately to password bar
Currently, only the second key press gets forwarded to the password bar.
Ensure that the first key is also forwarded correctly.
2024-10-18 22:19:27 -07:00
l10n daemon script
eecbba3f03 GIT_SILENT Sync po/docbooks with svn 2024-10-19 01:34:22 +00:00
Devin Lin
76826f37f5 taskswitcher: Fix close all button being dark and not interactable
Fix fallout from #574
2024-10-14 19:24:03 -07:00
Micah Stanley
fdc8958ce5 taskswitcher: Gesture Navigation: Quality of Life Improvements
Most Notable Changes Here Include:
1. If the user moves and lifts their finger up halfway up the screen, the navigation gesture will now go home.
2. The task drawer will now move in and out of view depending on the gesture navigation state.
3. The app window will now continue to shrink with resistance as the window moves further up.
4. When in the task drawer, if the user drags up from the bottom, the current task will now follow the users finger like the task does when dragging up from within an app.
5. The task drawer will now slide in from the side when it is not within an app.

I would upload a video here to showcase these changes. However, I was unable to get OBS to record my screen while in my plasma mobile session.
2024-10-15 00:55:29 +00:00
l10n daemon script
971879f10f GIT_SILENT Sync po/docbooks with svn 2024-10-14 01:30:01 +00:00
l10n daemon script
43a8a7de69 GIT_SILENT Sync po/docbooks with svn 2024-10-13 01:30:52 +00:00
l10n daemon script
921f0e580f GIT_SILENT Sync po/docbooks with svn 2024-10-12 01:31:57 +00:00
Devin Lin
d854f26062 kcms/cellularnetwork: Fix available networks list elements not being
full-width
2024-10-12 01:25:44 +00:00
l10n daemon script
fa01a316ca GIT_SILENT Sync po/docbooks with svn 2024-10-11 01:38:47 +00:00
l10n daemon script
480650b4d4 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-11 01:26:14 +00:00
Devin Lin
6885dc4ae9 statusbar: Fix clock not updating immediately when timezones are changed
We should be polling by the second in order to always be up-to-date of
any system time changes.

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/403
2024-10-11 00:17:52 +00:00
Devin Lin
59cbccfe52 kcms/time: Don't insert "local" option into timezones dropdown
It isn't selected by default, and also causes the time to disappear when
selected.
2024-10-09 19:43:48 -07:00
l10n daemon script
fc342fa758 GIT_SILENT Sync po/docbooks with svn 2024-10-10 01:31:33 +00:00
l10n daemon script
4077fb3baa 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-10 01:23:11 +00:00
Devin Lin
c7e5003596 screenbrightnessplugin: Extract from initialstart and use in shell
This is partially an emergency fix also for
https://invent.kde.org/plasma/plasma-mobile/-/issues/404, which was
potentially introduced by https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/582

This MR extracts the screen brightness implementation from initialstart
to a QML plugin, and also ports the action drawer brightness slider
implementation to it. This avoids importing the powerdevil screen
brightness plugin on the lockscreen, which apparently has a race
condition that causes it to sometimes segfault.
2024-10-08 22:47:30 -07:00
Devin Lin
050ce9e5b8 navigationpanel: Fix disabled buttons from having grey icons 2024-10-09 01:54:55 +00:00
Devin Lin
7e3d230f2e initialstart: Provide more scaling options
Often scaling is in multiples of 25%, add more options to support this
2024-10-09 01:50:46 +00:00
l10n daemon script
7e28332e71 GIT_SILENT Sync po/docbooks with svn 2024-10-09 01:32:53 +00:00
l10n daemon script
3fbf619c01 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-09 01:24:16 +00:00
User8395
817c1ffb65 Add "Powered by distro" to initialsetup/LandingComponent
This is a recreation of !581.
2024-10-08 15:49:32 +00:00
l10n daemon script
6eacb241f7 GIT_SILENT Sync po/docbooks with svn 2024-10-08 01:31:58 +00:00
l10n daemon script
0d489dfe4f GIT_SILENT Sync po/docbooks with svn 2024-10-07 01:30:19 +00:00
l10n daemon script
0f87fa3042 GIT_SILENT Sync po/docbooks with svn 2024-10-06 01:31:26 +00:00
Mr. Athozus
89fe9125ee Use edit-none icon in task switcher if no applications are running
Replace `window` icon by `edit-none` icon. The `window` icon is least
representative of what it means that the `edit-none` icon (gives more
the feeling of something being empty).
2024-10-05 22:50:09 +00:00
l10n daemon script
034088c228 GIT_SILENT Sync po/docbooks with svn 2024-10-05 01:31:35 +00:00
Devin Lin
1ac2745bfb quicksettings/screenrotation: Don't call rotate in signal handler
This is a workaround for https://invent.kde.org/plasma/plasma-mobile/-/issues/405, where if the caller gets deleted by the screen rotation, the entire shell crashes.

Eventually, we need to implement
https://invent.kde.org/plasma/plasma-mobile/-/issues/406 to reduce the
amount of oddities we have from recreating the quick settings panel
during screen rotation.
2024-10-03 22:41:29 -07:00
l10n daemon script
fbdd90066d GIT_SILENT Sync po/docbooks with svn 2024-10-04 01:33:33 +00:00
Jonathan Riddell
f83c72a916 update version for new release 2024-10-03 13:14:03 +01:00
Jonathan Riddell
9e986f41ba update version for new release 2024-10-03 12:12:24 +01:00
l10n daemon script
d783058bd5 GIT_SILENT Sync po/docbooks with svn 2024-10-03 01:31:58 +00:00
l10n daemon script
496179b226 GIT_SILENT Sync po/docbooks with svn 2024-10-01 01:32:58 +00:00
l10n daemon script
b1918cfc58 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-01 01:23:26 +00:00
l10n daemon script
6f95b44a32 GIT_SILENT Sync po/docbooks with svn 2024-09-30 01:33:22 +00:00
Florian RICHER
a6a16507c3 quicksettings: Fix brightness slider
Status:

- Tested on my OP6 with PostmarketOS edge. (Pmbootstrap build + sideload)

Fix issue https://invent.kde.org/teams/plasma-mobile/issues/-/issues/306
2024-09-29 22:24:58 +00:00
l10n daemon script
eef3a2822a GIT_SILENT Sync po/docbooks with svn 2024-09-29 01:31:04 +00:00
Marco Mattiolo
ac91c9fe11 Drop semicolon after Q_UNUSED() for consistency through the repo 2024-09-28 06:31:00 +00:00
Marco Mattiolo
bfdc6d938a Avoid implicit capture of 'this' via '[=]' as deprecated in C++20 2024-09-28 06:31:00 +00:00
Marco Mattiolo
d79274cbe7 Manages new cases introduced in ModemManager 1.20 2024-09-28 06:31:00 +00:00
Marco Mattiolo
edb8c91d66 Fix deprecated declarations from QLocale 2024-09-28 06:31:00 +00:00
Marco Mattiolo
4371c95194 Flag unused parameters with Q_UNUSED() 2024-09-28 06:31:00 +00:00
Alexander Lohnau
f726443f77 Remove ServiceTypes for KPackage files
We no longer need to define those, because the KPackageStructure is defined
2024-09-26 08:40:51 +02:00
l10n daemon script
640c6e6846 GIT_SILENT Sync po/docbooks with svn 2024-09-26 01:32:01 +00:00
l10n daemon script
13f59ef193 GIT_SILENT Sync po/docbooks with svn 2024-09-25 01:33:26 +00:00