Commit Graph

222 Commits

Author SHA1 Message Date
John Preston 152661dcea Use global Fn+F shortcut for toggle fullscreen on macOS. 2023-03-15 16:39:13 +04:00
John Preston aa9e56c633 Update icon on macOS, allow changing back. 2023-03-01 09:12:02 +04:00
John Preston ce0e07d332 Implement "Save Power on Low Battery" function. 2023-03-01 09:12:02 +04:00
Ilya Fedin 808cf119b8 Switch freetype to experimental settings 2023-02-22 16:51:13 +04:00
John Preston 137c13c9c0 Don't steal window focus to viewer on another screen. 2023-02-18 15:16:06 +04:00
John Preston 27d446bdda Improve Ctrl+W / Ctrl+M handling by media viewer. 2023-02-18 15:10:13 +04:00
John Preston f9847090f9 Cmd+Q quit prevention in windowed media viewer. 2023-02-18 15:10:13 +04:00
John Preston 7a5c9a6fb8 First version of windowed media viewer on Windows. 2023-02-18 15:10:13 +04:00
John Preston 7557a20679 Close PiP when a passcode lock is enabled. 2023-02-15 10:47:10 +04:00
John Preston 0bdd0689c0 Create tray / mediaview queued on macOS.
This removes some strange redundant entries like "Item-0" from the Dock menu.
2023-02-06 13:34:03 +04:00
John Preston c737e2f91b Track window activation history. 2023-02-03 20:48:12 +04:00
John Preston 94b489835c Add chat name / account name / unread count title settings. 2023-02-03 17:51:47 +04:00
John Preston be71139515 Add "Translate Entire Chat" button to Settings. 2023-02-02 22:12:32 +04:00
John Preston 0495cf4187 Use better initial geometry for new windows. 2023-02-02 20:20:05 +04:00
John Preston 5278ed1f41 Fix account activation after window closing. 2023-02-02 10:55:04 +04:00
Ilya Fedin 2be4641496 Install launcher on every launch on Linux
Just like AppUserModelId on Windows

This makes the cheat code and having the function outside of private namespace unnecessary
2023-01-23 12:16:59 +04:00
John Preston ec3957fcf3 Active round video moving to active window. 2023-01-19 11:42:00 +04:00
John Preston 0f234188e1 Fix crash in SystemMediaControls init. 2023-01-19 09:57:33 +04:00
John Preston cdfdccbb66 Detach SystemMediaControls from Window::Controller. 2023-01-19 09:46:20 +04:00
John Preston ba520aadcb Fix hashtags in separate windows. 2023-01-19 09:46:19 +04:00
John Preston 3e332ad8e7 Rewrite shortcuts using QAction.
That way they don't depend on the main window.
2023-01-19 09:46:19 +04:00
John Preston 7023b013ce Initial support of separate windows for accounts. 2023-01-19 09:45:28 +04:00
Ilya Fedin 95979b1ad9 Call scheme handler registration after opening main window
To avoid system dialog being under it
2023-01-19 08:33:45 +04:00
Ilya Fedin 7307f0b1a5 Use temp directory for downloads in Linux sandbox by default 2023-01-09 16:09:57 +04:00
Ilya Fedin 0eec470387 Hide default download folder option if it's not available 2022-12-29 14:18:08 +04:00
Ilya Fedin 66093f0cb5 cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
2022-12-28 10:28:12 +04:00
John Preston e878ccccb4 Fix crash in sending media with spoilers. 2022-12-27 11:48:54 +04:00
23rd f8a17bd9c9 Moved tmp string for temporary folder to single place. 2022-11-30 17:17:16 +03:00
23rd 4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
John Preston ad3f8e72a0 Remove namespace App. 2022-11-30 17:28:09 +04:00
John Preston 01139e1b04 Remove facades module. 2022-11-30 16:55:51 +04:00
John Preston 5d8a2bc7b7 Implement simple sub-column for topics list. 2022-11-30 13:03:42 +04:00
23rd 2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
Ilya Fedin 54a0f443b4 Better check for download path availability in sandbox 2022-11-28 12:16:57 +01:00
Ilya Fedin b383dad6ac Install launcher before registering URL scheme 2022-11-28 12:12:09 +01:00
Ilya Fedin 2f0d14bd35 Use customWorkingDir() outside of Core::Launcher
This allows to add -workdir to shortcuts only if the process was launched with -workdir
2022-11-21 21:30:17 +00:00
John Preston 644ec1f599 Remove base::Observable / base::Variable. 2022-11-11 11:43:24 +04:00
John Preston 092923fe6e Don't autodownload files if sandbox prevents it.
Partially fixes #25308.
2022-11-08 18:26:02 +04:00
John Preston 7cdf20a7c5 Allow topic deletion. 2022-11-01 19:25:40 +04:00
John Preston df5602d203 Support topic icon display in topic profile. 2022-11-01 19:25:40 +04:00
John Preston ead427793b Handle forum / topic links. 2022-11-01 19:25:38 +04:00
John Preston 6695eda1be Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
Ilya Fedin 7b5781b845 Use default-constructed QLocale for date/time/whatever else formatting
Qt 6 chenged the QDateTime API to use QLocale::c() rather than QLocale::system(), using default-constructed QLocale will make this consistent and overradable application-wide

Other formating use-cases as QLocale::decimalPoint use default-constructed QLocale now, too
2022-10-17 08:33:22 +04:00
John Preston aa674a0ea5 Fix UB in closing chat across all windows. 2022-09-23 23:32:21 +04:00
John Preston 749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston a919978a37 Use spoiler animation for ExtendedMedia. 2022-09-12 09:06:26 +04:00
Ilya Fedin 5fc7caeec9 Provide old version to Platform::NewVersionLaunched 2022-09-01 13:53:53 +04:00
John Preston aa484ac015 Fix crash on launch with passcode. 2022-06-15 14:49:06 +04:00
23rd fe7cffc509 Improved management of online status from non-primary windows.
– The online status of the user should be checked and updated only
when the previous active window and the current active window both have
different sessions.
– Removed MainWindow::activeChangedHook since windows should not
change online status on their own on activating.
– Renamed Application::maybeActiveSession
to Application::maybePrimarySession.
– Added updating of online status on changing of the current account
since this seems to have been missed.
2022-06-12 16:07:41 +03:00
23rd 1d475ee727 Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00