John Preston
54f06740d5
Remove some App::wnd() calls.
2021-03-03 11:29:26 +04:00
John Preston
204dd0a869
Revert "Use custom method to focus main window on X11"
...
This reverts commit f9bba75395
.
See #10441 .
2021-03-01 11:47:59 +04:00
John Preston
8142acc709
Remove legacy #feed code.
2021-02-25 17:03:51 +04:00
Ilya Fedin
f9bba75395
Use custom method to focus main window on X11
2021-02-24 21:41:14 +04:00
John Preston
27681db7f6
Show better error on invite peek discussion group open.
2021-02-23 17:16:29 +04:00
Ilya Fedin
1a3253ae8b
Implement three items tray menu on Linux
2021-02-23 17:14:57 +04:00
John Preston
0a678ae8bd
No 'Clear History' for everyone in groups.
2021-02-22 23:42:42 +04:00
John Preston
ce5739048a
Fix build on Xcode.
2021-02-22 23:42:42 +04:00
John Preston
467449ac13
When reporting peer allow to select messages first.
2021-02-22 23:42:42 +04:00
John Preston
14d525dade
Add 'Clear History' to channels as auto-delete entry point.
2021-02-22 23:42:41 +04:00
Ilya Fedin
6d07d49659
Check for AllowNativeWindowFrameToggle in Controller::verticalShadowTop
2021-02-22 23:39:39 +04:00
John Preston
5b0ad9ec4d
Revert "Take in account device pixel ratio when setting window extents"
...
This reverts commit d44f076f0b
.
2021-02-21 08:07:57 +04:00
Ilya Fedin
15d18077b8
Use new methods from lib_ui
2021-02-19 14:15:09 +04:00
Ilya Fedin
a9c08552c8
Check if resize area is null
2021-02-19 12:37:14 +04:00
John Preston
b3660f1ed8
Version 2.5.9: Move window position to Core::Settings.
2021-02-17 19:20:05 +04:00
Ilya Fedin
d44f076f0b
Take in account device pixel ratio when setting window extents
2021-02-17 11:16:00 +04:00
Ilya Fedin
3637fec397
Ensure controls aren't duplictated
2021-02-17 11:16:00 +04:00
Ilya Fedin
e109da037e
Add a private method to get control widget by enum to TitleWidgetQt
2021-02-17 11:16:00 +04:00
John Preston
e8affa85b0
Try to open localized changelog.
2021-02-04 20:42:32 +04:00
23rd
0b4d0b83c2
Removed App::wnd from classes that have pointer to Window::Controller.
2021-02-04 18:13:04 +04:00
23rd
b4af805521
Moved showLogoutConfirmation from MainWindow to Window::Controller.
2021-02-04 18:13:03 +04:00
23rd
1f80c297ec
Removed App:wnd for opening settings.
...
Removed unused App::showSettings from facades.
2021-02-04 18:13:03 +04:00
23rd
019e691fbb
Moved some session dependent methods to SessionController.
...
MainWindow::showAddContact(),
MainWindow::showNewGroup(),
MainWindow::showNewChannel().
2021-02-04 18:13:03 +04:00
Ilya Fedin
57ca6e23b9
Port Qt-based title widget to lib_ui
2021-02-04 18:11:44 +04:00
Ilya Fedin
76457c1e52
Restore QGuiApplication::setOverrideCursor usage
...
QWindow::setCursor doesn't work as expected...
2021-02-03 10:27:54 +04:00
Ilya Fedin
bcc333c2e1
Use QWindow::setCursor instead of QGuiApplication::setCursorOverride
2021-02-02 20:12:24 +04:00
Ilya Fedin
f51055d606
Ensure the window is not out of available geometry on geometry restoring
2021-01-31 12:38:41 +04:00
Ilya Fedin
9c86755546
Take custom scale in account when saving window geometry
2021-01-31 12:38:41 +04:00
John Preston
7947af665c
Skip notifications from imported messages.
2021-01-28 22:19:58 +04:00
Ilya Fedin
834ee4eae7
Fix crash with fcitx and custom titlebar
2021-01-28 11:45:27 +04:00
John Preston
ce5c19dfe9
Update API scheme for phone log clearing.
2021-01-26 14:28:25 +04:00
John Preston
b2c84d675c
Allow clearing calls log.
2021-01-25 16:50:59 +04:00
John Preston
97fb310f54
Move CalendarBox and ChooseDateTimeBox to td_ui.
2021-01-25 16:50:56 +04:00
John Preston
40e90af76d
Detect tablet mode on Windows 10.
2021-01-25 16:47:41 +04:00
23rd
d4bbbdb65c
Replaced rand_value util function with openssl::RandomValue.
2021-01-24 10:41:10 +03:00
Ilya Fedin
5e60b87cf9
Remove platform_specific.h include from mainwindow.h
...
In order to avoid mass rebuilds on specific_*.h changing
2021-01-22 17:22:37 +04:00
Ilya Fedin
bb016e1489
Restore frameless hint on showing to workaround a bug in Qt
2021-01-22 17:12:53 +04:00
Ilya Fedin
e8edbb16ae
Make notification manager creation async
2021-01-22 17:02:50 +04:00
John Preston
574d915c23
Fix build and tray icon menu on Windows.
2021-01-22 16:53:59 +04:00
23rd
1ccfcc824c
Updated code to be consistent with lib_ui.
2021-01-22 16:53:59 +04:00
23rd
97e8c0956f
Moved all files related to menu to separate namespace.
2021-01-22 16:53:59 +04:00
Ilya Fedin
3b7d5d3c80
Eliminate ifndefs in notifications_manager_linux
2021-01-05 18:16:26 +04:00
John Preston
f94280be7f
Use langpack strings in a better way.
2020-12-22 19:16:54 +04:00
John Preston
92bc278052
Allow inviting contacts to voice chats.
2020-12-22 12:33:06 +04:00
John Preston
d69caacded
Improve top bar icons layout.
2020-12-14 19:56:01 +04:00
John Preston
b6483cb65c
Use shared_ptr<Memento> for sections.
2020-12-14 18:48:10 +04:00
23rd
dc7a754418
Added ability to prevent application lock and account switch.
2020-12-14 17:09:24 +04:00
23rd
24b8377a2a
Added initial implementation of display sections prevent.
2020-12-14 17:09:24 +04:00
23rd
c8643aa1ee
Wrapped raw SectionMemento with unique_ptr.
2020-12-14 17:09:24 +04:00
John Preston
1b624d67b8
Support voice chats in legacy groups, with migration.
2020-12-14 16:52:18 +04:00
John Preston
7feb841081
Create voice chats with confirmation.
2020-12-09 16:24:25 +04:00
John Preston
546881c720
Join other calls with confirmation.
2020-12-08 19:09:13 +04:00
John Preston
dde94d486b
Change button round radius.
2020-12-08 11:19:23 +04:00
23rd
c109e35d95
Fixed send options in CreatePollBox and SendFilesBox in replies.
2020-12-01 09:45:24 +03:00
John Preston
d40768f6b0
Use separate styles for group call boxes.
2020-12-01 09:45:23 +03:00
John Preston
b3eb7858e6
Save local drafts in scheduled / replies sections.
...
Fix inline bot switch inline in scheduled / replies sections.
2020-11-17 12:58:07 +03:00
John Preston
f04b3da76a
Add return from bot switch_pm to Scheduled/Replies.
2020-11-17 12:58:06 +03:00
John Preston
4a8b59b788
Pass reply info to Window::PeerMenu.
2020-11-17 12:58:06 +03:00
John Preston
10adbecb9c
Support creating polls in RepliesSection.
2020-11-17 12:56:51 +03:00
Ilya Fedin
d7ef484aec
Use QWindow::setFlag that doesn't hide the windw
2020-11-16 12:33:55 +03:00
Ilya Fedin
e0de4dbc5e
Replace new #ifdef Q_OS_LINUX in main_window.cpp added a month ago
2020-11-09 11:19:03 +03:00
John Preston
74d2313784
Build Linux version with Qt 5.15.1 in CentOS 7 docker.
2020-11-06 11:21:34 +03:00
John Preston
0687cea1ed
Fix unpinning all messages.
2020-10-30 18:32:22 +03:00
John Preston
68041d2ffb
Merge pinned list with migrated legacy group.
2020-10-30 18:32:20 +03:00
John Preston
994e3d8da7
Add hide / unpin all button in pinned section.
2020-10-30 18:32:20 +03:00
John Preston
61d335469f
Improve context menu in pinned section.
2020-10-30 18:32:20 +03:00
John Preston
263d6a30f2
Improve grouped files layout in chat.
2020-10-30 18:32:19 +03:00
John Preston
8b96f4c214
Move Media::Clip::Reader and FileLocation to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
05eb549a3d
Move App::roundRect to Ui::FillRoundRect.
2020-10-30 18:32:18 +03:00
John Preston
ae298818a8
Implement message bar with animations.
2020-10-30 18:32:17 +03:00
23rd
1459e6f38e
Moved request for attached stickers to separate file.
2020-10-30 13:18:40 +03:00
Ilya Fedin
49e96d857a
Add drag distance for move-by-titlebar to process double click right
2020-10-30 10:56:57 +03:00
Ilya Fedin
a38b4f039a
Use some methods from lib_base
2020-10-30 10:52:49 +03:00
23rd
367b028094
Moved contacts box preparing to single place.
2020-10-23 13:31:24 +03:00
John Preston
4ebc62afd2
Fix build on Linux.
2020-10-02 17:29:28 +03:00
John Preston
18cb26fed6
Change flags / attributes when changing window frame.
2020-10-02 16:17:53 +03:00
Ilya Fedin
5cc4066b65
Don't change window flags in Window::MainWindow::recountGeometryConstraints
2020-10-02 16:10:38 +03:00
John Preston
c4dfc634d0
Fix crash in main window destruction.
2020-10-01 17:45:25 +03:00
John Preston
8bb3b7fada
Handle some errors on comments open.
...
Fixes #8682 .
2020-10-01 16:42:31 +03:00
Ilya Fedin
7fef7e6315
Don't add shadow on Wayland
...
It was implemented like a hack and worked like a hack... Looks like it is better to wait until Qt give a way to create shadows.
2020-10-01 16:30:53 +03:00
John Preston
745bbfe268
Fix fast reply from message corner in Replies section.
2020-09-30 21:11:24 +03:00
23rd
622c1a910b
Moved text changes of QAction in peer menu to single place.
2020-09-30 19:00:53 +03:00
23rd
ce3279143d
Connected popup menu display to archive button display in main menu.
2020-09-30 19:00:53 +03:00
John Preston
94c2969f8b
Support slowmode restrictions in Replies section.
2020-09-30 16:29:32 +03:00
John Preston
719bed6e85
Move some text formatting to tg_ui:ui/text/format_values.
2020-09-30 16:29:17 +03:00
John Preston
8634c1f7f3
Move lang keys to td_lang library.
2020-09-30 12:18:52 +03:00
John Preston
def1266216
Rename td-specific libs from lib_ to td_.
2020-09-30 10:51:17 +03:00
John Preston
8f4fdb6d0d
Fix crash in mark folder as read.
2020-09-29 19:03:30 +03:00
23rd
aecdc01e41
Added ability to mark all chats as read.
2020-09-29 19:03:29 +03:00
23rd
bdce2d5e25
Added ability to mark as read chats from folder from context menu.
...
Fixed #7507 .
Fixed #6004 .
2020-09-29 19:03:29 +03:00
23rd
f81271d1fe
Simplified confirmed callback for ConfirmBox instances.
2020-09-29 19:03:29 +03:00
John Preston
0fb42ed82a
Use special method for blocking from Replies.
2020-09-29 19:03:29 +03:00
John Preston
889139f31f
Handle links to replies section.
2020-09-29 19:03:28 +03:00
John Preston
13ad590a51
Track inbox/outbox comments/replies read state.
2020-09-29 19:03:27 +03:00
John Preston
b097bd7225
Report spam from Replies reports messages.
2020-09-29 19:03:27 +03:00
John Preston
f73b0f0b0d
Update API scheme on layer 119.
2020-09-29 19:03:27 +03:00
John Preston
61d89113d4
Handle correctly comment links for public channels.
2020-09-29 19:03:26 +03:00
John Preston
4c1213ce9e
Allow blocking users from Replies chat.
2020-09-29 19:03:26 +03:00
John Preston
59abe95754
Show comments unread status.
2020-09-29 19:03:25 +03:00
John Preston
040f29abe6
Remove some options from Replies three-dot menu.
2020-09-29 19:03:25 +03:00
John Preston
be14456290
Show correct reply in Replies bot.
2020-09-29 19:03:24 +03:00
John Preston
4a94a0c438
Show replies dialog correctly.
2020-09-29 19:03:24 +03:00
John Preston
b8424b1d89
Add read status tracking to comments.
2020-09-29 19:03:24 +03:00
John Preston
beb623bee2
Add root message display in replies section.
2020-09-29 19:03:23 +03:00
John Preston
d42ce87c09
Move discussion group link to three-dot menu.
2020-09-29 19:03:23 +03:00
John Preston
fb20be3e6c
Open channel comments, not replies.
2020-09-29 19:03:23 +03:00
John Preston
1849f01b15
Jump to near reply inside a replies thread.
2020-09-29 19:03:22 +03:00
John Preston
734d834a20
Replace mapbox variant with std::variant.
2020-09-29 19:03:19 +03:00
John Preston
437c9320cd
Implement progressive jpeg loading and sending.
2020-09-29 19:03:18 +03:00
John Preston
55edb3bdfe
Update API scheme to layer 119. Count replies.
2020-09-29 19:03:18 +03:00
Ilya Fedin
4c2779bbaf
Fix saving maximized state on Linux
2020-09-29 18:25:57 +03:00
Ilya Fedin
c77f1bf082
Add UnsetWindowExtents method
2020-08-30 17:00:43 +04:00
Ilya Fedin
612e0d4a10
Update window shadow size on window state change
2020-08-30 17:00:43 +04:00
Ilya Fedin
78a2835bbf
Extents should be updated on each event only on Wayland
2020-08-30 17:00:43 +04: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
John Preston
0139390c71
Use tg_owt in OS X 10.10-10.11 build.
2020-08-21 17:52:13 +04:00
Ilya Fedin
d02092f09e
Add main window shadow for Linux
2020-08-18 08:16:17 +04:00
John Preston
34840766b2
Move fingerprint / signal bars to a separate widget.
2020-08-14 16:53:06 +04:00
23rd
b12256f1ee
Added ability to schedule polls from section of scheduled messages.
...
Fixed #7433 .
2020-08-11 18:13:40 +04:00
23rd
972bbbce6a
Fixed online status stuck when switching between accounts one more time.
...
The first attempt to fix this bug is here: 8171ed6c12
.
It caused crash so it was reverted here: 2ef47222f4
.
2020-08-11 12:28:41 +03:00
Ilya Fedin
65e2bbee3e
Override cursor only if no buttons pressed
2020-08-11 12:58:07 +04:00
Ilya Fedin
dc9d0aae54
Add support for showing window menu on Wayland
2020-08-11 10:56:29 +04:00
John Preston
e293a26029
Fix crash in incorrect passcode input.
2020-07-28 20:14:45 +04:00
John Preston
5a1a8af222
Suggest enabling archive and mute in settings.
2020-07-25 11:25:51 +04:00
John Preston
638d4d63c5
Update API scheme to layer 115.
2020-07-25 11:24:11 +04:00
John Preston
511067981d
Forbid auto-night mode with theme editor.
2020-07-24 10:01:37 +04:00
John Preston
9a186cd8ce
Indicate other accounts unread messages.
2020-07-24 09:41:51 +04:00
Ilya Fedin
841908fe31
Read decoration layout property from gtk
2020-07-23 14:29:56 +04:00
John Preston
8c4e8212cd
Add 'respect system dark mode' checkbox.
2020-07-22 17:18:17 +04:00
Ilya Fedin
47a237c924
Implement system-based dark mode for Windows and Linux
2020-07-22 10:32:56 +04:00
23rd
6ac9ef34eb
Moved ActivateWindow from HistoryWidget to single place.
2020-07-20 21:44:07 +03:00
Sean Wei
556aa28df6
Remove unused variable
...
The following are commits related to removed variables.
apiwrap.cpp
e050e27: kSaveDraftBeforeQuitTimeout
app.cpp
113f665: serviceImageCacheSize
boxes/auto_download_box.cpp
a0c6104: checked(Source source, Type type)
boxes/background_preview_box.cpp
b6edf45: resultBytesPerPixel
fe21b5a: ms
boxes/calendar_box.cpp
ae97704: yearIndex, monthIndex
99bb093: ms
boxes/connection_box.cpp
f794d8d: ping
boxes/dictionaries_manager.cpp
8353867: session
boxes/peer_list_box.cpp
2ce2a14: grayedWidth
boxes/peers/add_participants_box.cpp
07e010d: chat, channel
boxes/self_destruction_box.cpp
fe9f02e: count
chat_helpers/emoji_suggestions_widget.cpp
a12bc60: is(QLatin1String string)
chat_helpers/field_autocomplete.cpp
8c7a35c: atwidth, hashwidth
chat_helpers/gifs_list_widget.cpp
ff65734: inlineItems
3d846fc: newSelected
d1687ab: kSaveDraftBeforeQuitTimeout
chat_helpers/stickers_dice_pack.cpp
c83e297: kZeroDiceDocumentId
chat_helpers/stickers_emoji_pack.cpp
d298953: length
chat_helpers/stickers_list_widget.cpp
eb75859: index, x
core/crash_reports.cpp
5940ae6: LaunchedDateTimeStr, LaunchedBinaryName
data/data_changes.cpp
3c4e959:clearRealtime
data/data_cloud_file.cpp
4b354b0: fromCloud, cacheTag
data/data_document_media.cpp
7db5359: kMaxVideoFrameArea
data/data_messages.cpp
794e315: wasCount
data/data_photo_media.cpp
e27d2bc: index
data/data_wall_paper.cpp
b6edf45: resultBytesPerPixel
data/data_types.cpp
aa8f62d: kWebDocumentCacheTag, kStorageCacheMask
history/admin_log/history_admin_log_inner.cpp
794e315: canDelete, canForward
history/history_location_manager.cpp
60f45ab: kCoordPrecision
9f90d3a: kMaxHttpRedirects
history/history_message.cpp
cedf8a6: kPinnedMessageTextLimit
history/history_widget.cpp
b305924: serviceColor
efa5fc4: hasForward
5e7aa4f: kTabbedSelectorToggleTooltipTimeoutMs, kTabbedSelectorToggleTooltipCount
history/view/history_view_context_menu.cpp
fe1a90b: isVideoLink, isVoiceLink, isAudioLink
settings.cpp
e2f54eb: defaultRecent
settings/settings_folders.cpp
e8bf5bb: kRefreshSuggestedTimeout
ui/filter_icon_panel.cpp
c4a0bc1: kDelayedHideTimeoutMs
window/themes/window_theme_preview.cpp
ef927c8: mutedCounter
-----
Modified variables
boxes/stickers_box.cpp
554eb3a: _rows[pressedIndex] -> set
data/data_notify_settings.cpp
734c410: muteForSeconds -> muteUntil
history/view/history_view_list_widget.cpp
07528be: _items[index] -> view
e5f3bed: fromState, tillState
history/history.cpp
cd3c1c6: kStatusShowClientsideRecordVideo -> kStatusShowClientsideRecordVoice
storage/download_manager_mtproto.cpp
ae8fb14: _queues[dcId] -> queue
storage/localstorage.cpp
357caf8: MTP::Environment::Production -> production
2020-07-13 09:33:55 +04:00
Ilya Fedin
b587328fed
Add support for custom titlebar on Linux with Qt < 5.15
2020-07-12 23:19:05 +04:00
John Preston
b13b4a6b5c
Fix system window frame toggle on Linux.
2020-07-07 21:34:25 +04:00
John Preston
f10b2194e6
Add option for a native window frame.
...
Fixes #2958 .
2020-07-07 21:34:25 +04:00
Ilya Fedin
d8cc7a9b50
Pass Qt::Edges to updateCursor and startResize
2020-07-02 11:33:58 +04:00
John Preston
eb1845e33b
Fix crash in session destruction.
...
Also use rpl::event_stream for downloaderTaskFinished.
2020-07-01 12:26:29 +04:00
Ilya Fedin
e7c598e533
Reset cursor on window leave
2020-06-30 22:14:15 +04:00
John Preston
1dc31c7f2f
Allow turning off inactive accounts notifications.
2020-06-30 22:11:54 +04:00
John Preston
5cc7c2b6c6
Add account from settings three-dot menu.
2020-06-30 21:16:05 +04:00
John Preston
dd0e0a10cd
Add Activate/Logout context menu in accounts list.
2020-06-30 21:15:35 +04:00
John Preston
41f2cc6d81
Fix crash in notifications clearing.
2020-06-30 19:33:22 +04:00
John Preston
d529c60081
Fix crash in MainMenu hiding on external logout.
2020-06-30 19:13:57 +04:00
John Preston
7d0eb3ba8e
Fix crash in MainWidget setup with audio player.
2020-06-30 19:05:12 +04:00
John Preston
c15019dee6
Fix crashes in MainWidget and ApiWrap.
2020-06-30 18:26:44 +04:00
John Preston
2ef47222f4
Fix crash in update online on logout.
2020-06-30 17:17:07 +04:00
John Preston
06c9e55c26
Fix notification receiver name.
2020-06-30 12:03:42 +04:00
John Preston
613a2f358a
Fix clearing session notifications.
2020-06-30 11:52:59 +04:00
John Preston
c3fa300b5c
Create notifications manager after reading settings.
2020-06-30 11:44:32 +04:00
John Preston
0db6fc4ffb
Toggle accounts by userpic in Main Menu.
2020-06-30 11:34:02 +04:00
John Preston
9211b4d421
Remove duplicate accounts toggle subscription.
2020-06-30 11:31:52 +04:00
John Preston
40971d6da6
Fix quit-by-closing non-authed window.
2020-06-29 21:37:56 +04:00
Ilya Fedin
5e8e654324
Add cross-platform TitleWidget implementation based on startSystemMove/startSystemResize
2020-06-29 17:04:05 +04:00
John Preston
5f9dae1b72
Run main menu hide animation on account switch.
2020-06-29 16:11:38 +04:00
John Preston
1757dd856b
Fix 125% scale active account check.
2020-06-29 15:07:42 +04:00
John Preston
1bd0b03e8e
Return Saved Messages button to the main menu.
2020-06-29 09:55:19 +04:00
23rd
6507007086
Added fade animation for total unread count badge in main menu.
2020-06-29 06:25:36 +04:00
John Preston
4e57ce8dbb
Fix crash in filters update.
2020-06-26 21:50:36 +04:00
John Preston
793e8c102e
Fix adjustable colors in default theme.
2020-06-26 14:37:07 +04:00
John Preston
bf7aae5fc6
Allow float video player across accounts.
2020-06-25 18:17:37 +04:00
23rd
8171ed6c12
Fixed online status stuck when switching between accounts.
2020-06-25 16:06:02 +03:00
John Preston
5d6a494934
Move some more settings to Core::App.
2020-06-25 16:25:53 +04:00
John Preston
65050bf9dd
Move export management to Core::App.
2020-06-25 11:14:05 +04:00
John Preston
d8a2b391a3
Use Main::Session::uniqueId in notifications.
2020-06-24 13:05:56 +04:00
John Preston
e7b8a52278
Move terms lock from Core::App to Session.
2020-06-24 11:56:16 +04:00
John Preston
30c82bb2e0
Remove some MainWindow::sessionController() calls.
2020-06-23 21:53:44 +04:00
John Preston
4d65df6ca2
Remove legacy temp download folder.
2020-06-23 21:53:44 +04:00
John Preston
4add6234b6
Fix reading background before style init.
2020-06-23 21:53:44 +04:00
John Preston
55ec4ebf86
Allow returning from new account setup.
2020-06-23 21:53:44 +04:00
John Preston
c92c15883d
Improve badges in accounts list.
2020-06-23 21:53:44 +04:00
John Preston
7b0a32b607
Add unread unmuted counter to main menu cover.
2020-06-23 21:53:44 +04:00
John Preston
34ef54e40b
Display check on the active account.
2020-06-23 21:53:43 +04:00
John Preston
51c2bc7349
Create only one EmojiImageLoader to fix a crash.
2020-06-23 21:53:43 +04:00
John Preston
1248cef86b
Add an arrow to the expand accounts button.
2020-06-23 21:53:43 +04:00
23rd
0696a2d5c0
Replaced mapping to rpl::empty_value with rpl::to_empty.
2020-06-23 21:53:43 +04:00
23rd
e318a7d65f
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
2020-06-23 21:53:43 +04:00
John Preston
5f238a71f9
Allow switching accounts from the main menu.
2020-06-23 21:53:43 +04:00
John Preston
1705a1aa4a
Fix filters in non-active accounts.
2020-06-23 21:53:43 +04:00
John Preston
4a8d297df3
Use username in notifications if available.
2020-06-23 21:53:43 +04:00
John Preston
3bb352e0e5
Fix build and working on macOS.
2020-06-23 21:53:42 +04:00
23rd
b49a8e6dc1
Fixed crash on pinning dialog from context menu.
...
Regression was introduced in 3a147305b7.
2020-06-23 21:53:42 +04:00
John Preston
0824d2da20
Reset some settings on full logout.
2020-06-23 21:53:42 +04:00
John Preston
2635ca33f8
Move background to global settings.
2020-06-23 21:53:42 +04:00
John Preston
5433c16244
Add target account name to notifications.
2020-06-23 21:53:42 +04:00
John Preston
997913be25
One Window::Notifications system for all sessions.
2020-06-23 21:53:42 +04:00
John Preston
83538675ce
Move a lot of settings to Core::Settings.
2020-06-23 21:53:42 +04:00
John Preston
4d6cc58f0d
Move session settings to main_session_settings.
2020-06-23 21:53:42 +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
c83659f0c7
Fix logouting from the passcode.
2020-06-23 21:53:41 +04:00
John Preston
bc144377c0
Support logout of a secondary account.
2020-06-23 21:53:41 +04:00
John Preston
5e045ec02c
Fix first main window appearance.
2020-06-23 21:53:41 +04:00
John Preston
ab5796c117
Several working accounts together.
2020-06-23 21:53:40 +04:00
John Preston
6fc5e22882
Allow several accounts in Core::App.
2020-06-23 21:53:40 +04:00
John Preston
3c4e959468
Replace observer_peer with rpl interface.
2020-06-23 21:53:40 +04:00
John Preston
b0f9ad71dd
Check some more App::main()s.
2020-06-23 21:53:40 +04:00
John Preston
0ad7dcaef9
Remove MTP::MainInstance() global access point.
2020-06-23 21:53:40 +04:00
John Preston
0b028b959b
Move updates handling MainWidget -> Api::Updates.
2020-06-23 21:53:39 +04:00
John Preston
ee43027bea
Remove some usages of App::main().
2020-06-23 21:53:39 +04:00
John Preston
ea86433be5
Remove some activeAccount() calls.
2020-06-23 21:53:39 +04:00
John Preston
5f8d22f1f2
Remove Auth() global access point.
2020-06-23 21:53:39 +04:00
John Preston
ad4afe9293
Move session data localstorage -> storage_account.
2020-06-23 21:53:39 +04:00
John Preston
fc174f742a
Move stickers code to Data::Stickers class.
2020-06-23 21:53:38 +04:00
John Preston
3878a1b212
Remove some more Auth() calls.
2020-06-23 21:53:38 +04:00
Ilya Fedin
dbad9fa73a
Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku
2020-06-17 20:33:23 +04:00
John Preston
bdbcd8e540
Use Main::Session in entities parsing.
2020-06-08 12:05:17 +04:00
John Preston
05df4f832b
Fix crash in theme editor closing.
2020-06-05 14:00:06 +04:00
John Preston
c868cd6036
Update lib_ui.
2020-06-04 10:53:59 +04:00
John Preston
9fd62d3892
Add more deprecated system versions.
2020-06-02 22:26:59 +04:00
Nicholas Guriev
d8d3dda2f3
Fix little typo in theme names generator
2020-06-01 18:26:16 +04:00
John Preston
aaa4db7b27
Fix a crash in custom notifications.
2020-06-01 18:09:34 +04:00
Ilya Fedin
be96bf2812
Set parent for dialogs only on Wayland
2020-06-01 18:09:34 +04:00
John Preston
d5b3fa017b
Fix build for macOS.
2020-06-01 18:09:34 +04:00
John Preston
36fbdfb380
Simplify Image, remove ImageSource.
2020-06-01 18:09:33 +04:00
John Preston
f066e0f05a
Use Data::CloudImage for userpics.
2020-06-01 18:09:33 +04:00
John Preston
803593cd8d
Change Stickers::Set from value to object type.
2020-06-01 18:09:33 +04:00
John Preston
e27d2bc2d5
Move photo data to Data::PhotoMedia.
2020-06-01 18:09:32 +04:00
John Preston
c63e2c01ac
Use video thumbnail in media preview.
2020-06-01 18:09:31 +04:00
John Preston
33c1c48ad9
Update API scheme to layer 114.
2020-06-01 18:09:31 +04:00
John Preston
581a21dbd9
Use Media::Streaming in EditCaptionBox.
2020-06-01 18:09:31 +04:00
John Preston
956c3af0ae
Start DocumentData::thumbnail move to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
1e9c79ca85
Move automaticLoad() to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
bf616036b3
Check loaded status through DocumentMedia if possible.
2020-06-01 18:09:30 +04:00
John Preston
33f4946242
Start using document bytes from DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
70c79eb6bd
Move sticker image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
bdd3c51ab8
Move inline thumbnail image to DocumentMedia.
2020-06-01 18:09:30 +04:00
Ilya Fedin
3479a4ec59
Add parent, minimum and maximum size to notifications
2020-05-25 09:29:15 +04:00
John Preston
97305c8cb5
Fix build.
2020-05-20 12:49:41 +04:00
23rd
9ff427afad
Fixed indefinitely bouncing of dock icon.
2020-05-20 12:41:44 +04:00
John Preston
6f760d513e
Add a checkbox to disable taskbar flash.
...
Also add ability to set urgent flag for the window on Linux.
Fixes #223 , fixes #897 , fixes #906 .
2020-05-12 14:16:24 +04:00
John Preston
f4f6550d66
Clear fake-unread status when switching folders.
2020-05-12 12:18:52 +04:00
John Preston
07e3671ca8
Allow monospace blocks to extend bubble width.
...
This partially fixes #2060 instead of additional settings from #7822 .
2020-05-12 11:07:41 +04:00
John Preston
36997f084a
Automatically load and apply old emoji set by id.
2020-05-08 11:22:22 +04:00
John Preston
1fa22398a9
Fix returning of tabbed panel in third column.
2020-05-05 16:55:05 +04:00
John Preston
19bcc145ad
Fix crash in theme editor.
2020-05-01 16:27:55 +04:00
23rd
8ef00dc4ff
Fixed resetting menu scroll after refresh of filter list.
2020-05-01 12:31:13 +04:00
23rd
1630ad0804
Fixed crash when user pins chat in remotely removed filter.
2020-05-01 12:31:13 +04:00
23rd
c3c482aa50
Improved peer context menu item to archive chat.
2020-05-01 12:31:13 +04:00
John Preston
dd78052f92
Use new toast style structure.
2020-04-30 11:35:01 +04:00
John Preston
44e71dfa03
Allow hiding PSA from the chats list.
2020-04-30 11:35:01 +04:00
John Preston
aabc8173c3
Use similar margins in all controls.
2020-04-30 11:35:01 +04:00
John Preston
8d632bd2be
Update API scheme to layer 103.
2020-04-30 11:35:01 +04:00
John Preston
1fdd591aa0
Change manage folders button icon.
2020-04-13 15:30:40 +04:00
John Preston
f370ca97d0
Fix folders visibility above passcode lock.
2020-04-13 15:30:23 +04:00
John Preston
f5aba5a907
Fix build with new lib_ui commits.
2020-04-13 15:26:09 +04:00
23rd
7b583596ec
Added ability to scroll vertical layout during reordering.
...
Updated lib_ui.
2020-03-28 18:53:08 +03:00
23rd
49e286b04c
Added scroll to active and not completely visible SideBarButtons.
2020-03-28 18:20:13 +03:00
John Preston
30a3e7b78b
Improve layout of edit filter box.
2020-03-27 20:36:06 +04:00
John Preston
cdff0ea9c7
Add a counter for all chats filter.
2020-03-27 20:36:06 +04:00
John Preston
c5b8ddabac
Scroll to top of the filter on second click.
2020-03-27 20:36:06 +04:00
John Preston
12b18829f0
Add context menu to filters side bar.
2020-03-27 20:36:06 +04:00
John Preston
4c7f8a4bbb
Improve filters phrases.
2020-03-27 20:36:05 +04:00
John Preston
4f718aeead
Add filter icons to Settings -> Folders.
2020-03-27 20:36:05 +04:00
John Preston
e8bf5bb5ce
Move manage filters to a Settings section.
2020-03-27 20:36:05 +04:00
John Preston
6022fa790e
Fix fakeUnreadWhileOpened flag reset.
2020-03-27 20:36:05 +04:00
John Preston
bba511409f
Fix layout of cloud themes in a narrow window.
2020-03-27 20:36:05 +04:00
John Preston
3ac33e4c1c
Leave unread chats in filter until closed.
2020-03-27 20:36:05 +04:00
John Preston
b42ba1a7a3
Fix switch-to-filter in single column mode.
2020-03-27 20:36:04 +04:00
John Preston
ab16e8e083
Improve archive <-> filter navigation.
2020-03-27 20:36:04 +04:00
John Preston
b8684af537
Improve filters reordering.
2020-03-27 20:36:04 +04:00
John Preston
18805a5ef8
Allow reordering filters in side bar.
2020-03-27 20:36:04 +04:00
John Preston
b3f8e27661
Improve error phrase about pin limit.
2020-03-27 20:36:04 +04:00
John Preston
c4a0bc1fd5
Allow selecting custom filter icons.
2020-03-27 20:36:04 +04:00
John Preston
9ad5b8ff90
Add special filters icons.
2020-03-27 20:36:04 +04:00
John Preston
ad8b0387f3
Improve phrases for loading / empty filters.
2020-03-27 20:36:03 +04:00
John Preston
455d113955
Fix small column layout with filters side bar.
2020-03-27 20:36:03 +04:00
John Preston
ffc65f7da4
Add folders menu to Settings.
2020-03-27 20:36:03 +04:00
John Preston
4881981cf6
Enable / disable side bar based on filters.
2020-03-27 20:36:03 +04:00
John Preston
55900bbd3d
Save pinned chats in filters to server.
2020-03-27 20:36:03 +04:00
John Preston
e27a8fe058
Support pinned locally in filters.
2020-03-27 20:36:03 +04:00
John Preston
66c0d51f96
Show unread badges in filters.
2020-03-27 20:36:03 +04:00
John Preston
b88f0108ad
Edit chat types in filters.
2020-03-27 20:36:02 +04:00
John Preston
13fe0b6272
Allow adding chats to filter exceptions.
2020-03-27 20:36:02 +04:00
John Preston
d5bd9fa54d
View filter box, removing chats and chat types.
2020-03-27 20:36:02 +04:00
John Preston
a091e73686
Show different filter icons.
2020-03-27 20:36:02 +04:00
John Preston
b8c11f3d8c
Manage filters: delete, add suggested.
2020-03-27 20:36:02 +04:00
John Preston
c305246d21
Move sidebar mainmenu button outside the scroll.
2020-03-27 20:36:02 +04:00
John Preston
fcfb268677
Show some special filter icons.
2020-03-27 20:36:02 +04:00
John Preston
48d790de5e
Move main menu button to the side bar.
2020-03-27 20:36:02 +04:00
John Preston
c279986493
Move filters side bar inside bodyWidget.
2020-03-27 20:36:02 +04:00
John Preston
d4b9b65724
First version of the filters side bar.
2020-03-27 20:36:01 +04:00
John Preston
71f7aae948
Replace dialogs mode with filters.
2020-03-27 20:36:01 +04:00
Ilya Fedin
7bd0598555
Unified function to detect icon name on Linux
2020-02-27 15:17:32 +04:00
John Preston
db322cc19a
Move requestDialogEntry to Histories.
2020-02-21 18:48:30 +04:00
John Preston
5b7f7ed70e
Fix reading of currently opened chat.
2020-02-21 18:48:29 +04:00
John Preston
9cccea9a87
All read history done through Data::Histories.
2020-02-21 18:48:29 +04:00
John Preston
82aa64ca0a
Enable third column by default in Mac App Store build.
2020-02-15 22:45:50 +04:00
John Preston
0beec6e335
Fix maximized window on secondary screen.
2020-02-12 13:03:08 +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
bcd0fe38f0
Fix invisible passcode field.
...
Regression was introduced in fd8ae60dc
.
2020-02-11 13:01:55 +04:00
Kirsan
4fececb94f
Revert changes to notification replay. And replace user settings with Both (Enter and Ctrl+Enter) to polls.
2020-02-11 12:29:34 +04:00
Kirsan
9c562931a2
Respect user settings "Send by ..." for:
...
forward dialog
send file dialog
edit caption dialog
notification replay
schedule messages
new channel dialog
group description edit dialog
create poll dialog
rate call dialog
report bot dialog
support mode
2020-02-11 12:29:34 +04:00
John Preston
fd8ae60dc1
Change show order of MainWindow/OverlayWindow.
...
Fixes #6804 .
2020-02-10 19:28:41 +04:00
John Preston
2e1e13b843
Rename mediaview.style to media_view.style.
2020-02-05 18:39:47 +04:00
John Preston
74d848311b
Replace str_const with base::const_string.
2020-01-29 12:47:50 +03:00
John Preston
8c11e1724a
Move poll results to a Info-like layer.
2020-01-23 10:09:33 +03:00
John Preston
d0597407d8
Support creating polls from bot keyboards.
2020-01-23 10:09:33 +03:00
John Preston
d72d1aabe6
Disable creating public polls in channels.
2020-01-23 10:09:33 +03:00
John Preston
d57905c2b3
Update API scheme to layer 109.
2020-01-23 10:09:33 +03:00