Commit graph

51 commits

Author SHA1 Message Date
fourtf fc81b118c7 replaced qt font scaling
remove the qt font scaling and added code that uses the actual scale/dpi value
2017-12-23 21:18:13 +01:00
Rasmus Karlsson 4b36893818 Add simple tooltip system 2017-12-19 03:38:42 +01:00
fourtf c950e9c58a added some code for collapsing messages 2017-12-19 00:10:03 +01:00
fourtf 625e33d654 ping sound media doesn't get recreated on every message 2017-12-18 17:57:56 +01:00
Rasmus Karlsson 03958420be We now also add localized names to the autocompletion
Changed the login name in autocompletion to the display name
Autocompletion model is now only updated on the "first completion"
2017-12-17 21:05:48 +01:00
Rasmus Karlsson 5839b9f522 add username to message (simple) 2017-12-17 17:48:46 +01:00
Rasmus Karlsson 70cbb9df7f Make more use of single pattern 2017-12-17 02:18:13 +01:00
Rasmus Karlsson eb8e14b8fe Move more settings over to pajlada settings system 2017-12-17 01:19:56 +01:00
Rasmus Karlsson ad8ee97de9 Fall back to default subscriber badge if there's no other badge available 2017-11-04 17:22:53 +01:00
Rasmus Karlsson 7b2e3a94a6 Moved online status checking logic from ChatWidgetHeader to TwitchChannel
- Channel now needs to be initialized with a name. Special cases like the emote window just sends an empty string.
 - ChatWidget now has a signal which is called whenever the widgets channel is changed
 - Changed roomID from an std::string to a QString
