Commit Graph

344 Commits

Author SHA1 Message Date
James Graham
db5e328869 Add automatic room sidebar hiding option
Add menu option to change whether the room information drawer is opened automatically or not. This also adds some code to switch off the dim effect during the first animation after modal is changed as this looked bad.

Implements network/neochat#243

Slight cleanup removing the edge option for context drawer from main.qml as this is duplicated from RoomDrawer.qml
2022-06-01 20:09:47 +00:00
Felipe Kinoshita
6ac6234886 Give settings window a title
Now the settings window title is "Configure ─ NeoChat" instead of
"Neochat <2>".
2022-01-21 21:42:46 +00:00
Devin Lin
fc9e4fc961 Reduce minimum height of the window
Reduce the minimum height of the window so that it doesn't go off the screen when on mobile landscape (Pinephone)
2022-01-18 23:56:57 +00:00
Jack Hill
aeee367e82 Changed "Settings" to "Configure NeoChat" in menu
Changed both the hamburger menu and the global menu
Fix #489
2021-12-28 16:51:30 +00:00
Carl Schwan
8a70e240e4 Improve toolbar on mobile
* Use Toolbar style with only back button when needed
* Don't show context drawer on room list

![image](/uploads/681f11e7d1a340a1b6a834df2b32960a/image.png)

![image](/uploads/564a91df531e7de363743efd4915b2e8/image.png)
2021-12-28 15:00:30 +00:00
Carl Schwan
e79e06235f Fix QuickSwitcher activation
By making sure the global menu bar is disabled when not needed. This
should also help with memory usage.

Fix #482
2021-12-25 14:41:43 +01:00
Aleix Pol
284a1734ae Support raising when we receive a notification 2021-12-15 15:08:32 +00:00
Fushan Wen
59430cce89 Add support for minimizing to system tray on startup
If the user wants to automatically launch NeoChat when the system
starts up, the user may also want to minimize the window to system tray
on startup. So a new option named "Minimize to system tray on startup"
is added.

The option is only visible on desktop platforms, and is only enabled
when "Close to system tray" is checked.

In order to restore window geometry for the first time the user opens
the window if the option is checked,

1. a new function named `restoreWindowGeometry` is added, and
   `restoreWindowGeometryConnections` will be enabled if the option is
   checked, and will be disabled after the window debuts.
2. `saveWindowGeometryConnections` will be enabled if the option is not
   checked, and will be disabled if checked and enabled after the window
   debuts.
2021-12-13 22:05:20 +08:00
Tobias Fella
0a19d42799 Improve handling of closed keychain 2021-11-13 22:18:53 +00:00
Tobias Fella
8089e5bdfa Fix pagestack after login after logout 2021-11-12 16:21:48 +01:00
Tobias Fella
d494eb1c63 Use Quotient's accountregistry 2021-11-01 19:36:39 +00:00
Carl Schwan
6c3ae87340 Support resizing right drawer
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-21 23:04:52 +02:00
Carl Schwan
fc9f37d4a4 Port global settings to Kirigami.CategorizedSettings 2021-10-21 19:38:03 +00:00
Carl Schwan
d42ad85b30 Port to OverlaySheet.title 2021-10-16 17:44:42 +02:00
Tobias Fella
1e78c6caa4 Fix opening rooms 2021-10-10 12:40:39 +02:00
Tobias Fella
5bf0aa7a68 Make QML more declarative 2021-10-02 16:34:31 +00:00
Carl Schwan
c105642e4c Don't load twice the room list when adding another account
Just check if the room list is not yet loaded before loading it

