Commit graph

34 commits

Author SHA1 Message Date
Devin Lin
5e3fa11be7 panel & taskpanel: Port to use plasma_add_applet
Use plasma_add_applet to deploy the applets as a module: https://invent.kde.org/plasma/libplasma/-/merge_requests/1116

We eventually need to do this for Halcyon and Folio homescreens too, but
they also have a bunch of C++ classes to be ported to declarative type
registration.
2025-06-26 20:46:48 -04:00
Nicolas Fella
9d16564ed6 Remove metadata from applet C++ plugin
It's not needed and causes a warning about defining an explicit Id
2023-09-14 00:18:45 +02:00
Yari Polla
6359e59f48 panel: avoid kcoreaddons unknown error 2023-03-06 13:19:05 +01:00
Laurent Montel
401620e365 Fix some qt6 compile errors 2022-04-24 13:44:41 +02:00
Devin Lin
6653ad6e54 panel: Refactor panel and implement blue ocean mockups 2021-12-22 23:29:00 +00:00
Bhushan Shah
9711d4af10 panel: ask KWin for native resolution screenshots
Potentially fixes the broken screenshots with GLES
2021-12-04 14:30:47 +00:00
David Faure
5c6c094dd2 Fix path->URL conversion error, detected by -DQT_NO_URL_CAST_FROM_STRING 2021-10-02 14:01:56 +02:00
Aleix Pol
989d6fdc1d Port to the new org.kde.KWin.ScreenShots2 interface
Fixes https://invent.kde.org/plasma/plasma-phone-components/-/issues/85
2021-07-25 17:01:32 +00:00
Aleix Pol
766fce50bd Open KClock when the clock is tapped 2021-07-19 16:27:16 +00:00
Alexander Lohnau
bacfccd323
applets: Use K_PLUGIN_CLASS_WITH_JSON instead of K_EXPORT_PLASMA_APPLET_WITH_JSON
Task: https://phabricator.kde.org/T14542
2021-06-19 06:52:49 +02:00
Alexander Lohnau
854742efcc
Run clang-format
If you want git blame to ignore formatting revisions run:
git config blame.ignoreRevsFile .git-blame-ignore-revs
2021-03-19 08:52:24 +01:00
Devin Lin
cb72ee350d Fix panel clock from not respecting 12/24 hour settings 2021-03-09 19:04:29 +00:00
Nicolas Fella
21a3bcafe4 Convert license headers to SPDX 2021-03-02 22:45:25 +01:00
Alexey Min
036edc24cb Use loop instead of recursion
This fixes crash when clicking "screenshot" button
in the top panel on postmarketOS. The reason for crash
is that default thread stack size in musl libc is limited,
and recursion in a function with a 4 Kb buffer consumes
it all.
2021-02-01 17:52:33 +03:00
Han Young
b34862e469 add notification for successful screenshot taking 2020-12-01 14:25:28 +00:00
Han Young
55a9050b45 remove duplicate include 2020-11-16 14:56:43 +08:00
Han Young
a13831bc42 toggle action background color when toggling flashlight 2020-11-16 14:20:40 +08:00
Nicolas Fella
2fab1b0dd1 Add comment that torch path is hardcoded for now 2020-11-11 13:52:19 +01:00
Han Young
407ffc0f4c Hardcoded pinephone torch
The current code use gstreamer to toggle flashlight, however gstreamer doesn't work in pinephone for now. this MR hardcode pinephone sysfs path for flashlight as a temporary workaround
2020-11-11 13:51:12 +01:00
Jonah Brüchert
f326853971
Port away from deprecated QProcess::startDetached overload 2020-10-19 18:11:43 +02:00
Bhushan Shah
c9ca9dac10 Update Screenshot dbus interface
Also mark shouldReturnNativeSize to true since we want to get correctly
scaled screenshot.
2020-10-19 20:50:31 +05:30
Jonah Brüchert
849cb5f88f
Use generated DBus interface 2020-10-01 13:49:32 +02:00
Bhushan Shah
51f4c454c0 phonepanel: fix taking screenshots
Use new API which supports native scaling on wayland and is used by the
spectacle instead of taking screenshot and then moving files around.
2020-10-01 13:21:32 +05:30
Luca Weiss
9cbb53744f Quicksettings: add toggle for enabling/disabling screen rotation 2020-04-29 21:42:48 +02:00
Luca Weiss
6db9537dd3 Quicksettings: convert screenshot interface to class member 2020-04-29 21:40:49 +02:00
Jonah Brüchert
d2b461e17b containments: Optimization 2020-03-21 00:33:26 +00:00
Johnny Jazeix
717abcbf66 fix compilation 2020-02-10 20:45:51 +01:00
Linus Jahn
67c6f94b9d Add timer to screenshots to avoid rest of animations 2020-02-09 08:50:41 +00:00
Linus Jahn
a3d8270e90
Revert "Workaround KWin screenshot bug by using screenArea manually"
This reverts commit a0b8a970ef.

The workaround didn't work anyway. - The bug also affects Qt/QScreen
...
2020-02-08 17:37:01 +01:00
Linus Jahn
a0b8a970ef
Workaround KWin screenshot bug by using screenArea manually
On some/most devices screenshotFullscreen captures only a part of the
screen.
2020-02-08 13:17:53 +01:00
Linus Jahn
30471d4148 Add screenshot option to panel 2020-02-06 19:17:25 +00:00
Jonah Brüchert
47bcdee043 Modernize using clang-tidy 2018-12-31 04:13:55 +01:00
Bhushan Shah
24f2002928 Add experimental torch plugin for top panel
This currently uses the gstreamer code and should be reverted when we
have it working through QtMultimedia.
2018-11-12 09:32:46 +05:30
Marco Martin
da77551aff merge quicksettings and the panel
use plasmoids
2017-09-14 21:03:56 +02:00