Commit graph

2324 commits

Author SHA1 Message Date
Mm2PL eb8eecdfed
Improve the "You are banned" message (#2266)
Added reconnect link to the "You are banned" message
2020-12-12 14:19:51 +01:00
Mm2PL c6d55e0d8c
Improve search popup window titles (#2268)
Adds special cases for /whispers, /mentions and empty tabs, and an apostrophe in the titles.

Co-authored-by: Paweł <zneix@zneix.eu>
2020-12-12 13:06:40 +01:00
Paweł cfa9e5903e
Migrated Kraken's getUser to Helix (#2260) 2020-12-06 19:41:52 +01:00
pajlada 277ef4b2e3
Fix crash when moving splits across windows and closing parent tab (#2259) 2020-12-06 15:34:40 +01:00
fanway bf4c9cebb1
Use display/localized names in tab and split titles (#2189) 2020-12-06 14:07:33 +01:00
pajlada 4436109a2f
Add setting to limit number of historical messages to load on connect (#2252) 2020-12-06 13:04:49 +01:00
Paweł 8b2c3c7386
Fixed thumbnails merging with link info without thumbnails (#2244) 2020-12-05 15:03:13 +01:00
Leon Richardt 0a0cfb8e48
fix: make LoginWidget child of AccountsPage (#2234) 2020-11-29 10:48:23 +01:00
pajlada 5258ddd84f
Add parent to ChannelFilterEditorDialog (#2232) 2020-11-28 18:04:33 +01:00
Paweł 49fa9bfd72
Made #channel link in /mentions jump to #channel split (#2220) 2020-11-28 17:45:20 +01:00
pajlada 1a4d4dca79
Fix freeze in Ignore & Replace if replacement followed by emote (#2231)
shiftIndicesAfter now also shifts the item end position along with the item start position
2020-11-28 15:03:36 +01:00
Paweł 05aab86845
Added links to twitchemotes.com to Twitch emotes' context menus (#2214) 2020-11-22 15:54:58 +01:00
mmb L 44262ee2ec
Add Ctrl+F5 as a shortcut for reconnect() (#2215) 2020-11-22 14:28:07 +01:00
Paweł b79d5fa6f0
Fixed "raw mentions" not being clickable with special characters appended to them (#2212) 2020-11-22 14:02:55 +01:00
Steve Wills df722a72c1
Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-11-21 16:20:10 +01:00
Daniel d206ed4bcc
Fixes the dropdown order in channel filter dialog (#2168) 2020-11-21 13:47:09 +01:00
Steve Wills 529f19a2de
check path is not empty (#2203)
* check path is not empty

* fix formatting

* use isEmpty() to check path
2020-11-17 19:59:49 +01:00
Leon Richardt 60d5c5d99f
[Fix] Use copy instead of reference for overriding message flags (#2200)
* fix: use copy instead of reference for overriding message flags

* doc: update changelog

Note: the initial attempt at fixing this issue (#2090) was also included
in order to make the development process more trackable.
2020-11-17 18:47:07 +01:00
fourtf 6499b7c126 2.2.3-beta2 2020-11-17 10:43:16 +01:00
Daniel b572c187a4
Fix FFZ emote assertion crash (#2192)
* Fix crash on null urls from FFZ API

* Update CHANGELOG.md

* Turns out there's an actual method for this
2020-11-17 10:27:14 +01:00
pajlada 53c96097c9
Use the main window as the parent to all user cards on macOS (#2185) 2020-11-15 14:40:34 +01:00
Leon Richardt 540870f9fe
[Fix] Make SearchPopup a BasePopup (#2182) 2020-11-15 11:07:20 +01:00
Leon Richardt 0eed45ae67
Chore: Proper Lambda Formatting (#2167)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-08 12:02:19 +01:00
Paweł fbd5df53d8
Ensure Twitch username in UserCard uses display name from API (#2160) 2020-11-08 11:39:10 +01:00
pajlada 29d0ef6923
Apply nightly update logic to macOS and Linux too (#2164) 2020-11-08 10:32:55 +01:00
Paweł c3ff98da87
Improved textEdit placeholder (#2149)
* Made colors a bit lighter

And also removed the tooltip from non-twitch channels

* Updated the changelog entry

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-05 09:06:34 +01:00
fanway f36c0fee97
Fix runIgnoreReplaces fall into infinity loop (#2151)
* Fix `runIgnoreReplaces` fall into infinity loop

The regex pattern was not checked for emptiness, which led to an endless
loop

* Update CHANGELOG.md

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-04 23:11:17 +01:00
pajlada 9cdddfc65d
Fix various warnings (#2147) 2020-11-01 15:23:58 +01:00
Daniel 2eb01af5e7
Prevent default tab completion from overriding colon menu (#2133)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-01 14:59:43 +01:00
fanway 892e16c533
Fix link preview doesn't update link info for previous messages after setting is enabled (#2108)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-01 14:33:01 +01:00
Paweł 86feef6be8
Fixed settings dialog size (#2145) 2020-11-01 14:11:45 +01:00
Daniel a9590ae292
Add list literals to filters (#2103) 2020-11-01 13:33:46 +01:00
Paweł a27757e440
Added placeholder for Split's textEdit (#2143) 2020-10-31 18:17:43 +01:00
alazymeme 78c50399b8
Add wiki link to moderation mode page (#2141)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-10-31 17:10:11 +01:00
pajlada 1ee1e8837f
Use Qt's dialog where applicable (#1843) 2020-10-31 16:42:48 +01:00
Paweł 523874dc21
Added tab navigation shortcut to SelectChannelDialog (#2142)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-10-31 16:17:09 +01:00
Mm2PL ee14492e15
Add Mm2PL's avatar to contributors list. (#2139) 2020-10-31 15:52:05 +01:00
Paweł 3c1abbd297
Added missing window titles to all popups (#2120) 2020-10-31 15:12:42 +01:00
Paweł 05469d1bba
Fixed contributor avatar links (#2126)
* Fixed contributor avatar links

Had to put them in qtresource format so those will actually display in Settings -> About.
Reference: https://doc.qt.io/qt-5/resources.html#compiled-in-resources

* Added my avatar and updated documentation
2020-10-26 17:02:52 +01:00
Leon Richardt 40da838a9d
fix: showInMentions attribute is now serialized correctly (#2137)
This was an error introduced in ec94869. Instead of the
Qt::CheckStateRole, which stores the state represented in the table
view, the Qt::DisplayRole was used. As per [1], this always returns
`false` in our use case.

[1]: https://doc.qt.io/qt-5/qvariant.html#toBool
2020-10-26 10:06:09 +01:00
yodax 466d85c907
Retain channel context for user cards opened from search window (#2088) 2020-10-25 11:10:28 +01:00
Mm2PL 3ee08b9ffd
Add support FrankerFaceZ badges. (#2101)
On startup, we poll https://api.frankerfacez.com/v1/badges/ids and store the mappings of user IDs to badges for the remainder of the applications lifetime.
2020-10-25 10:36:00 +01:00
Leon Richardt ec94869480
Allow highlights to be excluded from /mentions (#2036) 2020-10-24 14:33:15 +02:00
Leon Richardt 0049a5ebb2
Fix tabbing in Quick Switcher (#2065)
It was broken in f7237dc due to the migration to the GenericListView approach
2020-10-24 10:50:14 +02:00
fourtf 11525e626a
edited general settings categories (#2117)
* edited general settings categories

* Update CHANGELOG.md
2020-10-23 14:26:04 +02:00
fourtf 5f54b1b495 moved navigation to the right 2020-10-23 09:33:44 +02:00
fourtf 74e2242da2
Update GeneralPageView.hpp 2020-10-23 08:19:03 +02:00
fourtf a596e1de23
Update GeneralPageView.hpp 2020-10-23 08:18:42 +02:00
fourtf e2ceb34e57
Update GeneralPageView.hpp 2020-10-23 00:53:25 +02:00
fourtf 7a8b8a36b9
Update GeneralPageView.hpp 2020-10-23 00:50:19 +02:00
fourtf 69304ea4df
Update GeneralPageView.cpp 2020-10-23 00:38:14 +02:00
fourtf 3d9d7d54d5 added missing file 2020-10-22 23:46:36 +02:00
fourtf 0ecea8ad83 added category navigation to general settings 2020-10-22 23:20:07 +02:00
fourtf 4d676b4c51 fix #2106 2020-10-22 20:02:14 +02:00
fourtf 8bc3025a77 Merge branch 'master' of https://github.com/Chatterino/chatterino2 into master 2020-10-22 20:00:14 +02:00
fourtf aa4326f051 renamed filter dropdown items 2020-10-21 17:11:44 +02:00
Paweł 406e00df43
Fixed some stuff regarding usercard (#2100)
- split everything into 2 separate labels, so we won't have any issues with dank dpi (like pajlada had) and no resizing to minimum size is required (which was apparently broken on Windows xd)
- decided to remove line, which is rather not visible / very small and can't be seen anyway
- added nice unicode characters for follow and sub label
- removed unnecessary QLabel include (which I believe was also introduced by me by an accident)
2020-10-21 17:02:24 +02:00
Daniel e7c2e1bec2
Copy message flags to preserve highlights (#2090) 2020-10-21 16:27:24 +02:00
fourtf 3c6e6446c6
2.2.3-beta 2020-10-20 11:13:01 +02:00
Daniel 444810d3dc
Add parent-window option (#2089) 2020-10-19 07:08:02 +02:00
Rasmus Karlsson acec41685e Do error-handling ourselves in argument parsing.
This means we only print a warning on unhandled options instead of
exiting the application.
2020-10-18 22:56:54 +02:00
pajlada 72f44ccdc3
Fix "variables" documentation help in the Filter creation dialog (#2083) 2020-10-18 16:14:59 +02:00
pajlada f191de2514
Add CI workflow to check line endings of all source files (#2082)
In addition, all found errors (formatting & line ending) have been fixed in this PR.
2020-10-18 15:54:48 +02:00
dnsge 4199a01b96 Advanced channel filters (#1748)
Adds custom channel filters complete with their own mini-language. Filters can be created in settings, and applied by clicking the three dots to open the Split menu and selecting "Set filters".
2020-10-18 15:18:20 +02:00
pajlada 812cbdf4f9
Scroll in selected split with PageUp and PageDown (#2081) 2020-10-18 13:15:47 +02:00
pajlada 39a0e69a3b
Reset the timer & refresh thumbnail when changing split channel (#2080) 2020-10-18 12:19:30 +02:00
yodax 55b98f93db
Added emote completion with : to the whispers channel (#2076) 2020-10-17 15:59:15 +02:00
yodax 2352c31dd6
Viewer list usability improvements (#2059)
* Updated to use accent color and added spaces between categories

* Switched order of Moderators and VIPs
2020-10-17 15:00:10 +02:00
Leon Richardt 6e7f8d9d9c
Fix: ColorButtons in settings don't respect search (#2073)
Prior to this commit, adding a ColorButton to a SettingsLayout via
`SettingsLayout::addColorButton` lead to the button not respecting
search queries. This is because they are not added to the layout in a
Group. This commit fixes the behavior, causing color buttons to behave
like every other settings widget.
2020-10-16 09:06:54 +02:00
Rasmus Karlsson 3be62c9294 actually add accent color 2020-10-11 14:42:55 +02:00
Rasmus Karlsson dfe1af248c define accent color in theme 2020-10-11 14:36:28 +02:00
Paweł 2232c6d925
Changed Streamer Mode settings (#2001)
There's now a new (yet another, sigh) section in Settings -> General, which lets you set streamer mode to 'enable/disable/detect obs' and there are also separate settings for each of the things that streamer mode covers. I just have to add ping sounds and PR is ready to be merged :)

* Show "Streamer Mode" image as link thumbnails if applicable

* Moved hideViewerCountAndDuration to streamerMode settings

Set it to false by default (just how it used to be under /misc settings, also reworked live tooltip to be a bit prettier and say "<Streamer Mode>" in gray instead of "Live with <hidden> for <hidden> viewers"
2020-10-11 13:52:14 +02:00
Dave 56828f2d81
Made the current channels emotes appear at the top of the emote picker (#2057) 2020-10-11 12:31:00 +02:00
Dave 98762fdfa0
Add viewer list button to twitch channel header (#2042) 2020-10-10 17:24:53 +02:00
Daniel b37605569f
Make moderation mode persist (#2035)
Fixes a small bug introduced in #1964. "Moderation mode" would be written to the settings file but wouldn't be loaded.

Closes #2032
2020-10-10 10:04:55 +02:00
Dave 84613187e1
Fixed missing timestamps on point redemption messages (#2043)
* Added timestamps to point redemption messages

* updated change log

Co-authored-by: fourtf <tf.four@gmail.com>
2020-10-09 17:26:45 +02:00
fanway df97d609a2
Fix tooltip not showing in EmotePopup (#2046)
* Fix tooltip not showing in `EmotePopup`

* Update CHANGELOG.md
2020-10-09 17:21:04 +02:00
Paweł 776ce8bdbc
Added subage and followage to usercard (#2023)
* Added subage and followage information to usercard

We are using Leppunen's API here to determine user's subage to the current channel and since that API call also returns followage information I decided to utilize that and save ourselves an extra Helix API call.
I also added new files specifying new class and methods for Ivr API, which can be very easily expanded with new methods in the future if we ever have to do that.
When I was coding I also saw couple unnecessary nitpicks which I fixed :)

* Added changelog entry

* remove empty lambda

* Update UserInfoPopup.cpp

* xd

Co-authored-by: fourtf <tf.four@gmail.com>
2020-10-04 18:32:52 +02:00
apa420 35816c5d8a
Add settings for last message line style (#2019) 2020-10-04 18:26:46 +02:00
Leon Richardt aff59495df
Improve "Login expired!" message (#2029)
* feat: improve "Login expired!" message

Since this message occurs when the OAuth token becomes invalid, users
have to re-add their account in order to continue using the application.
The previous message did not make this clear enough, often leading to
confusion and questions by users.

This commit changes the system message to more clear about what the user
has to do, and adds a link that opens the "Accounts" page in the
preferences.

* Update changelog

* Update ChannelView.cpp

Co-authored-by: fourtf <tf.four@gmail.com>
2020-10-04 17:36:38 +02:00
gempir 80e84b1d8a
Commands are now saved upon pressing Ok in the settings window (#2016)
Commands are now saved upon pressing the Ok Button in the settings window, similar to the rest of the settings.
2020-10-04 13:02:29 +02:00
apa420 a2e12a56e3
Changed some default settings (#2024)
Colorized nicknames now enabled by default
Show channels live now enabled by default
Bold usernames enabled by default
2020-10-04 12:59:31 +02:00
Vilgot Fredenberg de04ff82a7
Clean up compiler warnings (#2027)
Fix the following compiler warning
../src/common/NetworkResult.hpp: In constructor ‘chatterino::NetworkResult::NetworkResult(const QByteArray&, int)’:
../src/common/NetworkResult.hpp:28:16: warning: ‘chatterino::NetworkResult::data_’ will be initialized after [-Wreorder]
   28 |     QByteArray data_;
      |                ^~~~~
../src/common/NetworkResult.hpp:27:9: warning:   ‘int chatterino::NetworkResult::status_’ [-Wreorder]
   27 |     int status_;
      |         ^~~~~~~
../src/common/NetworkResult.cpp:9:1: warning:   when initialized here [-Wreorder]
    9 | NetworkResult::NetworkResult(const QByteArray &data, int status)

* Clang compiler warnings

Fixes every instance of the following error:

In file included from ../src/widgets/settingspages/CommandPage.cpp:12:
In file included from ../src/controllers/commands/CommandModel.hpp:5:
../src/common/SignalVectorModel.hpp:242:10: warning: 'moveRows' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count,
         ^
../src/controllers/commands/CommandModel.hpp:12:29: note: in instantiation of template class 'chatterino::SignalVectorModel<chatterino::Command>' requested here
class CommandModel : public SignalVectorModel<Command>
2020-10-04 12:47:23 +02:00
Daniel 58a6983796
Fix timestamps on some messages loaded from the recent-messages service on startup (#2020) 2020-10-03 13:37:07 +02:00
Daniel b67e20d962
Only show VIP buttons if broadcaster (#1999) 2020-09-27 10:34:20 +02:00
apa420 3450b1cc9d
Added image to streamermode user popup (#1995)
* Added image to streamermode user popup

* Update CHANGELOG.md

* swapparoo

Co-authored-by: fourtf <tf.four@gmail.com>
2020-09-27 00:22:06 +02:00
apa420 b4ef4fe54d
Added vip and unvip buttons (#1996)
Co-authored-by: fourtf <tf.four@gmail.com>
2020-09-27 00:20:15 +02:00
fourtf 53b18d03c6 fixed a memory leak 2020-09-26 18:07:13 +02:00
Daniel f7f858a4fc
Auto-refresh UserInfoPopup recent messages (#1982)
* Auto-refresh UserInfoPopup recent messages

* Update CHANGELOG.md

* Clean up code

* changed something about the connection

Co-authored-by: fourtf <tf.four@gmail.com>
2020-09-26 16:59:40 +02:00
Paweł d314566ab6
Argument parsing rework (#1940)
* Experimental argument handling

* Restored browser extension launch functionality

Also moved check from BrowerExtension.cpp to Args.cpp as it is more relevant there and doesn't require passing arguments to a function in another file

* Fixed formatting

* Simplified Args.cpp code, added changelog entry

* Hid crash-recovery from help

* Dont save settings if launched with --channels

* Changed parsing method to t:channel

* Code cleanup

* Changed plaform delimeter to :, platform defaults to Twitch

Co-authored-by: fourtf <tf.four@gmail.com>
2020-09-26 16:03:51 +02:00
fourst4r 2f3accf3cb
fix a crash using middle click scroll on chat window (#1870)
* fix middle click scroll crash

* Update CHANGELOG.md

* get the float dpi, not int
2020-09-26 15:47:20 +02:00
fourtf 06cb88f6c2 downscale images in button 2020-09-26 15:40:43 +02:00
fourtf d13b7d9768 fixed formatting in Settings.hpp 2020-09-26 15:18:48 +02:00
fourtf f4a6b769e5 fixed some potential crashes down the line 2020-09-26 15:17:26 +02:00
tuckerrrrrrrrrr 9d885d951c
Allow reordering elements in list settings (#1595)
* Add move up, down buttons to list settings

Channel notifications, moderation buttons etc. have a move up and move
down button now for reordering.

* Selection follows moved rows, refactor

Also fixed rows past the 2nd one not moving

* Update selection property with more than 1 column

* Fix crash when moving without a row selected

* Move rows with drag and drop

Right now it's a little iffy registering the row to be moved, but I
wanna go to bed :)

* Remove EditableTableView, move to SignalVectorModel

Replace my ghetto drag and drop solution in EditableTableView with small
patches to the stuff already written in SignalVectorModel::dropMimeData
2020-09-26 15:11:45 +02:00
fourtf f6caee6a66 removed accidentally added code 2020-09-26 14:59:04 +02:00
fourtf affef2c5a2 Merge remote-tracking branch 'refs/remotes/origin/master' 2020-09-26 14:56:56 +02:00
fourtf db3402a18e Merge branch 'Ch2Usercard' 2020-09-26 14:54:44 +02:00
pajlada 20e4d6b3d2
Update emote parsing (#1714)
Fixes #1707
2020-09-26 14:21:46 +02:00
fourtf d5855ba7d6 removed latest messages 2020-09-26 14:02:18 +02:00