Commit Graph

534 Commits

Author SHA1 Message Date
Ilya Fedin bb94507af1 Use UrlClickHandler::Open instead of File::OpenUrl 2020-10-30 11:52:10 +03:00
Ilya Fedin 8f5b136003 Implement possibility to hide taskbar icon on Linux 2020-10-30 11:27:42 +03:00
Ilya Fedin a38b4f039a Use some methods from lib_base 2020-10-30 10:52:49 +03:00
23rd 41cb37b091 Added labels update in privacy box by timer. 2020-09-30 18:48:35 +03:00
23rd 163e549708 Added count of active sessions as label of button in settings. 2020-09-30 18:48:34 +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
23rd f81271d1fe Simplified confirmed callback for ConfirmBox instances. 2020-09-29 19:03:29 +03:00
John Preston 4a94a0c438 Show replies dialog correctly. 2020-09-29 19:03:24 +03:00
John Preston f0e1d2fd02 'base::optional_variant<' -> 'std::variant<v::null_t,' 2020-09-29 19:03:19 +03:00
John Preston 55edb3bdfe Update API scheme to layer 119. Count replies. 2020-09-29 19:03:18 +03:00
John Preston 883a62c0a2 Return 'testmode' code when no authed accounts. 2020-09-29 19:03:18 +03:00
Ilya Fedin 70c993774a Get rid of redudant cmake options 2020-09-29 18:24:16 +03:00
John Preston 4d2041ae48 Share video capturer between call and settings. 2020-08-21 17:52:13 +04:00
John Preston 4672e3d068 Improve calls settings (camera / microphone). 2020-08-21 17:52:13 +04:00
John Preston 41c98a6c49 Fix build on macOS. 2020-08-21 17:52:13 +04:00
John Preston aa87d627c9 Allow to choose camera device in Settings. 2020-08-21 17:52:13 +04:00
John Preston e782e065a0 Use audio device enumeration from lib_webrtc. 2020-08-21 17:52:12 +04:00
John Preston 3aea9cb3ca Add archive and mute settings editing. 2020-07-25 11:24:37 +04:00
John Preston 511067981d Forbid auto-night mode with theme editor. 2020-07-24 10:01:37 +04:00
23rd 9e0b046213 Fixed handling of language switch for connection type in intro settings. 2020-07-23 13:00:55 +03:00
23rd d46b9d024e Fixed handling of language switch for theme names in intro settings. 2020-07-23 13:00:55 +03:00
23rd 52cd9f8cbf Fixed handling of language switch for checkboxes in intro settings. 2020-07-23 13:00:55 +03: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 fc3a9d98c0 Fixed phrase translate of option for native window frame. 2020-07-22 10:31:32 +04:00
John Preston 52e780b065 Fix a memory leak using a recursive lambda. 2020-07-14 19:03:14 +04: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
John Preston f10b2194e6 Add option for a native window frame.
Fixes #2958.
2020-07-07 21:34:25 +04:00
John Preston 90c6ff3e41 Fix Settings layout. 2020-07-01 22:33:13 +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 a95b756111 Fix settings saving.
Regression was introduced in 5d6a494934.

Fixes #8168.
2020-06-30 13:49:22 +04:00
Ilya Fedin a726c6411b Don't use custom notificaions on Wayland even with TDESKTOP_DISABLE_DBUS_INTEGRATION 2020-06-29 16:53:50 +04:00
John Preston 79a361ba43 Move call management to Core::App. 2020-06-25 21:57:36 +04:00
John Preston 65050bf9dd Move export management to Core::App. 2020-06-25 11:14:05 +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
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 3bb352e0e5 Fix build and working on macOS. 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 bc144377c0 Support logout of a secondary account. 2020-06-23 21:53:41 +04:00
John Preston ab5796c117 Several working accounts together. 2020-06-23 21:53:40 +04:00
23rd 9faf15943a Fixed build for macOS. 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 598fb67cdf Remove Session::Exists() global access point. 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
Ilya Fedin 68fde210c6 Platform::IsWayland could be used on any platform now 2020-06-23 21:24:44 +04:00
Ilya Fedin 1beada6e4a Hide notification position in settings on Wayland 2020-06-19 06:28:01 +04:00
John Preston a56ecfebeb Version 2.1.12: Fix build on macOS. 2020-06-17 22:36:53 +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
Ilya Fedin 56de3194ef Never use custom notifications on Wayland since there are no positioning API 2020-06-17 20:32:50 +04:00
Ilya Fedin e098922a4b Add Platform::AutostartSupported 2020-06-01 18:25:21 +04:00
Ilya Fedin be96bf2812 Set parent for dialogs only on Wayland 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 6513422e40 Remove legacy image-related code. 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
Ilya Fedin 3479a4ec59 Add parent, minimum and maximum size to notifications 2020-05-25 09:29:15 +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
Ilya Fedin 7409d615a3 Add a cheat code to enable freetype on Windows and macOS 2020-05-10 17:09:59 +04:00
Ilya Fedin 95b4f56b86 Don't use QDesktopServices::openUrl on snap 2020-05-01 12:06:01 +04:00
John Preston dd78052f92 Use new toast style structure. 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 0c2d8f1b6e Allow open folders by 'folders' code. 2020-03-27 20:36:06 +04:00
John Preston fdabdc3626 Refresh filter chats count in filter settings. 2020-03-27 20:36:06 +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 568325f201 Show folders in settings async. 2020-03-27 20:36:05 +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 71f7aae948 Replace dialogs mode with filters. 2020-03-27 20:36:01 +04:00
Ilya Fedin 8b704f9bd7 Fix escaping in linux launcher creating 2020-02-27 11:51:28 +04:00
23rd bc6e1e7a0d Added new setting for automatic dictionaries download. 2020-02-24 18:48:33 +03:00
23rd 9daf362df6 Added label with state to "Manage dictionaries" button. 2020-02-24 18:48:33 +03:00
23rd 4bd34b35ae Added button to advanced settings for dictionary management box. 2020-02-24 18:48:33 +03:00
23rd 65a7f2e7d8 Added dictionary management box. 2020-02-24 18:48:33 +03:00
John Preston c8d2ac9583 Move message ownership to History. 2020-02-21 18:48:29 +04:00
Ilya Fedin 05eabfd539 Add autostart support for linux 2020-01-28 16:44:27 +03:00
23rd b4fbff0b6c Fixed build for Windows with c++latest. 2020-01-21 20:29:14 +03:00
John Preston 4eeac7dc18 Fix whitespace and indentation errors.
See #6672, thanks Sea-n.
2020-01-02 14:25:53 +03:00
Nicholas Guriev 22585ca919 Activate spellchecking on Linux 2019-12-29 18:13:42 +03:00
John Preston 616957e46f Add file size limit to autoplay settings. 2019-12-24 13:09:04 +03:00
John Preston c4319a7370 Add a separate setting for video files autoplay. 2019-12-19 14:48:53 +03:00
John Preston 8e8c356659 Use streamed video for GIFs in History. 2019-12-10 15:49:37 +03:00
John Preston 431b7445c3 Allow editing sensitive content filtering. 2019-12-09 15:59:08 +03:00
John Preston ee94e78533 All mtproto downloads using DownloadMtprotoTask. 2019-12-05 11:32:33 +03:00
John Preston e943264823 Pass MTP::Instance to MTP::Sender. 2019-11-29 15:36:05 +03:00
John Preston 08bfe6f1c1 Extract mtproto key generation code. 2019-11-15 16:16:32 +03:00