2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Add some HTML design to export, except messages.

NB Testing the layout, the app is not in a working condition.
This commit is contained in:
John Preston
2018-06-29 22:10:21 +01:00
parent e466dc9fc7
commit 66822f7333
29 changed files with 1280 additions and 348 deletions

View File

@@ -90,6 +90,15 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "styles/style_history.h"
#include "styles/style_boxes.h"
#ifdef _DEBUG
#include "export/output/export_output_html.h"
#include "export/output/export_output_stats.h"
#include "export/view/export_view_panel_controller.h"
#include "platform/platform_specific.h"
#else
#error "test"
#endif
namespace {
bool IsForceLogoutNotification(const MTPDupdateServiceNotification &data) {
@@ -252,6 +261,10 @@ MainWidget::MainWidget(
Messenger::Instance().mtp()->setUpdatesHandler(rpcDone(&MainWidget::updateReceived));
Messenger::Instance().mtp()->setGlobalFailHandler(rpcFail(&MainWidget::updateFail));
Export::Output::HtmlWriter writer;
writer.produceTestExample(psDownloadPath(), Export::View::PrepareEnvironment());
crl::on_main([] { App::quit(); });
_ptsWaiter.setRequesting(true);
updateScrollColors();
setupConnectingWidget();