Commit graph

146 commits

Author SHA1 Message Date
Albert Vaca Cintora
af4ce1c33c Show pairing keys everywhere and always shorten to 8 chars
The previous key was 64 freakin characters long which made it more prone
to being ignored, and thus less secure.
2024-05-18 20:26:48 +00:00
Nicolas Fella
def024eb6c Fewer bananas 2024-05-01 17:27:34 +00:00
Aleix Pol
a0d93fa537 Make sure we are not using deprecated APIs
Bumps the deprecation values in line with the APIs we depend on.
2024-04-27 17:47:29 +02:00
Albert Vaca Cintora
799e00d252 Improve accessibility based on HAN university accessibility report
Unfortunately, most issues are in Kirigami and we can't fix them from our side. Namely, these things remain unfixed: 
- `Kirigami.PlaceholderMessage` are not read by screen readers
- When navigating with the keyboard, pressing tab selects elements from right to left, which is weird
- When navigating with the keyboard, the selected element is not highlighted
- `Kirigami.Action` that don't have a `text` property don't use the `Accessible.name` property when using a screen reader.
2024-03-12 14:26:37 +00:00
Aleix Pol
e0a64f4a30 app: Put the Placeholder inside the view
If there's more than one main item in the ScrollablePage, QtQuick gets
confused and the placeholder does not get displayed.
2024-03-06 21:58:04 +00:00
Nicolas Fella
3f97274b4a Fix loading settings 2024-01-10 23:21:31 +01:00
Nicolas Fella
42ce4764d2 [app] Fix plugin list
Filter out not loaded plugins

Fix loading the plugin components
2024-01-09 23:14:26 +01:00
Jonah Brüchert
aa09d338ee Improve display of devices in the drawer
BUG: 474453
2024-01-09 21:38:35 +00:00
Nicolas Fella
e6383a47ca Fix start dir for file dialog 2023-12-25 15:56:13 +00:00
Nicolas Fella
69a1d5ec6b Port to ecm_add_qml_module 2023-12-25 15:56:13 +00:00
Nicolas Fella
27afd0eb9a [app] Undo Qt5 compatibility hacks and fix QML code 2023-12-25 15:56:13 +00:00
Nicolas Fella
37ff0b5318 [app] Remove QML import versions
Those are not needed in Qt6 and only get in the way
2023-12-25 15:56:13 +00:00
Nicolas Fella
dd88056693 [app] Fix ListSectionHeader width 2023-12-25 15:56:03 +00:00
Nicolas Fella
7fcafdf12e Port away from Kirigami BasicListItem
It doesn't exist any more in KF6
2023-12-23 16:34:47 +00:00
ivan tkachenko
5db4263af6
Port implicit default content items to use contentItem: property
See also
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1338
and
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1340
2023-11-09 00:06:14 +03:00
Carl Schwan
85897fcdc3 Port to FormCard
This is the successor for MobileForm
2023-09-15 16:10:47 +00:00
Karthik Nishanth
9e53696e35 Close the overlay drawer when window width is reduced
Previously when the window width was reduced, the overlay drawer
was still visible except it was hidden behind the main view.

Taking inspiration from the binding in OverlayDrawer.qml source,
I set up a callback to match it closely. Now, it closes the
drawer when the window is resized.

Note: Both before and after this commit, there is a warning when
one collapses the window width.

> QQuickItem::stackBefore: Cannot stack
> QQuickRectangle(0x55b4746513d0, parent=0x55b4744a4750,
> geometry=0,0 0x0) before QQuickPopupItem(0x55b4747871c0),
> which must be a sibling
2023-09-11 13:11:03 +00:00
Karthik Nishanth
f42bb35346 Fix undefined property accesses
Adds a check for root.currentDevice before accessing its properties
2023-09-11 13:11:03 +00:00
Alexander Lohnau
eabb280d9c Fix runcommand page not being able to be displayed in Qt6 2023-07-25 18:29:38 +02:00
Alexander Lohnau
6d1a7c613b Fix PluginInfoPage not being able to be displayed in Qt6 2023-07-25 18:29:38 +02:00
Albert Astals Cid
4fa2e93246 Improve/change "Pair" i18n messages 2023-07-22 18:05:25 +00:00
Alexander Lohnau
f57d59e605 Fix runtime issues with Qt6
To have the code bits reusable, they are defined as cmake variables.
In order to make the relative paths work and avoid touching every line
from the QRC, the resulting file is put into the source dir.
2023-07-20 13:32:07 +03:00
Albert Vaca Cintora
0c1e0df5ae Do not use toLocaleTimeString to convert ms to hh:mm:ss format
The current code didn't seem to work on all locales
2023-06-29 08:28:25 +00:00
Albert Vaca Cintora
2e0550651e Remove mpris "nowPlaying" field
We've had separate title & artist for a while, and all clients should be
using those by now.

