Commit Graph

66 Commits

Author SHA1 Message Date
levlam
66170213fc Add store/parse_background. 2021-09-24 16:03:01 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
6801eabb8d Add some FileView emptiness checks. 2021-09-16 16:58:30 +03:00
levlam
075d004b9f Replace getChatThemes with updateChatThemes. 2021-09-13 15:55:01 +03:00
levlam
7dffe5aabe Use Promise instead of RequestActor in getBackgrounds. 2021-09-03 09:07:18 +03:00
levlam
3e77161e46 Don't replace main background type if appropriate. 2021-08-27 12:10:51 +03:00
levlam
bba085318e Return BackgroundType from on_get_background. 2021-08-24 17:13:51 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
138535ccf8 Store multiple local backgrounds. 2021-06-10 18:58:19 +03:00
levlam
64df3b4b3c Remove unneeded add_local_background method and allow non-default installed backgrounds without file. 2021-06-10 04:55:58 +03:00
levlam
75fc042e09 Replace add_fill_background with add_local_background. 2021-06-10 04:44:39 +03:00
levlam
aba5b1ab7c Use autoincremented IDs for local backgrounds. 2021-06-10 03:57:58 +03:00
levlam
636aa3f74e Improve BackgroundType constructor. 2021-06-10 02:09:16 +03:00
levlam
958e1a83b1 Make BackgroundType fields private. 2021-06-10 01:29:42 +03:00
levlam
7b2c6bdbdb Move BackgroundType methods inside the class. 2021-06-09 21:19:08 +03:00
levlam
d768a194f6 Add BackgroundType::get_mime_type. 2021-06-09 20:58:39 +03:00
levlam
2657f41775 Use BackgroundType::has_file if possible. 2021-06-09 20:48:15 +03:00
levlam
4a35b3e621 Remove BackgroundType::is_server. 2021-06-09 19:19:48 +03:00
levlam
5188a5b5e7 Allow to set non-local filled backgrounds. 2021-06-09 19:08:47 +03:00
levlam
d10cc1eb77 Add and use BackgroundId::is_local. 2021-06-09 17:14:10 +03:00
levlam
c30ccd1e0d Support removing Fill backgrounds from default list. 2021-06-08 01:10:19 +03:00
levlam
36bcbcb418 Simplify background unsaving. 2021-06-07 20:46:57 +03:00
levlam
3e0e9f5291 Parse background parameters in searchBackground. 2021-05-26 20:25:37 +03:00
levlam
bb957644cf Add td_api::backgroundFillFreeformGradient. 2021-05-21 01:49:59 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
e0adaebb91 Unify logging of request responses.
GitOrigin-RevId: ae4c0a3881a89aa235baa08c07ec97a914437d8c
2020-09-24 16:08:04 +03:00
levlam
cb3f390a92 Unify "log event" spelling.
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
8d0fa5ce77 Add td_api::thumbnail.
GitOrigin-RevId: b74fa62e415816ce63d3bd4415bd2bb8d6aa3f8b
2020-05-31 22:22:15 +03:00
levlam
b29a945b1a Ignore SQLite key-value responses after close.
GitOrigin-RevId: a91a2dbbf8efcda91959aabfcaca964caa6fe3c3
2020-05-16 02:25:03 +03:00
levlam
bcc8dbc158 Use Global::is_expected_error whenever appropriate.
GitOrigin-RevId: aba8ee6e3dc1ab6e680a5ae10f6c3d217ab0a8dc
2020-03-31 00:35:58 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
051acb85af Fix setting the same background.
GitOrigin-RevId: 2f1d147f32d66916683e1a18bf4734dd8ad70407
2019-12-23 01:29:19 +03:00
levlam
68a211a368 Add rotation_angle support to gradient background fill.
GitOrigin-RevId: ebe65367b2cad8777e6e87cf30815a1f9545da9a
2019-12-22 22:32:01 +03:00
levlam
b48c465b0d Replace GradientInfo with BackgroundFill internally.
GitOrigin-RevId: 62f72414e933e77e79c2d99828988122758956d2
2019-12-22 21:01:51 +03:00
levlam
e9bb8f2a29 Remove public get_color_hex_string method.
GitOrigin-RevId: cfc3100b814766410fadc6749522457f7e5ad514
2019-12-22 04:42:22 +03:00
levlam
8be871bad7 Add BackgroundType::get_link() method.
GitOrigin-RevId: be2522d94742608e61adbef223a9b161e87b6aa3
2019-12-22 04:34:39 +03:00
levlam
e1f1253e21 Better Gradientinfo implementation.
GitOrigin-RevId: cc7a3c0a94cd2816c2090981f78ddcedd2128d1f
2019-12-22 04:02:39 +03:00
levlam
04eb931c72 Update layer 107.
GitOrigin-RevId: d8ab8b2016d368f6e4f03c6cf1440232ab66e7f2
2019-12-22 02:56:51 +03:00
levlam
88c5679b13 Add backgroundTypeGradient.
GitOrigin-RevId: db09e39cb4384cd85f53cbc8719b2b2b75206406
2019-12-21 05:28:07 +03:00
levlam
1e018da7b8 Various fixes.
GitOrigin-RevId: b09e5fda6d25bd027f6bcbcbbe8324567b8ddcf8
2019-10-22 20:01:15 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
c03b2396fa Fix MSVC 15.3 warnings.
GitOrigin-RevId: 798de56bef2ea061d996e5bf2feec75f4800c32e
2019-09-08 23:40:30 +03:00
levlam
98b8929932 Fix includes.
GitOrigin-RevId: 7b62de39f2d62ac8c14c24fb83041c717ba49873
2019-07-23 01:50:12 +03:00
levlam
6dd2a822ad Cache backgorund by their names.
GitOrigin-RevId: 2e5c5ed30185f53240ab806f866bd4c83ee5da51
2019-07-19 05:34:49 +03:00
levlam
c6d7daa460 Improve add_background.
GitOrigin-RevId: cac29a57fb9d76489a0d5a6da83d75c7af075862
2019-07-19 03:50:51 +03:00
levlam
3928917f77 Add Background store and parse.
GitOrigin-RevId: 7c6e34fc2af991ce090356c09f65df37b742775c
2019-07-18 22:12:46 +03:00