Commit graph

1609 commits

Author SHA1 Message Date
apa420 3226ab6c68 ran clang 2019-06-12 00:31:02 +02:00
apa420 70bb63d20f Added option for shift, used clang and made setting uneditable 2019-06-11 22:54:20 +02:00
rexim f362548e28 (#976) Use int for emotesTooltipPreview 2019-06-12 02:05:18 +07:00
rexim 244252f610 (#976) Make TooltipPreviewImage non-copyable 2019-06-12 02:04:57 +07:00
rexim 483e177a39 (#976) Fix compilation errors
Which were not visible because of incremental build or something
2019-06-12 01:16:56 +07:00
rexim 3838157d82 Extract TooltipWidget updating into a separate class 2019-06-12 01:03:04 +07:00
rexim 3f4d3ce14a (#976) Make currentPreviewImage shareable between ChannelView-s 2019-06-12 00:22:26 +07:00
rexim e1a901aa98 Adjust tooltip size after setting the text 2019-06-11 23:20:04 +07:00
rexim 0fb16d150b Preview images instead of emotes 2019-06-11 23:20:04 +07:00
rexim a84716547b Animate gifs in the tooltip preview 2019-06-11 23:20:04 +07:00
rexim 94e705ec1b Inject Emotes into TooltipWidget directly 2019-06-11 23:20:04 +07:00
rexim 8b79faf958 Make Emotes Tooltip Preview disablable in the Settings 2019-06-11 23:20:04 +07:00
rexim a569985315 Remove dead code 2019-06-11 23:20:04 +07:00
rexim 7251a20dfb Get the biggest version of emote from EmoteElement 2019-06-11 23:20:04 +07:00
rexim 959aa4616f pixmap() -> imagePreview() 2019-06-11 23:20:04 +07:00
rexim aa4e7f13e7 Get rid of dynamic_cast 2019-06-11 23:20:04 +07:00
rexim cbb1ec2d7a Remove dead code 2019-06-11 23:20:04 +07:00
rexim f002d44370 If hover over ImageLayoutElement show the preview of image 2019-06-11 23:20:04 +07:00
rexim d4a6defed6 Introduce a way to extract QPixmap from ImageLayoutElement
Probably should be a part of MessageLayoutElement interface, but good
for now
2019-06-11 23:20:04 +07:00
23rd d2645b03f8 Added Preferences item in menu bar for OS X. 2019-06-10 12:43:37 +02:00
TranRed 5c350de329 overrides QTextEdit insert methods
fixes Chatterino#635
prepares for future implementation of Chatterino#79

Was a little bit hard to find the right combination for now. Pasting images from clipboard surpasses the check for dragging images in canInsertFromMimeData OMGScoots
2019-06-10 12:20:45 +02:00
apa420 99045e42da Adds support for /user 2019-06-09 10:08:04 +02:00
apa420 74d55941a0 added usercard button to link to twitch's userbutton 2019-06-09 10:08:04 +02:00
ckath afe5e826a1 fix searchtext format again 2019-05-31 08:58:15 +02:00
ckath 83cf03fb09 format with extra : for user search 2019-05-31 08:58:15 +02:00
ckath 2e9b0cad44 make it possible to search localized names 2019-05-31 08:58:15 +02:00
Rasmus Karlsson b872f83c9e add missing files pepega 2019-05-26 21:48:45 +02:00
Rasmus Karlsson 8ba8bbeef6 Move environment variable parsing and storage to its own class
Make the Link resolver and Twitch emotes set resolver urls modifiable with
environment variables
2019-05-26 21:44:37 +02:00
Rasmus Karlsson e1483bfd8a Make Twitch message history loading optional (On by default) 2019-05-25 11:24:10 +02:00
Rasmus Karlsson 79e4e05a4a Fix compilation issue 2019-05-25 11:23:58 +02:00
Ruben Anders 9dbe66a19b Change emote parsing order to FFZ -> BTTV -> GlobalFFZ -> GlobalBTTV
Fixes #877
2019-05-25 10:58:51 +02:00
Rasmus Karlsson 0263248668 Add attribution for Twitch emote data provided by twitchemotes.com 2019-05-21 22:53:40 +02:00
fourtf 42cb0e4ec3 Removed left padding from general settings page 2019-05-19 01:03:31 +02:00
apa420 9a7365821d Fixed issue #1071 (#1073) 2019-05-18 17:37:26 +02:00
Rasmus Karlsson 8bf9fc92c3 Add a != operator to match the Prefix's == operator 2019-05-11 14:17:52 +02:00
Rasmus Karlsson ee9b0f4c12 Fix tab completion
Fixes #813

This has the "quirk" of not updating names that are already there, which
means that display names might not always be used, instead the users
lowercase name might just be there and stick
2019-05-11 14:17:24 +02:00
Rasmus Karlsson 2492a0ba21 reformat usernamset 2019-05-11 13:59:03 +02:00
Rasmus Karlsson 1a7a5409ab do a full reformat according to our current .clang-format 2019-05-10 23:31:10 +02:00
Rasmus Karlsson fa6c9f2fba make paths cachedirectory formatting nicer 2019-05-10 23:28:05 +02:00
apa420 834b1f3c53 Option to hide system moderation messages (#1066) 2019-05-10 23:16:34 +02:00
apa420 3ea496a99b Added boldness adjustment for fonts (#1057)
* Added boldness adjustment for fonts

* Moved setting and changed description of it
2019-05-10 22:37:44 +02:00
hemirt c43c1dc207 Adds option to mute ping sound for specific channels (#990)
Co-Authored-By: hemirt <hemirt@hemirt.com>
2019-05-10 22:36:37 +02:00
23rd 9654650bee Renamed variables to clear some warnings. 2019-05-10 22:18:05 +02:00
23rd efec76df5b Removed unused local vars. Slightly refactored code. 2019-05-10 22:18:05 +02:00
hemirt 411502de44 fix comments 2019-05-07 20:28:01 +02:00
hemirt 4f5e3f6a27 fixes #1058 2019-05-07 20:28:01 +02:00
hemirt 23921f3fed show whispers notices 2019-05-07 20:28:01 +02:00
hemirt bc8175d9ce fix #1053 2019-05-07 20:28:01 +02:00
hemirt add312b609 fix #1062 2019-05-07 19:35:56 +02:00
Alexandr Kondratev 14eb302c3d Close search popup window on Escape pressed 2019-05-06 21:16:40 +02:00
23rd a3f6d2b773 Fixed display of text in Go to Bottom button for Retina screen. 2019-05-04 11:55:41 +02:00
TranRed cff1aa0959 changed some variables to const 2019-05-04 11:40:52 +02:00
TranRed 7ad6db550d made links in system messages clickable
needed to make sub ticket in sub only chat accessible.
2019-05-04 11:40:52 +02:00
Rasmus Karlsson 30430b0fb3 this ctor was used to create a system message
we now only use the ctor that takes an explicit SystemMessageTag
2019-05-02 00:28:53 +02:00
TranRed b5efe12f56 renamed enum ToastReactions to ToastReaction (singular) 2019-05-02 00:01:18 +02:00
TranRed cd1f717c36 deleted dead code
not needed anymore since latest commit
2019-05-02 00:01:18 +02:00
TranRed a592a3e882 Connected ComboBox to currentIndexChanged
implemented proper connection to combobox (currentIndexChanged instead of currentTextChanged)

Thanks, pajlada! FeelsGoodMan
2019-05-02 00:01:18 +02:00
TranRed 2a590adba7 Implemented requested changes
changed setting from String to int.
changed EnumCase

I used createComboBox only has an implementation that handles stringsettings. I implemented my own combobox to handle the ToastsSettings now. Not sure if this is the best way. Won't come up with something smarter for now.
2019-05-02 00:01:18 +02:00
TranRed c20629c165 Refactored opening from toasts
implemented maps and map look up functions
2019-05-02 00:01:18 +02:00
TranRed d749a4771a made CommonTexts.hpp look like other headers 2019-05-02 00:01:18 +02:00
TranRed f76df80575 creates common texts for opening streams
Texts for opening streams were used in multiple locations. Created a file to store GUI texts like this and replaced were applicable
2019-05-02 00:01:18 +02:00
pajlada 01082b123f
Merge pull request #1050 from apa420/apa-pubsub-fix
Changed to ref for better performance #1049
2019-05-01 22:36:32 +02:00
pajlada 8aa2d42ca9
Merge pull request #1045 from TranRed/patch-3
Added {message} parameter for moderation buttons
2019-05-01 22:35:07 +02:00
apa420 8d80eab649 Changed to ref for better performance 2019-05-01 22:28:46 +02:00
pajlada 216b21e0c3
Merge pull request #1049 from apa420/apa-pubsub-fix
Pubsub messages now go into the correct channel
2019-05-01 22:22:03 +02:00
Rasmus Karlsson effe91badc clean up magic message suffix stuff 2019-05-01 22:10:51 +02:00
apa420 c60b717b98 Pubsub messages now go into the correct channel 2019-05-01 21:46:53 +02:00
TranRed b33478d8c6 stored original message text in message 2019-05-01 16:43:52 +02:00
TranRed bbf649bf70
Added {message} parameter for moderation buttons 2019-05-01 16:08:45 +02:00
TranRed 34f820be18 implemented fallback logic for corrupted window layout (#1039)
* fallback logic for corrupted window layout

1. before saving the window-layout a backup will created to avoid corruption due to crashes while saving

2. when starting chatterino and the window-layout file returns and empty window layout (due to corruptio) the backup will be read and the layout will be build from this data

* Update WindowManager.hpp

* used QSaveFile instead of crude custom implementation

* implemented suggested feedback from review

* proper method call

was tired and slightly drunk Kapp
2019-05-01 09:58:13 +02:00
pajlada ad559f9d97
Merge pull request #1038 from hemirt/master
remove unprofessional (puke) inside comments
2019-04-29 20:59:16 +02:00
hemirt e0e7d366d3 remove useless comment 2019-04-29 20:33:04 +02:00
hemirt 56956eea58 remove weeb hate 2019-04-28 23:23:04 +02:00
pajlada 77f57bcff2
Merge pull request #1012 from apa420/apa-deleted-messages
Added support for single deleted messages
2019-04-28 12:51:57 +02:00
apa420 ae0122e389 Added a message when an invalid /delete appears 2019-04-28 11:31:34 +02:00
apa420 3c1d264689 Added trashcan, replaced messageID var with this-message().id, removed pubsub stuff that didn't belong 2019-04-28 02:25:05 +02:00
23rd 53640a9097 Fixed display of text message in empty tabs for Retina screen. 2019-04-27 14:19:03 +03:00
tetyys 40b4c2fefc Change to new character to make duplicate message error bypass work again 2019-04-27 00:31:15 +03:00
pajlada a5a0ad59b8
Merge pull request #1017 from TranRed/nightly
Opening streams from toast + quickfix highlights in light theme
2019-04-26 23:02:48 +02:00
Rasmus Karlsson 3113513290 remove stupid log message 2019-04-23 09:10:34 +02:00
TranRed ac1957ff68 Quick fix for highlighting in light themes
set defaults for highlighting colors. Only use "hidden setting" when populated.
2019-04-22 18:32:58 +02:00
TranRed ad38d0ca1c Added setting for opening streams from toast
Implemented #710

Added options for opening streams from clicking the toas notficiation: (according to options in splits)
- open in browser
- open player in browser
- open in streamlink (needs to be tested, but should in theory work, since I only use the already existing function)
- don't open the stream (in case someone wants to prevent opening streams "by accident")
2019-04-22 09:03:52 +02:00
apa420 4f79d6fc07 Added deleted messages, will also add the disabled tag to denied automod messages 2019-04-19 22:44:02 +02:00
fourtf 9be0d7d458 removed red stripes and connected tape cut visuals 2019-04-17 17:02:13 +02:00
pajlada 97faec15e0
Merge pull request #979 from hemirt/whispers
do not disable whispers on clears and timeouts
2019-04-16 15:06:42 +02:00
pajlada d846b723c7
Merge pull request #983 from Ckath/savemoderation
Save chat moderation state in splits
2019-04-16 14:57:45 +02:00
pajlada 0737922915
Merge pull request #998 from apa420/apa-remove-moderated-messages
Option to hide moderated messages (timed out messages)
2019-04-16 14:38:20 +02:00
apa420 817c40d733 Added continue for readability and removed to hide moderated messages 2019-04-16 14:36:15 +02:00
pajlada 43504114b5
Merge pull request #994 from apa420/apa-after-x-lines
Made wording more consistent in generalpage
2019-04-16 14:33:01 +02:00
apa420 ac9106e2f5 Will now also remove the messages when the timeout occurs, it's a bad implementation of it though, should be better 2019-04-15 22:55:10 +02:00
pajlada d7f0bcd80a
Merge pull request #977 from Cranken/master
Made links clickable in sent whispers.
2019-04-14 17:15:09 +02:00
pajlada 695d200d79
Merge pull request #1007 from pphop/pphop-show-ignored
Show ignored users messages anyway setting
2019-04-14 16:59:40 +02:00
pphop e4d3e6de7f requested changes 2019-04-14 19:57:41 +05:00
pajlada a1918144e4
Merge pull request #1002 from RAnders00/mod-action-channel-replacement
Mod action channel replacement
2019-04-14 16:50:41 +02:00
Rasmus Karlsson de4bc02b66 Add ability to easily swap out the recent messages API with your own
Environment variable: CHATTERINO2_RECENT_MESSAGES_URL

For now, the API structure of the recent messages API is undocumented,
    but once it's released it will have some documentation that
    describes how to run it yourself, and it should be easy enough to
    just make your own API that fits
2019-04-13 19:23:11 +02:00
Rasmus Karlsson 8b3867fa7d Switch to v2 of RAnders00's recent-messages API, so we support showing
old sub messages and stuff
2019-04-13 19:14:58 +02:00
Rasmus Karlsson a4cba22bcb reformat 2019-04-13 16:38:01 +02:00
Rasmus Karlsson 13475332fb Adds VIP rate limit support
Closes #875
2019-04-13 15:26:47 +02:00
pphop 320d74b287 implement show ignored users setting 2019-04-13 01:12:39 +05:00
pajlada ef81029374
Merge pull request #1003 from Ckath/fixscale
stop emotes from being cut off (pajlada-dev)
2019-04-11 16:14:07 +02:00