Fix scrollbar highlight colors when changing message history limit (#4288)
* Use correct messagesLimit for Scrollbar * Update CHANGELOG.md Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
- Bugfix: Fixed tooltip images not appearing if mouse hovered only first pixel. (#4268)
|
- Bugfix: Fixed tooltip images not appearing if mouse hovered only first pixel. (#4268)
|
||||||
- Bugfix: Fixed crash that could occur when closing down a split at the wrong time. (#4277)
|
- Bugfix: Fixed crash that could occur when closing down a split at the wrong time. (#4277)
|
||||||
- Bugfix: Fixed crash that could occur when closing down the last of a channel when reloading emotes. (#4278)
|
- Bugfix: Fixed crash that could occur when closing down the last of a channel when reloading emotes. (#4278)
|
||||||
|
- Bugfix: Fixed scrollbar highlight colors when changing message history limit. (#4288)
|
||||||
- Dev: Remove protocol from QApplication's Organization Domain (so changed from `https://www.chatterino.com` to `chatterino.com`). (#4256)
|
- Dev: Remove protocol from QApplication's Organization Domain (so changed from `https://www.chatterino.com` to `chatterino.com`). (#4256)
|
||||||
- Dev: Ignore `WM_SHOWWINDOW` hide events, causing fewer attempted rescales. (#4198)
|
- Dev: Ignore `WM_SHOWWINDOW` hide events, causing fewer attempted rescales. (#4198)
|
||||||
- Dev: Migrated to C++ 20 (#4252, #4257)
|
- Dev: Migrated to C++ 20 (#4252, #4257)
|
||||||
|
|||||||
@@ -16,9 +16,10 @@
|
|||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
Scrollbar::Scrollbar(ChannelView *parent)
|
Scrollbar::Scrollbar(size_t messagesLimit, ChannelView *parent)
|
||||||
: BaseWidget(parent)
|
: BaseWidget(parent)
|
||||||
, currentValueAnimation_(this, "currentValue_")
|
, currentValueAnimation_(this, "currentValue_")
|
||||||
|
, highlights_(messagesLimit)
|
||||||
{
|
{
|
||||||
resize(int(16 * this->scale()), 100);
|
resize(int(16 * this->scale()), 100);
|
||||||
this->currentValueAnimation_.setDuration(150);
|
this->currentValueAnimation_.setDuration(150);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class Scrollbar : public BaseWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Scrollbar(ChannelView *parent = nullptr);
|
Scrollbar(size_t messagesLimit, ChannelView *parent = nullptr);
|
||||||
|
|
||||||
void addHighlight(ScrollbarHighlight highlight);
|
void addHighlight(ScrollbarHighlight highlight);
|
||||||
void addHighlightsAtStart(
|
void addHighlightsAtStart(
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ ChannelView::ChannelView(BaseWidget *parent, Split *split, Context context,
|
|||||||
size_t messagesLimit)
|
size_t messagesLimit)
|
||||||
: BaseWidget(parent)
|
: BaseWidget(parent)
|
||||||
, split_(split)
|
, split_(split)
|
||||||
, scrollBar_(new Scrollbar(this))
|
, scrollBar_(new Scrollbar(messagesLimit, this))
|
||||||
, highlightAnimation_(this)
|
, highlightAnimation_(this)
|
||||||
, context_(context)
|
, context_(context)
|
||||||
, messages_(messagesLimit)
|
, messages_(messagesLimit)
|
||||||
|
|||||||
Reference in New Issue
Block a user