Commit graph

220 commits

Author SHA1 Message Date
Reilly Brogan
c9f1a449d8
linux: Use kirigami mouse handling if available
Qt6 changed the mouse scroll wheel handling for QtQuick to a type that mimics how touch pads/screens work, which most people find feels very poor. KDE fixes this by creating a custom type which re-implements the QtWidgets handling (see https://invent.kde.org/frameworks/kirigami/-/merge_requests/415).

On Matrix Nico has expressed a desire not to have to deal with compiling Kirigami for Windows and Mac, which is understandable. Linux users on the other hand almost always have kirigami available in their package repos which sidesteps that particular issue. We can search for Kirigami at build time and if present define a QML context property to allow it to be used, which should fix this issue for Linux users at least.

Helps with nheko-reborn/nheko#1819 (which won't be completely resolved until this is working for Windows and Mac as well).

Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
2024-11-05 15:37:54 -06:00
Nicolas Werner
65c6e96e24
Get rid of platform dialogs/menus now that Qt6.8 supports native menus without them
This will look bad on some platforms and older versions for now, but
should fix a lot of crashes and we can report the rest as bugs.
2024-10-08 23:04:41 +02:00
Nicolas Werner
c1038a3e4a
Warn about room name and topic not being encrypted 2024-08-17 00:46:01 +02:00
Nicolas Werner
cb74fe6ede
Prefill status message dialog with current status 2024-06-14 21:26:38 +02:00
Brayd
70eabc3276
Fix room settings being cut off 2024-04-19 22:31:37 +02:00
Nicolas Werner
d2009428b6
workaround broken platform dialogs on macos
See https://bugreports.qt.io/browse/QTBUG-102078
2024-03-14 01:01:12 +01:00
Nicolas Werner
7c2a152cfb
Add support for intentional mentions
This is still a bit flaky around when to remove a mention, but it should
work in most cases. Might add a toggle in the future to disable these
though.
2024-03-08 18:45:18 +01:00
Nicolas Werner
8f700e1210
Remove debug label 2024-03-06 20:54:28 +01:00
Nicolas Werner
05e36dd007
Make image in overlay fit into viewer again 2024-03-06 20:52:58 +01:00
Nicolas Werner
c9bcf3a7c0
Prevent big images from becoming square in overlay 2024-03-05 21:28:48 +01:00
q234rty
7b07548b77
HiDPI Fixes
Fix various downscaled icons by removing undeeded multiplications by devicePixelRatio in sourceSize.

Fix downscaled PL indicator in the timeline by using the actual size as sourceSize.

Fix various blurry icons by specifying sourceSize.
2024-02-16 16:57:31 +08:00
Joseph Donofry
373fb49903
Fix some keyboard shortcuts on macOS that involved arrow keys 2024-01-09 20:53:22 -05:00
FallenValkyrie
c254697eaa
move destroyOnClose into ImagePackSettingsDialog 2023-12-19 16:33:54 +01:00
FallenValkyrie
c605fb6ca8
make ImagePackDialog text translatable 2023-12-16 15:48:11 +01:00
FallenValkyrie
b91c70a8ea
Fix review issues 2023-12-16 15:48:11 +01:00
FallenValkyrie
adc7fb8655
remove unnecessary destryoOnClose 2023-12-16 15:48:11 +01:00
FallenValkyrie
2aefe78a63
Integrate ImagePackDeleteDialog in ImagePackSettingsDialog as delete confirmation 2023-12-16 15:48:11 +01:00
FallenValkyrie
e3fe1703fa
Create ImagePackDeleteDialog component 2023-12-16 15:48:11 +01:00
Nicolas Werner
6fef6ad5f1
Enable even more qml linter warnings 2023-10-26 21:48:55 +02:00
Nicolas Werner
2b1c9af311
More qml cleanups 2023-10-26 20:52:18 +02:00
DeepBlueV7.X
1512810303
Merge pull request #1539 from Nheko-Reborn/issue1410
Add report message functionality
2023-10-26 09:57:47 +02:00
Loren Burkholder
bb971b0575
Add report message functionality 2023-10-25 22:24:40 -04:00
Nicolas Werner
904d3f257a
Fix some qml warnings 2023-10-26 02:31:31 +02:00
NepNep21
ad68cd8b4c
Switch to X icon and add close button 2023-10-25 19:38:04 -03:00
NepNep21
0b28e7934d
Move dialog to settings page and add avatar image to delegate 2023-10-24 19:46:04 -03:00
Nicolas Werner
a0a49b6c2a
Cleanup ignore user functionality slightly 2023-10-24 01:12:01 +02:00
Nicolas Werner
fce026725e
Merge branch 'ignore-users' of github.com:NepNep21/nheko into ignore-users 2023-10-23 23:58:53 +02:00
Nicolas Werner
78fac7dced
Small qml fixes 2023-10-18 22:43:45 +02:00
NepNep21
7c9fed91b8
Fix license lint... 2023-10-01 22:52:40 -03:00
NepNep21
4eaba191de
Use properties 2023-10-01 22:52:40 -03:00
NepNep21
6a6384babe
Move comments to proper reviews 2023-10-01 22:52:40 -03:00
NepNep21
563bb0a651
UI improvements 2023-10-01 22:52:39 -03:00
NepNep21
d1ba9fd878
Rebase 2023-10-01 22:52:31 -03:00
DeepBlueV7.X
c3fd4026ab
Merge pull request #1571 from Nheko-Reborn/directory
Add close button and room open button to room directory dialog
2023-10-01 12:58:31 +00:00
DeepBlueV7.X
e9104f8c69
Merge pull request #1534 from Nheko-Reborn/issue1494
Use @user:example.com for all sample mxids
2023-10-01 12:57:03 +00:00
Loren Burkholder
879ef31fcf
Qt 6.4 properly supports scrolling text with touch 2023-09-30 10:26:45 -04:00
Loren Burkholder
b6f71a8bc2 Add close button and room open button to room directory dialog 2023-09-29 22:49:45 -04:00
Loren Burkholder
6b41c77dad
Use @user:example.com for all sample mxids 2023-09-23 21:57:05 -04:00
DeepBlueV7.X
70ede75aa5
Merge pull request #1535 from Nheko-Reborn/powerlevelsInTimeline
Show an indicator in the timeline for mods and admins
2023-08-10 08:19:32 +00:00
Loren Burkholder
1c867dbbc2 Show an indicator in the timeline for mods and admins 2023-07-23 20:18:30 -04:00
Loren Burkholder
0634d3f09c QML the fallback auth dialog 2023-07-14 13:16:43 -04:00
DeepBlueV7.X
8112922c5f
Merge pull request #1501 from Nheko-Reborn/qmlRecaptcha
QML the reCAPTCHA dialog
2023-07-06 18:53:03 +00:00
Nicolas Werner
1abb52700a
Add an early out cache for event expiration 2023-07-06 20:51:04 +02:00
Loren Burkholder
fedc178827 Port the reCAPTCHA dialog to QML 2023-07-06 08:35:37 -04:00
Nicolas Werner
ad6e4fef64
Add experimental event expiration
Currently disabled by default.
2023-07-05 00:08:37 +02:00
Nicolas Werner
28445bd469
Rework how history settings are represented 2023-06-28 17:07:49 +02:00
Nicolas Werner
fa653bc078
Allow viewing and changing the history visibility 2023-06-24 01:04:54 +02:00
Nicolas Werner
ce1a64bc19
Move to automatic type registration 2023-06-19 01:38:40 +02:00
Nicolas Werner
16960e2900
Fix scrolling in image dialog 2023-06-09 02:40:50 +02:00
Nicolas Werner
b1c2b384c6
Fix username label eliding loop 2023-06-08 22:32:10 +02:00