Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
chat_style.h
Go to the documentation of this file.
1#ifndef CHAT_STYLE_H
2#define CHAT_STYLE_H
3
4#include <QString>
5
13class ChatStyle {
14public:
20 static QString GetChatStyleSheet();
21
28 static QString GetSentMessageStyle();
29
36 static QString GetReceivedMessageStyle();
37
44 static QString GetSystemMessageStyle();
45
52 static QString GetInputFieldStyle();
53
60 static QString GetSendButtonStyle();
61
68 static QString GetAttachButtonStyle();
69
75 static QString GetScrollBarStyle();
76};
77
78#endif // CHAT_STYLE_H
Provides static methods to retrieve CSS stylesheets for various chat UI elements.
Definition chat_style.h:13
static QString GetSendButtonStyle()
Gets the stylesheet for the "Send" message button (QPushButton). Defines background,...
Definition chat_style.cpp:91
static QString GetChatStyleSheet()
Gets the base stylesheet for the main chat view container and header. Defines background,...
Definition chat_style.cpp:5
static QString GetSystemMessageStyle()
Gets the stylesheet for system messages (e.g., user joined/left, errors). Defines background,...
Definition chat_style.cpp:56
static QString GetInputFieldStyle()
Gets the stylesheet for the chat message input field (QLineEdit). Defines background,...
Definition chat_style.cpp:70
static QString GetAttachButtonStyle()
Gets the stylesheet for the "Attach File" button (QPushButton). Defines background,...
Definition chat_style.cpp:115
static QString GetReceivedMessageStyle()
Gets the stylesheet for message bubbles received from other users. Defines background,...
Definition chat_style.cpp:43
static QString GetScrollBarStyle()
Gets the stylesheet for the vertical scrollbar used in the chat view. Defines the appearance of the s...
Definition chat_style.cpp:139
static QString GetSentMessageStyle()
Gets the stylesheet for message bubbles sent by the current user. Defines background,...
Definition chat_style.cpp:30