mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-05 22:29:34 +00:00
Base custom chat themes on a separate dark theme.
This commit is contained in:
parent
155bbed3f4
commit
2c7d8858c0
BIN
Telegram/Resources/night-custom-base.tdesktop-theme
Normal file
BIN
Telegram/Resources/night-custom-base.tdesktop-theme
Normal file
Binary file not shown.
@ -60,6 +60,7 @@
|
|||||||
<file alias="day-blue.tdesktop-theme">../../day-blue.tdesktop-theme</file>
|
<file alias="day-blue.tdesktop-theme">../../day-blue.tdesktop-theme</file>
|
||||||
<file alias="night.tdesktop-theme">../../night.tdesktop-theme</file>
|
<file alias="night.tdesktop-theme">../../night.tdesktop-theme</file>
|
||||||
<file alias="night-green.tdesktop-theme">../../night-green.tdesktop-theme</file>
|
<file alias="night-green.tdesktop-theme">../../night-green.tdesktop-theme</file>
|
||||||
|
<file alias="night-custom-base.tdesktop-theme">../../night-custom-base.tdesktop-theme</file>
|
||||||
<file alias="icons/calls/hands.lottie">../../icons/calls/hands.lottie</file>
|
<file alias="icons/calls/hands.lottie">../../icons/calls/hands.lottie</file>
|
||||||
<file alias="icons/calls/voice.lottie">../../icons/calls/voice.lottie</file>
|
<file alias="icons/calls/voice.lottie">../../icons/calls/voice.lottie</file>
|
||||||
<file alias="recording/info_audio.svg">../../art/recording/recording_info_audio.svg</file>
|
<file alias="recording/info_audio.svg">../../art/recording/recording_info_audio.svg</file>
|
||||||
|
@ -76,6 +76,7 @@ namespace Window {
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kMaxChatEntryHistorySize = 50;
|
constexpr auto kMaxChatEntryHistorySize = 50;
|
||||||
|
constexpr auto kNightBaseFile = ":/gui/night-custom-base.tdesktop-theme"_cs;
|
||||||
|
|
||||||
[[nodiscard]] Fn<void(style::palette&)> PreparePaletteCallback(
|
[[nodiscard]] Fn<void(style::palette&)> PreparePaletteCallback(
|
||||||
bool dark,
|
bool dark,
|
||||||
@ -95,7 +96,7 @@ constexpr auto kMaxChatEntryHistorySize = 50;
|
|||||||
if (dark) {
|
if (dark) {
|
||||||
auto instance = Instance();
|
auto instance = Instance();
|
||||||
const auto loaded = LoadFromFile(
|
const auto loaded = LoadFromFile(
|
||||||
i->path,
|
kNightBaseFile.utf16(),
|
||||||
&instance,
|
&instance,
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
Loading…
Reference in New Issue
Block a user