mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Correct spoiler colors in fully selected messages.
This commit is contained in:
@@ -55,49 +55,62 @@ dialogsTextWidthMin: 150px;
|
||||
dialogsTextPalette: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsTextFgService;
|
||||
monoFg: dialogsTextFg;
|
||||
spoilerFg: dialogsTextFg;
|
||||
}
|
||||
dialogsTextPaletteOver: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsTextFgServiceOver;
|
||||
monoFg: dialogsTextFgOver;
|
||||
spoilerFg: dialogsTextFgOver;
|
||||
}
|
||||
dialogsTextPaletteActive: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsTextFgServiceActive;
|
||||
monoFg: dialogsTextFgActive;
|
||||
spoilerFg: dialogsTextFgActive;
|
||||
}
|
||||
dialogsTextPaletteDraft: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsDraftFg;
|
||||
monoFg: dialogsTextFg;
|
||||
spoilerFg: dialogsTextFg;
|
||||
}
|
||||
dialogsTextPaletteDraftOver: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsDraftFgOver;
|
||||
monoFg: dialogsTextFgOver;
|
||||
spoilerFg: dialogsTextFgOver;
|
||||
}
|
||||
dialogsTextPaletteDraftActive: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsDraftFgActive;
|
||||
monoFg: dialogsTextFgActive;
|
||||
spoilerFg: dialogsTextFgActive;
|
||||
}
|
||||
dialogsTextPaletteTaken: TextPalette(defaultTextPalette) {
|
||||
linkFg: boxTextFgGood;
|
||||
monoFg: dialogsTextFg;
|
||||
spoilerFg: dialogsTextFg;
|
||||
}
|
||||
dialogsTextPaletteTakenOver: TextPalette(defaultTextPalette) {
|
||||
linkFg: boxTextFgGood;
|
||||
monoFg: dialogsTextFgOver;
|
||||
spoilerFg: dialogsTextFgOver;
|
||||
}
|
||||
dialogsTextPaletteTakenActive: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsDraftFgActive;
|
||||
monoFg: dialogsTextFgActive;
|
||||
spoilerFg: dialogsTextFgActive;
|
||||
}
|
||||
dialogsTextPaletteArchive: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsArchiveFg;
|
||||
monoFg: dialogsArchiveFg;
|
||||
spoilerFg: dialogsArchiveFg;
|
||||
}
|
||||
dialogsTextPaletteArchiveOver: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsArchiveFgOver;
|
||||
monoFg: dialogsArchiveFgOver;
|
||||
spoilerFg: dialogsArchiveFgOver;
|
||||
}
|
||||
dialogsTextPaletteArchiveActive: TextPalette(defaultTextPalette) {
|
||||
linkFg: dialogsTextFgActive;
|
||||
monoFg: dialogsTextFgActive;
|
||||
spoilerFg: dialogsTextFgActive;
|
||||
}
|
||||
|
||||
dialogsEmptyHeight: 160px;
|
||||
|
@@ -632,9 +632,7 @@ void ChatStyle::make(
|
||||
make(my.selectLinkFg, original.selectLinkFg);
|
||||
make(my.selectMonoFg, original.selectMonoFg);
|
||||
make(my.selectOverlay, original.selectOverlay);
|
||||
make(my.spoilerBg, original.spoilerBg);
|
||||
make(my.spoilerActiveBg, original.spoilerActiveBg);
|
||||
make(my.spoilerActiveFg, original.spoilerActiveFg);
|
||||
make(my.spoilerFg, original.spoilerFg);
|
||||
}
|
||||
|
||||
void ChatStyle::make(
|
||||
|
@@ -987,9 +987,7 @@ void Generator::setTextPalette(const style::TextPalette &st) {
|
||||
_textPalette.selectLinkFg = st.selectLinkFg[_palette].clone();
|
||||
_textPalette.selectMonoFg = st.selectMonoFg[_palette].clone();
|
||||
_textPalette.selectOverlay = st.selectOverlay[_palette].clone();
|
||||
_textPalette.spoilerBg = st.spoilerBg[_palette].clone();
|
||||
_textPalette.spoilerActiveBg = st.spoilerActiveBg[_palette].clone();
|
||||
_textPalette.spoilerActiveFg = st.spoilerActiveFg[_palette].clone();
|
||||
_textPalette.spoilerFg = st.spoilerFg[_palette].clone();
|
||||
_p->setTextPalette(_textPalette);
|
||||
}
|
||||
|
||||
|
Submodule Telegram/lib_ui updated: bd7098ef42...4ff5bc5773
Reference in New Issue
Block a user