add some comments
reformat
This commit is contained in:
@@ -212,7 +212,8 @@ void Theme::actuallyUpdate(double hue, double multiplier)
|
||||
this->messages.backgrounds.highlighted =
|
||||
blendColors(themeColor, this->messages.backgrounds.regular, 0.8);
|
||||
} else {
|
||||
this->messages.backgrounds.highlighted = QColor(getSettings()->highlightColor);
|
||||
this->messages.backgrounds.highlighted =
|
||||
QColor(getSettings()->highlightColor);
|
||||
}
|
||||
|
||||
this->messages.backgrounds.subscription =
|
||||
|
||||
@@ -32,9 +32,17 @@ public:
|
||||
static const int uiScaleMax;
|
||||
|
||||
void showSettingsDialog();
|
||||
|
||||
// Show the account selector widget at point
|
||||
void showAccountSelectPopup(QPoint point);
|
||||
|
||||
// Tell a channel (or all channels if channel is nullptr) to redo their
|
||||
// layout
|
||||
void layoutChannelViews(Channel *channel = nullptr);
|
||||
|
||||
// Force all channel views to redo their layout
|
||||
// This is called, for example, when the emote scale or timestamp format has
|
||||
// changed
|
||||
void forceLayoutChannelViews();
|
||||
void repaintVisibleChatWidgets(Channel *channel = nullptr);
|
||||
void repaintGifEmotes();
|
||||
@@ -57,10 +65,16 @@ public:
|
||||
void updateWordTypeMask();
|
||||
|
||||
pajlada::Signals::NoArgSignal repaintGifs;
|
||||
|
||||
// This signal fires whenever views rendering a channel, or all views if the
|
||||
// channel is a nullptr, need to redo their layout
|
||||
pajlada::Signals::Signal<Channel *> layout;
|
||||
|
||||
pajlada::Signals::NoArgSignal wordFlagsChanged;
|
||||
|
||||
// Sends an alert to the main window
|
||||
// It reads the `longAlert` setting to decide whether the alert will expire
|
||||
// or not
|
||||
void sendAlert();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user