John Preston
fc2f41096f
Attempt to fix initial window position on Windows.
2024-01-16 11:18:55 +04:00
23rd
4ad51ffb42
Removed some include directives.
2023-11-28 21:55:26 +04:00
23rd
909f3bf011
Added "new-windows-size-as-first" option.
2023-11-28 21:55:25 +04:00
Ilya Fedin
590be6d6e7
Fix CounterLayerArgs devicePixelRatio order
2023-04-05 10:17:22 +04:00
Ilya Fedin
8dee2a1c8b
Set device pixel ratio for counter layer
2023-04-04 10:07:51 +04:00
John Preston
58c5bb7247
Update online after the window active status.
...
I hope this fixes #26059 .
2023-03-21 16:23:38 +04:00
John Preston
aa9e56c633
Update icon on macOS, allow changing back.
2023-03-01 09:12:02 +04:00
John Preston
832d47121f
Save media viewer position to Settings.
2023-02-18 15:10:13 +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
0495cf4187
Use better initial geometry for new windows.
2023-02-02 20:20:05 +04:00
John Preston
fc26457218
Show current chat name in the window title.
2023-01-09 18:39:07 +04:00
23rd
cc0b1b1d54
Added option for chat names in titles of single peer windows.
2022-12-06 12:56:56 +03: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
John Preston
a780fbd09b
Add "ctrl-click-chat-new-window" option.
2022-06-07 22:05:37 +04:00
23rd
0e16a50bbc
Completely removed common and platform code for tray from main window.
2022-05-03 04:25:36 +03:00
John Preston
28f2c213f7
Remove app module. Support delayed quit by Cmd+Q on macOS.
2022-01-27 15:54:20 +03:00
John Preston
07f72c20eb
Change application icon only in support mode.
...
Fixes #23895 .
2022-01-22 16:40:57 +03:00
John Preston
8b0725650d
Move global event filter to Platform::Integration on Windows.
2022-01-04 15:29:40 +03:00
John Preston
be7cd51740
Start scrollable CalendarBox.
2021-11-26 18:00:19 +04:00
Ilya Fedin
936d4004ff
Update controls geometry in MainWindow according to body changes
2021-11-10 19:30:29 +04:00
John Preston
aef45b3a1d
Refactor icon unread counter painting.
2021-11-02 20:12:57 +04:00
John Preston
1dec054766
Check if native window frame fits for saved geometry.
2021-08-10 15:46:18 +03:00
Ilya Fedin
1ebf27bfa1
Switch MainWindow to Ui::RpWindow
2021-07-28 18:05:39 +03:00
John Preston
4276b6cce0
Use rpl for Window::Theme::Background updates.
2021-07-15 16:42:36 +03:00
John Preston
e1120d1cb5
Optimize out most of LastUserInputTime() calls.
...
Fixes #16118 .
2021-06-18 19:22:36 +04:00
23rd
707b36dc12
Moved DBIWorkMode to Core::Settings.
2021-06-16 09:31:32 +03:00
23rd
9e6afa0d4e
Removed observable dragFinished from MainWindow.
2021-06-16 09:31:32 +03:00
John Preston
54f06740d5
Remove some App::wnd() calls.
2021-03-03 11:29:26 +04:00
Ilya Fedin
1a3253ae8b
Implement three items tray menu on Linux
2021-02-23 17:14:57 +04:00
John Preston
40e90af76d
Detect tablet mode on Windows 10.
2021-01-25 16:47:41 +04:00
John Preston
574d915c23
Fix build and tray icon menu on Windows.
2021-01-22 16:53:59 +04:00
Ilya Fedin
4c2779bbaf
Fix saving maximized state on Linux
2020-09-29 18:25:57 +03:00
Ilya Fedin
ea8e256a23
Revert "Revert "Add main window shadow for Linux""
...
This reverts commit b7f5cfe083
.
2020-08-30 17:00:43 +04:00
John Preston
b7f5cfe083
Revert "Add main window shadow for Linux"
...
This reverts commit d02092f09e
.
Conflicts:
Telegram/SourceFiles/mainwindow.cpp
Telegram/SourceFiles/platform/linux/specific_linux.cpp
Telegram/SourceFiles/window/main_window.cpp
2020-08-23 16:38:49 +04:00
Ilya Fedin
d02092f09e
Add main window shadow for Linux
2020-08-18 08:16:17 +04:00
John Preston
f10b2194e6
Add option for a native window frame.
...
Fixes #2958 .
2020-07-07 21:34:25 +04:00
John Preston
e7b8a52278
Move terms lock from Core::App to Session.
2020-06-24 11:56:16 +04:00
John Preston
3a5ede534e
Count all accounts in Core::App().unreadBadge.
2020-06-23 21:53:41 +04:00
John Preston
357caf8007
Keep separate MTP::Config's for separate accounts.
2020-06-23 21:53:41 +04:00
John Preston
6fc5e22882
Allow several accounts in Core::App.
2020-06-23 21:53:40 +04:00
John Preston
d4b9b65724
First version of the filters side bar.
2020-03-27 20:36:01 +04:00
John Preston
a88423a33f
Fix bad window rendering with maximize-on-launch.
...
I have no idea why MainWindow is ruined completely in case you call
MainWindow::show, MainWindow::setWindowState(maximized) and then
in the same context (without crl::on_main) create full screen viewer.
2020-02-12 12:09:17 +04:00
John Preston
a6c84c36c0
Use layers and boxes from lib_ui.
2019-10-19 12:27:52 +04:00
John Preston
849deb57e2
Move many widget classes to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
c5845f17ae
Remove twidget header.
2019-10-01 23:59:46 +03:00
John Preston
6343221d7b
Remove many includes from stdafx.pch.
2019-09-06 19:31:07 +03:00
John Preston
3e895d0e85
Make tabbed selector working in scheduled section.
2019-08-27 19:10:37 +03:00
John Preston
0868a9f7b9
Use Controller::account in MainWindow.
2019-06-06 14:59:00 +03:00
John Preston
dd68c7e90d
Use Window::Controller to manage MainWindow.
2019-06-06 14:20:21 +03:00