Also fixes the position change not being emitted when the song changes,
and fixes the values being written after emitting that they changed.
2023-06-08 21:58:58 +00:00
Albert Vaca Cintora
144a60b58a Allow disabling clipboard auto-share and add option to share manually
Continues the work started in !396 by rebasing it onto latest master and
making the "send clipboard" button from the plasmoid invisible when
automatic syncing is enabled.
    
I didn't find a way to do the same in kdeconnect-indicator and
kdeconnect-app (why do we have 3 UIs???), so in those we always show the
option for now.
2023-06-07 19:48:25 +00:00
Albert Vaca Cintora
f138a0f07a Add a spinner to the app when pairing is requested 2023-06-02 16:38:52 +00:00
Albert Vaca Cintora
064ddfa3fe Refactor PairingHandler
We now have a single PairingHandler for all types of links.

The implementation now is more aligned with the one for Android.
2023-06-02 16:38:52 +00:00
Aleix Pol
6bd8bebad9 mousepad: Provide an out for touchpad users
At least my touchpad cannot have left and right buttons at the same time.
This makes it possible to exit at least using the keyboard.
2023-05-12 15:48:25 +02:00
Aleix Pol
9266556510 mousepad: Implement relative mouse movements
Somehow it wasn't done.
2023-05-12 15:48:25 +02:00
Carl Schwan
e682304747 Add title and icon to setting
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
f12aa5d88f Fix qml warning
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
b55013f57a Improve coding style
- Use latest QQC2 import
- Remove curvy brance from single statement block

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
cd0db29609 Use custom sidebar implementation
It has nicer default width

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
d74737a1e4 Fix setting page sometimes not visible when clicking on it
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
b930114eb0 Add setting page and expose about data info
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
ivan tkachenko
4b6caf9af4
Port away from deprecated QML features 2022-09-21 01:14:37 +03:00
Nicolas Fella
bb5ab942b7 [app] Fix reading device name 2022-06-23 11:49:22 +02:00
Piyush Aggarwal
3e1e9f4410 improve mouse lock behaviour and info label text 2021-08-09 03:00:40 +05:30
Aleix Pol
cf8ada2b5d app: make it possible to lock the mouse when using the remote input
It makes it possible to use normal touchpads and mice
2021-07-30 23:25:30 +00:00
Piyush Aggarwal
91c05d0f17 mousepad: add drag support and better click registration 2021-07-16 01:49:49 +05:30
Piyush Aggarwal
85aee29545 app->mousepad.qml: add support for remote click, wheel scroll 2021-07-15 08:18:11 +05:30
Piyush Aggarwal
6c4ba39653 remotecontrolplugin: change sendCommand function params to allow support for scroll 2021-07-15 08:18:07 +05:30
Bharadwaj Raju
036704e161 Fix text color in Plugin Settings
Remove references to nonexistent "listItem" for getting color
2021-05-11 09:53:43 +05:30
Nicolas Fella
645bf381c4 Add missing license headers
I'm the sole author of these files
2021-02-27 20:04:47 +01:00
Nicolas Fella
40c155f990 [app/mpris] Fix displaying times > 2h
We need to apply the correction for all hours >= 1, not just 1
2021-02-07 15:39:03 +00:00
Nicolas Fella
473b1f07c3 [app] Improve plugin config delegates
Add description and make them more consistent with other list items in
KDE.
2020-11-16 12:21:47 +00:00
Nicolas Fella
753b1a2b0c Constify variable 2020-11-16 12:21:47 +00:00
Bharadwaj Raju
cb51cb4adf Fix bug with use of drawer hiding when not wideScreen
Make drawer reappear when resized from narrow to wide screen if drawer
was closed in narrow mode.
2020-09-25 17:42:22 +05:30
Carl Schwan
5d9dad3d7e Remove hack introduced by previous commit
Instead of hardcoding font size, use default font size, this makes the
height of the Heading normal and don't overflow.
2020-09-19 14:59:35 +02:00
Carl Schwan
21f0227e06 Use Kirigami header in sidebar 2020-09-19 12:51:11 +00:00