Commit graph

578 commits

Author SHA1 Message Date
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
Devin Lin
9854558a1b Fix panel icon sizing
Ensure integer pixel margins
2021-03-05 18:50:48 -05:00
Marco Martin
66f13653ae remove code pushed by mistake 2021-03-05 14:37:17 +01:00
Marco Martin
5814fd9696 apporder reflects favorites
keep in sync the first items of apporder which will always be favorites.

this should fix the favorites spontaeous reordering that sometimes
happen
2021-03-05 14:37:17 +01:00
Devin Lin
b81d29d2c2 Change task panel down icon to symbolic 2021-03-04 18:44:07 -05:00
Aleix Pol
13f21bf23b Port to use IconItem again 2021-03-04 15:54:56 +00:00
Aleix Pol
31fceb18f8 Prioritise hiding the virtual keyboard
Now that the virtual keyboard appears right over the panel, change the
close window button to a hide button. When the virtual keyboard is
hidden, now you get the big X to close.
2021-03-04 15:54:56 +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
7a740a2f5d Tweak app drawer behavior
- Only trigger the app drawer open/close animation if the flick goes over an eighth of the screen so that small flicks do not trigger it
- Adjust easing curve to be OutQuad so that fast flicks don't feel slow (have to slow to a stop, and then animation triggers)
- Increase animation duration to account for OutQuad curve
- Animate opacity of application icons as the app drawer comes in and out
2021-02-22 16:08:43 +00:00
Marco Martin
40f6abd78e enable the drag handler only when the containment has focus
this way it doesn't steal events anymore from the widget explorer
2021-02-22 14:59:15 +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
Marco Martin
ed91354960 respect max favorite count when dropping 2021-02-16 13:37:50 +01:00
Marco Martin
00d63af2da More familiar behavior for the App Drawer
This makes the behavior of the app drawer a bit more familiar and
slightly more similar to Android for now:

* The drawer always contains every application
* Applications are always alphabetically ordered
* The drawer opens completely, not staying stuck in "in between" states
* is possible to drag more copies of a single app on the homescreen/favorites
* possible to remove an icon from the homescreen or favorites

Two things have been prepared in there (but are material for 5.22 only,
so not finished)

* Things have been reordered such in a way that makes easy for most of
the qml files to become components to make easy for people to build
their own customized homescreen
* basic infrastructure is there to allow for multiple horizontal pages
scroll, though not implemented yet as needs changes to plasma-workspace
layouting code beforehand
2021-02-15 16:25:39 +05:30
Yuri Chornoivan
cd4675b33e Add i18n() 2021-02-10 19:00:51 +02:00
Marco Martin
4458d7355e delay scroll reset after launch 2021-02-03 17:19:53 +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
Aleix Pol
3ca6a2d395 thumbnail: don't request the window stream until we first need it
This way we don't add more pressure upon application startup time. It
doesn't seem noticeable when showing the windows overview.
2020-12-10 03:49:35 +01:00
Aleix Pol
b7c508beb7 thumbnail: only keep the stream active if the window is shown
It does not make much sense to render the thumbnail when hidden,
especially on lower end devices like the pine.
2020-12-10 03:37:29 +01: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
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
Nicolas Fella
2cc612a3a6 Fix volume button handling
main is not defined
2020-11-08 22:45:59 +01:00
l10n daemon script
44f04e5c56 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-11-08 06:24:01 +01:00
Jonah Brüchert
a9fab248d3
Fix launching settings modules 2020-11-06 09:06:50 +01:00
Tobias Fella
fae8ac9969 Improve the signal strength indicator
Show 'Sim locked' instead of '0%' when Sim is locked
Don't show the percentage at all, it's redundant
2020-11-05 08:24:02 +00:00
l10n daemon script
4a6fdab931 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-11-05 06:37:15 +01:00
Bhushan Shah
da47c3d10c Remove confusing entry from config which dumps the application list 2020-11-02 12:52:56 +05:30
Marco Martin
00103f57d8 icon in front of the thumbnail 2020-10-26 14:51:25 +01:00
Marco Martin
419a5ec08c fix thumbnails 2020-10-26 14:35:37 +01:00
Devin Lin
d6dd1c1356 Task panel visual improvements 2020-10-24 16:46:45 +00:00
Nicolas Fella
4aee5533b3 Add quicksettings item for bluetooth
Now that we have bluetooth support add an item for it
2020-10-22 16:25:13 +02:00