mirror-chatterino2/src/singletons
Leon Richardt 95c909b337
Better Highlights: Fix Wrong Color for Migrated Phrases (#1568)
* Better Highlights: Fix wrong color for migrated phrases

Prior to this commit, no default color was set when an "old" highlight
phrase (one added prior to #1320 / 5957551) was deserialized. This
commit makes highlight phrases uses the default self-highlight color for
these situations. This approach is reasonably sensible since that color
is also similar to the old highlight color.

Fixes #1565.

* Update default self-highlight color

The new default color was suggested in [1] by @RAnders00. Refer to the
link for further information.

[1]: https://github.com/Chatterino/chatterino2/issues/1565#issuecomment-590441625

* Theme: Remove highlight color

As highlight color is independent of the selected theme now, the member
has been removed from the `Theme` singleton. Instead, the fallback theme
color is defined in `HighlightPhrase` now.

Uses of `themes->messages.backgrounds.highlighted` have been replaced
with `HighlightPhrase::FALLBACK_COLOR` accordingly.

* Update src/controllers/highlights/HighlightPhrase.hpp

attempt to just remove constexpr

Co-Authored-By: Ruben Anders <ruben.anders@robotty.de>

* Initialize FALLBACK_COLOR outside header file

* Rename FALLBACK_COLOR to FALLBACK_HIGHLIGHT_COLOR

In preparation for the next commit introducing a new variable.

* Moved subscription highlight color into HighlightPhrase

* Use actual subscription color as a fallback

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
Co-authored-by: Ruben Anders <ruben.anders@robotty.de>
2020-03-22 13:14:07 +01:00
..
helper sync gif emotes of same length 2020-02-16 14:24:11 +01:00
Badges.cpp this commit is too big 2018-08-02 14:23:27 +02:00
Badges.hpp this commit is too big 2018-08-02 14:23:27 +02:00
Emotes.cpp fixed crash when moderation buttons are enabled 2018-08-12 00:02:05 +02:00
Emotes.hpp sync gif emotes of same length 2020-02-16 14:24:11 +01:00
Fonts.cpp removed appbase directory 2019-10-07 15:46:41 +02:00
Fonts.hpp removed appbase directory 2019-10-07 15:46:41 +02:00
Logging.cpp Remove FMT dependency (#1472) 2020-01-03 20:51:37 +01:00
Logging.hpp this commit is too big 2018-08-02 14:23:27 +02:00
NativeMessaging.cpp Remove Debug Output In Many Different Places (#1607) 2020-03-19 18:06:21 +01:00
NativeMessaging.hpp Normalize line endings in already existing files 2019-09-08 22:27:57 +02:00
Paths.cpp renamed getInstance() -> instance() for singletons 2019-10-07 22:42:34 +02:00
Paths.hpp Revert "Revert "added error message if settings initalizion failed"" 2019-10-05 16:40:04 +02:00
Resources.cpp moved resources out of Application 2019-09-22 10:54:32 +02:00
Resources.hpp moved resources out of Application 2019-09-22 10:54:32 +02:00
Settings.cpp removed MutedChannelController 2020-02-28 19:04:25 +01:00
Settings.hpp Add option for username tab completion only with an @ prefix (#1573) 2020-02-29 11:52:49 +01:00
Theme.cpp Better Highlights: Fix Wrong Color for Migrated Phrases (#1568) 2020-03-22 13:14:07 +01:00
Theme.hpp fixed redraw issue 2018-12-02 19:20:14 +01:00
Toasts.cpp Twitch API: v5 to Helix migration (#1560) 2020-03-14 12:13:57 +01:00
Toasts.hpp Twitch API: v5 to Helix migration (#1560) 2020-03-14 12:13:57 +01:00
TooltipPreviewImage.cpp Fix preview on hover not working when Animated emotes options was disabled. 2020-02-15 17:16:10 +01:00
TooltipPreviewImage.hpp Fix preview on hover not working when Animated emotes options was disabled. 2020-02-15 17:16:10 +01:00
Updates.cpp renamed getInstance() -> instance() for singletons 2019-10-07 22:42:34 +02:00
Updates.hpp renamed getInstance() -> instance() for singletons 2019-10-07 22:42:34 +02:00
WindowManager.cpp Fix preview on hover not working when Animated emotes options was disabled. 2020-02-15 17:16:10 +01:00
WindowManager.hpp Fix preview on hover not working when Animated emotes options was disabled. 2020-02-15 17:16:10 +01:00