2017-11-04 14:57:29 +01:00
Rasmus Karlsson 23651fd513 Add option to play highlight sounds even if Chatterino is focused.
This is off by default
2017-10-08 21:27:27 +02:00
Rasmus Karlsson 81e06f3a53 debug::Log can now be used instead of qDebug()
Usage:
```
QString string("world");
debug::Log("hello: {}", string);
```
2017-09-24 19:23:07 +02:00
Rasmus Karlsson c14dc43b18 fix highlights - reformat some stuff 2017-09-24 18:43:24 +02:00
Rasmus Karlsson 903cf30ddf fix currentUser thing 2017-09-24 18:14:22 +02:00
Cranken 881e695189 Added some functionality to the accountPopup (#117)
* Added some buttons.

* Added some more functionality.

* Finished adding button functionality.

* Implemented @fourtf's suggestions.
2017-09-23 19:23:10 +02:00
fourtf bd4601a5d4 added MessageColor to represet special colors 2017-09-21 00:54:10 +02:00
fourtf c7b3480aaf ChatWidgetView -> ChannelView, added Emote Picker 2017-09-16 00:05:06 +02:00
Rasmus Karlsson 8d2e48f944 Implement an advanced method of adding a user to chatterino.
You can now switch between multiple users in the settings dialog.
(Requires a restart for reconnecting etc)
2017-08-19 15:37:56 +02:00
fourtf cac2786c58 fixed emotes after emojis not showing 2017-08-17 22:46:16 +02:00
Rasmus Karlsson 63f85e9bee Implement Chatterino badges
Fix #63
2017-08-12 13:20:52 +02:00
Rasmus Karlsson 3bfaba2d95 Split parseUsername into parseUsername and apendUsername 2017-08-12 13:18:48 +02:00
Rasmus Karlsson ac6db75dc6 Reformat according to .clang-format 2017-08-12 12:09:26 +02:00
Rasmus Karlsson f455ef9f24 Fix textColor leaking after links 2017-08-12 12:07:53 +02:00
fourtf e1364f2bd2 gave links color 2017-08-05 18:44:14 +02:00
Rasmus Karlsson 950a84ec50 Fix wrong default value on doHighlight
Add debug message for when a highlight is triggered for debugging
purposes
2017-07-31 11:08:32 +02:00
Rasmus Karlsson 51f81262d5 Clean up highlight code
Fix bug if no account is selected
2017-07-31 01:19:25 +02:00
Rasmus Karlsson 626002c8ff reformat code 2017-07-31 00:57:42 +02:00
Cranken 8fb0671834 Added Highlights (#86)
Added Highlights
2017-07-31 00:37:22 +02:00
Rasmus Karlsson 0563136a34 Add option to display/hide localized names
Fix #49
2017-07-23 11:59:32 +02:00
Rasmus Karlsson ab814d1e63 refactor stuff 2017-07-23 09:56:06 +02:00
Rasmus Karlsson 5aa892e834 Refactor ConcurrentMap
* Add operator[] to ConcurrentMap which returns a TValue reference
* BTTV/FFZ channel emotes are now stored in the Emote Manager, and each Channel object has a reference to their own BTTV/FFZ channel emote map.
* Restructure EmoteManager a bit (simplify the ConcurrentMap havoc).
* Add EmoteData struct which can store emote data (for now only messages::LazyLoadedImage*)
* Add CompletionManager that does nothing
2017-07-09 17:58:59 +02:00
Rasmus Karlsson 73ed39da14 Clean up twitch message parsing 2017-07-02 18:13:16 +02:00
Rasmus Karlsson a58cd3333e Implement emoji parsing
Fix #60
2017-07-02 17:39:51 +02:00
Rasmus Karlsson 5245cfacd1 Store channel room ID as a string instead of an int 2017-07-02 15:12:00 +02:00
Rasmus Karlsson 3e91340788 Implement subscription badges
Fix #61
2017-07-02 15:11:33 +02:00
Rasmus Karlsson 7df7da70cb A lot of changes
Remove unused constructor of messages::Message
Fixed LimitedQueueSnapshot _-prefixes
Changed LimitedQueueSnapshot's usage of int to std::size_t
ColorScheme is no longer a singleton
Created a "BaseWidget" class which is pretty much a QWidget except it
has a reference of ColorScheme since most widgets will need a reference
to the style they should use.
BaseWidget can be implemented either with a BaseWidget parent (which
will copy the ColorScheme reference from the parent) or with a
normal QWidget parent and an explicit ColorScheme reference.
Save main window geometry on close
Fix font changing in the Settings Dialog
Update settings library version
2017-06-26 19:53:31 +02:00
Rasmus Karlsson 1d8795ef1b update settings version 2017-06-17 15:15:58 +02:00
Rasmus Karlsson 8e0bc16710 fix turbo being rendered as a staff badge 2017-06-17 11:49:04 +02:00
Rasmus Karlsson 1ecc6ff612 Clean up font management
Default to b.userName instead of message->account()
Made font updatable in the Settings dialog with a font dialog
More work on subscription badge loading

Known issues:
  - Font isn't updated in a split until a new message is written in that split
  - When font/font size is changed, old messages don't have their size updated causing weird layout of old messages
2017-06-17 11:37:13 +02:00
Rasmus Karlsson 8f4e20db8e Rework badge types to fit with the way twitch sends badges 2017-06-16 10:11:44 +02:00
Rasmus Karlsson 56e521bc24 Start parsing unknown badges (i.e. game badges)
Prepare channel-specific data to be loaded (i.e. subscription badges)
2017-06-16 10:01:21 +02:00
Rasmus Karlsson 95f60c34c5 fix dynamic bit badges 2017-06-16 08:03:13 +02:00
Rasmus Karlsson 7525dae768 work on dynamic badge-loading 2017-06-15 23:13:01 +02:00
Rasmus Karlsson e7282b5097 Fixed verified badges
Refactor more underscores into this->
2017-06-13 22:03:29 +02:00
Rasmus Karlsson 59d383c161 Huge refactor
- Remove some underscore-prefixes
 - Start using this-> more
 - Remove a few of the singletons (We pass references to managers to
         things that need it now. Might not be much better, but for now
         it works. It also shows what places might be slightly wrong
         designed)
2017-06-13 21:27:26 +02:00
Rasmus Karlsson 4bfe58f14d more random refactoring 2017-06-11 12:00:53 +02:00
Rasmus Karlsson 9cd70877a5 replace all instances of NULL with nullptr 2017-06-11 09:37:30 +02:00
Rasmus Karlsson 1c6ff37e76 rename header files from *.h to *.hpp 2017-06-11 09:31:45 +02:00
Rasmus Karlsson 5b2b2e3e19 refactor/reformat. remove useless common.h 2017-06-07 10:09:24 +02:00
Rasmus Karlsson b66dc479e6 fix scroll to bottom issue 2017-06-06 21:18:05 +02:00