Commit graph

124 commits

Author SHA1 Message Date
Devin Lin
a8b858dc3e Remove kirigami version in imports
This fixes potential issues stemming from pinning versions on Kirigami
qml api imports
2026-03-06 22:08:07 -05:00
Devin Lin
839d5e2bff panels: Add support for defining device specific panel tweaks
This adds support for specifying options needed to deal with phone
display panel pecularities (ex. screen curves, notches, punch holes)

This is implemented as settings in ~/.config/plasmamobilerc, which can
set panel heights, paddings, and center spacings to duck display
cutouts. The pixel values are scaling independent, and so are not
affected when the display scaling is changed.

This is then exposed over DBus, so that components from outside of
plasmashell (ex. KWin) can access it easily without needing to connect to
kscreen themselves. Each screen is exposed as a single object.

Currently support is only added in the status bar and the navigation
panel.

Currently all screens have the settings applied. In the future, we may
want to limit this just to the internal screen (?)

---

This also adds a "devices" folder (in `devices/configs`) where per-device configs can be set.

This is installed to `/usr/share/plasma-mobile-device-configs`.
In `plasmamobilerc` (installed to `/etc/xdg/plasmamobilerc`, or
`~/.config/plasmamobilerc`), envmanager will read:

```toml
[Device]
device=oneplus-enchilada
```

for the device config to use and write its settings to
`~/.config/plasma-mobile/plasmamobilerc`.
2025-11-04 23:08:18 -05:00
Nicolas Fella
78366a62ac Remove unused QML import 2025-07-15 18:13:08 -04:00
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
bd895574ff shell: Remove nonexistent tabbar property in Panel
tabbar doesn't seem to exist, so it causes errors in the console.
Removing setting this nonexistent property.
2025-03-19 15:52:50 +00:00
Devin Lin
ce3ecd9e4b shell: Sync implementations with Plasma Desktop
This fixes some of the oddities with applets that we experience that are designed for Desktop. We don't really have a need for different behaviour from Desktop, so it's probably best to follow it for the least amount of bugs.

Eventually we perhaps should derive our shell package from desktop?
2024-07-15 18:48:44 -04:00
Marco Mattiolo
eefc04d0c7 drop KX11Extras::compositingActive() as X11 is not supported 2024-05-05 00:45:21 +00:00
Devin Lin
a4989d4313 shell: Sync panel code with desktop
This allows us to use desktop panels in the future for convergence.
2023-11-13 22:11:50 -08:00
Devin Lin
a79290d010 taskpanel: Fix rotation position 2023-10-16 22:12:44 -07:00
Nate Graham
cc50aee72d Remove versioning from PlasmaCore module imports
It's unneeded in Qt6 and can cause subtle issues.
2023-09-05 09:34:49 -06:00
Alexey Andreyev
127bbdf653 Port away from PlasmaCore and PlasmaExtras to Kirigami
See also:

https://pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma/
2023-07-25 01:13:52 +00:00
Devin Lin
25a513d829 panels: Port to plasma-framework changes 2023-06-12 20:49:54 -04:00
Devin Lin
0e4b1da9a1 volumeosd: Extract out singleton so that it's only loaded once in plasmashell 2023-03-19 21:10:49 -07:00
Devin Lin
f25840bfc2 mobileshellstate: Move to DBus API instead of trying to use shared QML context
This also allows us to trigger behaviour from other processes that import mobileshell
2023-03-19 18:32:52 -07:00
Devin Lin
6375fb424f Fix shell layout.js 2023-03-05 09:39:44 -08:00
Devin Lin
7eaf640926 shell: Fix accent color from wallpaper not working 2022-10-27 00:57:38 -04:00
Nicolas Fella
5d1833699b Remove unused QML import 2022-08-14 00:32:43 +02:00
Devin Lin
2b1e6f12f8 Remove unused components 2021-12-06 02:57:14 +00:00
Aleix Pol
0cd4f91ec4 Port away from PlasmaComponents 2.0 on most places 2021-10-22 16:34:03 +00:00
Aleix Pol
4bba6ac402 units -> PlasmaCore.Units 2021-09-13 18:59:35 +02:00
Aleix Pol
d332582328 Port away from the global "theme" object to PlasmaCore.Theme
Like we've done for the rest of Plasma
2021-06-10 16:14:41 +02:00
Nicolas Fella
0b6e1435ed Make pin screen follow color scheme
Use proper theme API instead of hardcoded colors
2021-05-27 22:59:24 +02:00
Nicolas Fella
21a3bcafe4 Convert license headers to SPDX 2021-03-02 22:45:25 +01:00
Aleix Pol
59297a25f3 --warnings
Make sure we don't call null pointers
Do not reference old objects that don't exist anymore
2021-02-24 16:04:24 +01:00
Han Young
a9a8e5cc00 multitouch input support 2020-11-13 15:24:01 +00:00
Tobias Fella
3cd3dcd99f Rework the SIM PIN Screen
Update the visuals to look more like the new lockscreen pin
2020-10-29 19:41:32 +00:00
Marco Martin
e4014bd0ba fix widget explorer 2020-07-16 13:48:53 +02:00
Marco Martin
96f4e7be53 temporarly remove the horizontal activity switcher 2020-07-16 11:37:43 +02:00
Aleix Pol
6adbe5249d Fix warnings 2020-02-07 13:38:02 +01:00
Marco Martin
cb3f9617ce assign both containment and containmentInterface 2020-02-04 18:02:20 +01:00
Pino Toscano
b7e93f5630 i18n fixes
- translate few UI strings
- use i18np for plural forms
- style fixes
2019-11-21 09:24:10 +01:00
Yuri Chornoivan
a1021e4d3c Fix minor typos 2019-11-07 17:51:34 +02:00
Marco Martin
4832735497 make it a flickable again
otherwise too many mose events get stolen
2019-09-16 18:48:33 +02:00
Marco Martin
38b2f688bb take files from the kpackage 2019-09-04 18:25:52 +02:00
Marco Martin
e1d7844b82 make plamo shell inherit from plasma nano 2019-09-04 17:33:01 +02:00
Jonah Brüchert
bd03f2114d Remove dead code 2019-07-05 14:38:07 +00:00
Dimitris Kardarakos
f1de836216 Prevent password from being visible
When the user enters the PIN of the SIM, the password is displayed in cleartext. This change masks visible characters with password characters.

Differential Revision: https://phabricator.kde.org/D19076
2019-02-23 18:32:20 +02:00
Marco Martin
1826be8c5a remove onFlickended
don't call dead api
2019-01-04 12:12:04 +01:00
Marco Martin
c614e3229a remove unused import 2018-11-28 15:47:16 +01:00
Marco Martin
658312f2f1 solve loop when a new activity is created
T10009
2018-11-28 15:43:31 +01:00
Marco Martin
8833d59c6d bindings loop -- 2018-11-28 14:22:20 +01:00
Marco Martin
3a9592419c imake it work with latest revision 2018-04-22 17:09:49 +02:00
Marco Martin
727c0fd7c9 use candidatecontainments 2018-04-19 17:37:16 +02:00
Marco Martin
8966080924 finish the port to Animators
clean up the code
2018-02-23 13:27:50 +01:00
Marco Martin
4ab220ed06 try to replace the flickable with a custom implementation 2018-02-22 19:26:53 +01:00
Marco Martin
3f515a3c16 get rid of ListView and hackTimer 2018-02-13 14:16:48 +01:00
Marco Martin
fa8bec3fd8 actually fix activity switching 2018-02-09 18:26:57 +01:00
Marco Martin
89fef3ed7b almost functional even if hacky swipe activity switcher 2018-02-09 18:20:43 +01:00
Marco Martin
5e1e5e9009 prototype with a ListView
still doesn't change activities correctly, seems to be too eager to
load all containments at start
2018-02-09 13:04:48 +01:00
Marco Martin
f0f7c69be6 very early prototype of gesture activity switching
idea is to slide activities with an horizontal swipe
2018-02-08 19:54:32 +01:00