mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Colors added in palette for selected messages.
User names in groups, text and links in messages and names in files and shared contacts not can have different colors in plain inbox / outbox messages and in selected messages. Now we can use a separate color for selected parts in Text.
This commit is contained in:
@@ -203,8 +203,6 @@ static constexpr int kUserColorsCount = 8;
|
||||
static constexpr int kChatColorsCount = 4;
|
||||
static constexpr int kChannelColorsCount = 4;
|
||||
|
||||
style::color peerColor(int index);
|
||||
|
||||
class EmptyUserpic {
|
||||
public:
|
||||
EmptyUserpic();
|
||||
@@ -311,9 +309,9 @@ public:
|
||||
LoadedStatus loadedStatus = NotLoaded;
|
||||
MTPinputPeer input;
|
||||
|
||||
int colorIndex;
|
||||
style::color color;
|
||||
|
||||
int colorIndex() const {
|
||||
return _colorIndex;
|
||||
}
|
||||
void setUserpic(ImagePtr userpic);
|
||||
void paintUserpic(Painter &p, int x, int y, int size) const;
|
||||
void paintUserpicLeft(Painter &p, int x, int y, int w, int size) const {
|
||||
@@ -364,6 +362,8 @@ private:
|
||||
|
||||
ClickHandlerPtr _openLink;
|
||||
|
||||
int _colorIndex = 0;
|
||||
|
||||
};
|
||||
|
||||
class BotCommand {
|
||||
|
Reference in New Issue
Block a user