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

Method tile

Telegram/SourceFiles/window/themes/window_theme.cpp:928–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928bool ChatBackground::tile() const {
929 if (!started()) {
930 const auto &set = nightMode()
931 ? _localStoredTileNightValue
932 : _localStoredTileDayValue;
933 if (set.has_value()) {
934 return *set;
935 }
936 }
937 return nightMode() ? _tileNightValue : _tileDayValue;
938}
939
940bool ChatBackground::tileDay() const {
941 if (!started() && _localStoredTileDayValue.has_value()) {

Callers 8

setTileMethod · 0.95
initThemePreviewMethod · 0.80
DefaultChatThemeOnFunction · 0.80
setupMethod · 0.80
initMethod · 0.80
SetupChatBackgroundFunction · 0.80
SetupCloudThemesFunction · 0.80

Calls 2

startedFunction · 0.85
has_valueMethod · 0.80

Tested by

no test coverage detected