MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / InitTextOptions

Function InitTextOptions

Telegram/SourceFiles/ui/text/text_options.cpp:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103} // namespace
104
105void InitTextOptions() {
106 TextDialogOptions.maxw = st::columnMaximalWidthLeft * 2;
107 WebpageTitleOptions.maxh = st::webPageTitleFont->height * 2;
108 WebpageTitleOptions.maxw
109 = WebpageDescriptionOptions.maxw
110 = st::msgMaxWidth
111 - st::msgPadding.left()
112 - st::messageQuoteStyle.padding.left()
113 - st::messageQuoteStyle.padding.right()
114 - st::msgPadding.right();
115}
116
117const TextParseOptions &ItemTextDefaultOptions() {
118 return HistoryTextOptions;

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected