2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Allow share and remove cloud themes.

This commit is contained in:
John Preston
2019-09-08 20:05:26 +03:00
parent c92a9585e1
commit a770b5d4cd
7 changed files with 99 additions and 2 deletions

View File

@@ -1245,6 +1245,12 @@ void ToggleNightMode(const QString &path) {
Background()->toggleNightMode(path);
}
void ResetToSomeDefault() {
Background()->reapplyWithNightMode(
IsNightMode() ? NightThemePath() : QString(),
IsNightMode());
}
bool LoadFromContent(
const QByteArray &content,
not_null<Instance*> out,