Commit Graph

67 Commits

Author SHA1 Message Date
John Preston 36486a3d73 Fix creating a theme from a default one.
Regression was introduced in 79cc797aff.
2021-08-18 14:52:57 +03:00
John Preston c79cd0b692 Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
John Preston 4276b6cce0 Use rpl for Window::Theme::Background updates. 2021-07-15 16:42:36 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
23rd b422ec025e Removed Ui::show from classes that have pointer to Controller. 2021-06-17 10:57:45 +04:00
John Preston eb8f709943 Show members list in PanelMode::Wide. 2021-05-24 22:45:13 +04:00
Ilya Fedin c4dcf064d5 Avoid multiple .arg usage as suggested by clazy 2021-03-13 19:08:33 +03:00
23rd 0b4d0b83c2 Removed App::wnd from classes that have pointer to Window::Controller. 2021-02-04 18:13:04 +04:00
John Preston d40768f6b0 Use separate styles for group call boxes. 2020-12-01 09:45:23 +03:00
23rd f81271d1fe Simplified confirmed callback for ConfirmBox instances. 2020-09-29 19:03:29 +03:00
John Preston 05df4f832b Fix crash in theme editor closing. 2020-06-05 14:00:06 +04:00
John Preston 74d848311b Replace str_const with base::const_string. 2020-01-29 12:47:50 +03:00
John Preston d63e50944a Update submodules to the latest spellcheck. 2019-11-05 13:23:56 +03:00
John Preston 30a1bd7ba2 Use base::call_delayed. 2019-10-19 12:27:56 +04:00
John Preston a6c84c36c0 Use layers and boxes from lib_ui. 2019-10-19 12:27:52 +04:00
John Preston c5845f17ae Remove twidget header. 2019-10-01 23:59:46 +03:00
John Preston 0c713a930a Remove app.h / facades.h from precompiled header. 2019-10-01 23:59:46 +03:00
John Preston ca45fb617e Fix applying background after theme edit. 2019-09-10 00:36:16 +03:00
John Preston dfd63e66ff Add import theme to the editor. 2019-09-09 23:58:41 +03:00
John Preston cd5ef069c0 Ask to unlock Telegram before saving theme. 2019-09-09 20:26:53 +03:00
John Preston 423254f7eb Fix theme editor closing in a small window.
Fixes #6510.
2019-09-09 18:37:04 +03:00
John Preston 8bf6013342 Add 'Export theme' / 'Show palette file' menu. 2019-09-09 17:44:08 +03:00
John Preston 3d78c637a2 Strip editor information from palette. 2019-09-08 21:21:54 +03:00
John Preston bb7018424a Copy adjusted color values to editor. 2019-09-08 21:00:31 +03:00
John Preston cedb2d31af Check palette changes on editor cancel. 2019-09-08 16:40:15 +03:00
John Preston a773ad7b02 Fix reverting edited theme values. 2019-09-06 19:31:07 +03:00
John Preston 95ee17bd54 Optimize theme edit data clearing. 2019-09-06 19:31:07 +03:00
John Preston 910f16312c Show not supported themes placeholders. 2019-09-06 19:31:07 +03:00
John Preston 4951eeac98 Allow creating desktop part of multi-theme. 2019-09-06 19:31:07 +03:00
John Preston 7485f0c960 Don't change real theme when editing. 2019-09-06 19:31:07 +03:00
John Preston 229bc56cc8 Upload saved theme to the cloud. 2019-09-06 19:31:06 +03:00
John Preston 4b045a602c Add a box for new theme creating. 2019-09-06 19:31:06 +03:00
John Preston 117d6192fa Ensure contrast in colorized themes. 2019-08-29 10:01:28 +03:00
John Preston a3e993253c Keep colorized theme in editor. 2019-08-29 10:01:28 +03:00
John Preston 38e4daacd4 Use HSL color space for accent colors. 2019-08-29 10:01:28 +03:00
John Preston 529ef64257 Sort colors by hue distance. 2019-08-27 19:10:37 +03:00
John Preston 4917ca7b32 Remove all legacy global namespace langs. 2019-06-21 11:06:52 +02:00
John Preston 87fc066e67 Use tr:: instead of lang(). 2019-06-21 11:06:51 +02:00
John Preston a7c8feaecb Use tr:: instead of langFactory and __rich. 2019-06-21 11:06:50 +02:00
John Preston d1d98c3bb1 Use tr:: instead of langFactory in box titles. 2019-06-21 11:06:50 +02:00
John Preston 8ed433cc01 Use tr:: instead of langFactory in input fields. 2019-06-21 11:06:49 +02:00
John Preston 1894b8fcf7 Handle t.me/bg links with wallpapers / colors. 2019-01-18 16:41:07 +04:00
John Preston 595134cab5 Move image-related modules to ui/image/. 2018-11-04 15:51:37 +04:00
John Preston 2f408cd773 Remove old settings. 2018-09-19 19:22:14 +03:00
John Preston 4f16ad6757 Move old settings to old_settings. 2018-09-19 19:22:12 +03:00
John Preston cb338e330f Allow independently change default / night themes. 2018-07-31 22:56:03 +03:00
John Preston dd81f5d59f Replace base::lambda with shorter term.
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston 67ea175fc6 Show choose file box over the passport panel. 2018-06-03 23:16:37 +03:00
John Preston bfc748cd31 Pass modifiers inside InputField submitted signal.
Also use non-MOC connections for all InputFields.
Also use Ctrl/Cmd + Enter to submit fast share box.
Fixes #4769.
2018-05-31 15:20:28 +03:00
John Preston bee474f6e9 Remove history_item and layout from pch.
Also move some code to separate modules.
Also create history item views by Window::Controller.
2018-02-08 12:20:47 +03:00