mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Base custom chat themes on a separate dark theme.
This commit is contained in:
@@ -76,6 +76,7 @@ namespace Window {
|
||||
namespace {
|
||||
|
||||
constexpr auto kMaxChatEntryHistorySize = 50;
|
||||
constexpr auto kNightBaseFile = ":/gui/night-custom-base.tdesktop-theme"_cs;
|
||||
|
||||
[[nodiscard]] Fn<void(style::palette&)> PreparePaletteCallback(
|
||||
bool dark,
|
||||
@@ -95,7 +96,7 @@ constexpr auto kMaxChatEntryHistorySize = 50;
|
||||
if (dark) {
|
||||
auto instance = Instance();
|
||||
const auto loaded = LoadFromFile(
|
||||
i->path,
|
||||
kNightBaseFile.utf16(),
|
||||
&instance,
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
Reference in New Issue
Block a user