Commit graph

244 commits

Author SHA1 Message Date
Aleix Pol
9dfac82863 Move the Battery settings with its provider
And make use of it to show if it's plugged or not
2021-07-21 13:36:43 +00:00
Aleix Pol
dd888a707f Make it possible for QuickSettings to be created in a KPackage
Move the NightColor one into a KPackage to prove it
2021-07-21 13:36:43 +00:00
Aleix Pol
9ac1cc139e Move QuickSettingsModel to C++ 2021-07-21 13:36:43 +00:00
Aleix Pol
0d7f10abbc Move the Volume quick setting with its provider
So not to rely on global identifiers
2021-07-21 13:36:43 +00:00
Aleix Pol
3b212d7a55 QuickSettings: Simplify
Port away from ListModel, make it an array of QuickSetting objects
2021-07-21 13:36:43 +00:00
Aleix Pol
766fce50bd Open KClock when the clock is tapped 2021-07-19 16:27:16 +00:00
Aleix Pol
4942e0e369 Make sure the closed signal is emitted upon close
Otherwise some events never happen, like the screenshot request.
2021-07-14 17:53:58 +00:00
Devin Lin
7c8fc77984 [panel] Fix not centered bottom arrow, and adjust top margin slightly 2021-07-02 18:43:08 -04: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
Marco Martin
7ef50d4af4 Top panel: some simplification and smoother
Simplify the code of the collapsing quick settings panel a bit, and make animations and positioning way smoother
2021-06-16 09:30:28 +00:00
Aleix Pol
0fc51bfb1e Fix warning
Don't check a setting that doesn't exist.
2021-06-10 16:14:59 +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
Devin Lin
40419e48bc Add advanced VolumeOSD to top panel 2021-06-09 13:28:59 -04:00
Marco Martin
b0b0e6f237 restore the widescreen mode 2021-06-09 15:50:40 +02:00
Marco Martin
5da75348f7 Use Plasma Theme and layout fixes
This moves all background rendering of elements in the top sliding panel to use the plasma theme, making full use of themes that can be downloaded from the store, doing so decreases the usage of the Qt.GraphicalEffects import which is slow and not in Qt6. There are some layout and behavioral fixes especially in widescreen mode
2021-06-09 08:44:48 +00:00
Devin Lin
f292ca20f4 panel: remove unnecessary color changes for header panel when quicksettings open 2021-06-04 21:34:09 +00:00
Nicolas Fella
f53aae825d Use version-less qt DBus macros
They work with both Qt5 and Qt6
2021-05-31 01:08:05 +02:00
Bhushan Shah
7bac59549d indicators: do not needlessly scan again
When putting modem in online state it would already make it scan for
operator, we have no need to make it scan for operators again and waste
time for operation takes long time.
2021-05-14 15:01:01 +05:30
Devin Lin
f97d5db94b Skip panel window open to improve performance 2021-05-09 19:32:32 -04:00
Marco Martin
1aca3951a1 remove unwanted changes in the top panel 2021-05-04 12:46:23 +02:00
Marco Martin
e4d297dd73 multi page horizontal scrolling
possibility of dragging icons and applets beyon the horizontal screen
boundaries, creating multiple pages that can be horizontally flicked
2021-05-04 12:42:14 +02:00
Devin Lin
0ed2053e79 Rework top panel and improve appearance 2021-04-09 20:59:05 +00: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
Devin Lin
7f7bea091e Use high-brightness and low-brightness icons in the top panel, and remove label 2021-03-09 12:28:40 -05:00
Marco Martin
113fe48caf 2 step top panel slide
a top panel can be just "half" opened showing only the top row of icons. don't duplicate the icons but dynamically fade in/out those making also possible to open the drawer completely by a single, longer swipe
2021-03-09 12:52:17 +00:00
Nicolas Fella
21a3bcafe4 Convert license headers to SPDX 2021-03-02 22:45:25 +01:00
Noah Davis
ed4d713ffb Use Header colors for top panel
Apps use this colorset now. Not using this color set causes the top panel to look weird.
2021-02-28 00:23:21 -05:00
Marco Martin
b044fd156d fix horizontal scrolling of applets
try harder to not have the applet outside of boundaries
2021-02-25 18:02:40 +01:00
Aleix Pol
9bda1b66ff Remove call to an element that doesn't exist
I imagine this was ported away from Loader but it's not anymore.
2021-02-24 16:02:54 +01:00
Devin Lin
17938b31ae Close sliding panel as soon as it's off the screen for no delay 2021-02-22 12:22:07 +00:00
Devin Lin
f231b04bdc Cancel sliding panel animations on touch so it's more responsive 2021-02-22 12:22:07 +00:00
l10n daemon script
006cb7f865 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"
2021-02-18 07:54:49 +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
Nicolas Fella
8f92f6b4d6 Use versionless Qt cmake target
This makes it easier to build against both Qt5 and Qt6

GIT_SILENT
2021-01-30 17:23:02 +01:00
l10n daemon script
7c6cabf4a1 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"
2020-12-20 06:16:31 +01:00
Nicolas Fella
8014d1000c Use PC3 instead of QQC2
In the shell we need to use PlasmaComponents, otherwise the style will
be off
2020-12-16 14:55:44 +00:00
Marco Martin
5809376938 propert visibility binding for notifications 2020-12-07 16:19:45 +01:00
Han Young
b34862e469 add notification for successful screenshot taking 2020-12-01 14:25:28 +00:00
Bhushan Shah
6969101760 Fix button toggle for night color and torch
The code which adds initial buttons only sets the initial property and
does not affect the binding, so we need to set this values manually
2020-11-19 17:01:28 +05:30
Devin Lin
94609d2590 Add night color quick setting 2020-11-19 02:57:27 +00:00
Jonah Brüchert
4dbf4dba42
Simplify QuickSettings 2020-11-16 08:36:42 +01:00
Jonah Brüchert
162f93a41d
quicksettings: Port to new delegate api 2020-11-16 08:36:38 +01: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
d3e03c6ca5 Fix launching settings from top drawer 2020-11-15 16:01:10 +01:00
Nicolas Fella
b19543b56a Remove leftover gstreamer bits
We don't use gstreamer for torch access any more and it's unclear whether a future solution will.

Remove some leftover bits
2020-11-12 08:17:59 +00:00
Marco Martin
791c76f327 remove wrong height binding 2020-11-11 16:34:13 +01:00
Marco Martin
e7f82ab394 fix top panel sliding in vertical mode
encapsulate in an Item to force the proper implicitHeight, so
the top panel slide works on vertical screen also before it has been
rpotated to horizontal and back
2020-11-11 16:25:41 +01:00
Nicolas Fella
2fab1b0dd1 Add comment that torch path is hardcoded for now 2020-11-11 13:52:19 +01:00