Fix #444
2021-10-02 14:34:39 +00:00
Carl Schwan
00ecb4703e Make sure the right sidebar width is not considered when no room is open
Fix #460
2021-10-02 14:33:52 +00:00
Tobias Fella
3977aee4ba Remove usage of Kirigami.Units.devicePixelRatio
It's deprecated and as far as i can tell it doesn't really do anything
since it is always set to 1
2021-10-02 14:33:27 +00:00
Tobias Fella
886ee1f5b6 Refactor startup 2021-09-29 22:38:45 +02:00
Devin Lin
8118068fb5 Move mobile sidebar handles to top 2021-09-17 15:52:40 +00:00
Aleix Pol
265fcbfead Fix wayland activation
Adds support for xdg_activation_v1 when calling the application from the
system tray by using KStatusNotifier which supports it.
Listens to XDG_ACTIVATION_TOKEN as it's passed when we are started from
dbus.
2021-09-07 11:27:13 +00:00
Tom Z
2ccde21896 On showWindow, also raise 2021-08-23 21:42:42 +00:00
Devin Lin
592d3160df Add translucency slider and set default to 30%
Apply 1 suggestion(s) to 1 file(s)
Fix
2021-07-27 13:34:15 -04:00
Tobias Fella
35aac4e362 Port away from implicitely defined onFoo properties 2021-07-07 22:09:36 +02:00
Jan Blackquill
537416354a feat: global menu
This adds a global menu to NeoChat, providing
a standard and consistent set of File/Edit/View/so on
menus.
2021-07-02 09:16:31 +00:00
Carl Schwan
d7345ee4e6 Unify look of scrolling setting page
* Add frame on desktop
* Remove frame on mobile
* Use actions.main when needed on mobile
* Don't push a new setting page on mobile
2021-06-17 13:05:16 +02:00
Carl Schwan
a086964769 Make sidebar collapsible 2021-06-14 12:50:09 +00:00
Carl Schwan
efb70287b9 Add setting page 2021-06-07 11:49:35 +02:00
Jan Blackquill
ce15a8d697 Add quick switcher 2021-06-04 00:02:00 +00:00
Carl Schwan
7cd9f788dd pushReplace more 2021-05-28 13:14:53 +02:00
Carl Schwan
873ab328dc Move room management from Controller to RoomManager 2021-05-08 01:17:19 +02:00
Carl Schwan
afa7b822f9 Fix opening room not working after the first time you log in 2021-05-08 01:03:51 +02:00
Carl Schwan
173d8075ad Show link on hover
Fix #279
2021-05-07 04:18:50 +02:00
Carl Schwan
8314e19cb1 Fix bugs in multi account setups 2021-05-07 03:03:09 +02:00
Carl Schwan
1e7d3046aa Remove link confirmation dialog
Fix #347
Fix #348
2021-05-07 01:55:08 +02:00
Carl Schwan
a329790129 Fix inverted condition 2021-05-05 23:24:25 +02:00
Carl Schwan
f30b17bf73 Fix opening room in seperate window and unify leaving room code 2021-04-28 15:06:57 +02:00
Carl Schwan
b7d98fc6d9 Port RoomManager to C++
This also makes it possible to handle the Matrix URI
2021-04-27 21:07:10 +00:00
Tobias Fella
89056ed6c1 Move the ActionsHandler instance to the RoomPage
This is required since when using a RoomWindow, the ActionsHandler from the RoomManager is used, which means that the wrong room is used.
2021-04-17 20:47:01 +00:00
Tobias Fella
00681a8abe Refactor error handling and move unrelated functions out of ActionsHandler 2021-04-16 10:07:10 +00:00
Tobias Fella
becb3a1870 Remove dead connection 2021-04-08 12:47:51 +02:00
Tobias Fella
d170cc5161 Cleanup QML imports and license headers
- Group the imports into Qt, KDE, NeoChat
- Import the latest versions
- Remove unused imports
- Remove unused components
- Unify license header styling
2021-04-07 19:38:40 +00:00
Nicolas Fella
361605df71 Consistently use NeoChat instead of Neochat 2021-03-19 08:05:09 +00:00
Carl Schwan
612fb4924e Start implementing bubbles 2021-03-06 20:19:41 +00:00
Tobias Fella
91ef8806f2 Show contextdrawer only in RoomPage 2021-02-17 20:16:38 +00:00
Tobias Fella
b689e55068 Refactor and cleanup dead qml 2021-02-07 22:34:07 +01:00
Tobias Fella
464c48540e Improve first-run UX
- Replace LoginPage with step-by-step approach to support different login flows
- Implement login using SSO
2021-02-07 21:23:31 +00:00
Carl Schwan
6dcfad1f8d Don't show login page when starting NeoChat
This was caused by us calling initiated to early. Only do it when no
accounts exists or that at least one account fails to login.

Fix #248
2021-02-06 00:16:30 +00:00
Carl Schwan
10054bf879 Fix RoomDrawer is visible when no room is open
Fix #246
2021-02-06 00:03:10 +01:00