Commit graph

1279 commits

Author SHA1 Message Date
Leon Richardt a9080ceb3c
Discord-like Quick Switcher (#1588)
* Proof of Concept for Quick Switcher

* Fix crash when suggestions are empty

* QuickSwitcher: Use tab name instead of a single channel

* Rebase later

* Add missing include for <functional>

* Move QuickSwitcher related classes into own subfolder

* Refactor switcher list items

Now, items are responsible for taking the right action when selected in
the switcher list. This should allow for more focused code and
responsibilities.

* Add note about memory management

* Add option to open channel in a new tab

* Add support for using the mouse

* Spawn switcher popup in the middle of the window

Works reliably on i3 at least. Might need some additional testing on
other WMs (and especially on Windows!).

* Add some icons for switcher items

Note that the final design of the list is not final but I do plan to
incorporate these in the future.

* Set Qt::Dialog window flag on switcher popup

Prevents tiling window managers like i3 from trying to tile the window.

* Rename "SwitcherItem" to "AbstractSwitcherItem"

* Add comments about what items are inserted

* Use custom model and view

Still missing: Currently selected item is not highlighted yet. You can
move between selected items with tab and arrow keys though.

* Add helper function to convert QVariant to AbstractSwitcherItem *

* Remove useless constant

* Highlight currently selected switcher item

* Use a different method for centering QuickSwitcherPopup window

* QuickSwitcherModel: Add documentation

* Add default parameter to QuickSwitcherModel::rowCount

* QuickSwitcherPopup: Add comments

* Remove outdated TODO

* QuickSwitcherModel: Init vector with default capacity

* Remove outdated comment

* Add comment about 0 ms timeout interval

* NewTabItem: Simplify interface

* Only fetch opened splits once

This is better than the prior approach since opened splits cannot change
anyways while the switcher is open.

* Use SplitContainer to pass information instead of custom type

* Allow searching for tab titles as well

Before this commit, only channel names could be searched.

* Refactor switcher item interface to be more flexible

Also show tab name and channel name in the switcher list.

* Add documentation for AbstractSwitcherItem

* Add documentation for NewTabItem

* Add comments about {begin,end}{Insert,Remove}Rows

* Remove unused method

* Replace magic size with named constant

* Add change log entry

Co-authored-by: fourtf <tf.four@gmail.com>
2020-08-13 19:25:51 +02:00
fourtf ce57ad9b0d fixed typo 2020-08-13 19:13:06 +02:00
fourtf 215e8b7b71 centered split header tooltip 2020-08-13 19:00:56 +02:00
fourtf 1d1fd4d7c0 reordered settings 2020-08-13 18:56:40 +02:00
fourtf b1d9b55bf7 named UI Scale -> Zoom 2020-08-13 18:03:08 +02:00
fourtf 2c74e98023 edited split dropdown 2020-08-13 18:02:23 +02:00
fourtf 8661c83312 updated descriptions in notification settings 2020-08-13 17:36:45 +02:00
fourtf 6f4f66b9d0 use different window frame for user popup based on the setting 2020-08-13 17:17:53 +02:00
fourtf b2ae2e598f moved cache and appdata settings up 2020-08-13 16:59:42 +02:00
fourtf a50e95d9f8 changes to settings 2020-08-13 15:55:42 +02:00
Daniel 0e6ca6b097
Vertical tabs (#1815)
* Vertical tabs

* Vertical tab wrapping

* Fix formatting

* Cleanup code

* Updated changelog

* Hide button row if no buttons exist

* Fix tab width expansion

Co-authored-by: fourtf <tf.four@gmail.com>
2020-08-13 15:43:08 +02:00
Karar Al-Remahy b52d15b9b4
fix: Crash on MS Edge browser ext connection (#1852) 2020-08-13 14:53:36 +02:00
Jonas Schmitt 11b8948290
Add support for non-highlight channel point rewards (#1809) 2020-08-08 15:37:22 +02:00
alazymeme 1bd3d10eef
Add an "Open in browser" option to whisper split (#1828) 2020-08-08 15:17:51 +02:00
mmb L 208f9b093c
Added setting to auto close user popup (#1833)
* Set autoclose as true by default to match stable version (2.1.7) behavior
2020-08-08 14:43:26 +02:00
Matthew Marlow e5f3bc9f3f
Improve Chatterino extension positioning (#1825)
This adds support for left-side chat
2020-08-01 15:42:56 +02:00
pajlada 214afc8fc2
Simplify Tooltip flags on Linux for Sway (#1824) 2020-07-25 15:00:12 +02:00
pajlada 382dfbc2fa
[SearchPopup] CTRL+F now focuses the search input (#1812) 2020-07-18 17:52:12 +02:00
Rasmus Karlsson d25dee10b2 Keep last menu in memory
Might do something about #1790
2020-07-18 17:51:31 +02:00
Daniel ba06b10135
Open usercard on mention click (#1674) 2020-07-18 16:03:51 +02:00
pajlada 276f3e1d98
[SettingDialog] CTRL+F now selects the Find input (#1811)
* Sneakily make SettingsDialog constructor private at the same time 🕵
2020-07-18 15:56:33 +02:00
pajlada 6ba9c5ec31
Reset the lastMessageHasAlternateBackground{Reverse} values when clearing all messages in a ChannelView. (#1810)
This makes it so that we consistently start with the same values after
having cleared a ChannelView.
Example place where this happens: UserInfoPopup when user messages are
loaded and refreshed
2020-07-18 14:44:10 +02:00
fourtf 9739d8d9c3 hide user profile avatar if obs is running 2020-07-12 22:44:33 +02:00
Paweł 682caf6b69
Add support for more image uploader services (#1741)
The list of links that have been uploaded is now also stored in the json format instead of csv
2020-07-05 14:32:10 +02:00
mmb L 0b0fdb4ba2
Fix emote popup remember last position by moving setStayInScreenRect into EmotePopup constructor (#1752) 2020-07-05 14:07:03 +02:00
Paweł defc12c129
Added missing Keybinds to settings page (#1770)
Added:
- Zoom out/in
- reset zoom
- reopen last closed split
- select last tab
Also updated alt + arrows, so its a bit more readable
2020-07-05 14:05:39 +02:00
Paweł 208e7a68b7
Added account name to window title (#1771) 2020-07-05 14:04:39 +02:00
alazymeme 1277c72b02
Fix a spelling mistake in the settings dialog (#1786)
from "seperate" to "separate"
2020-07-05 13:55:32 +02:00
pajlada cdf85c5084
Message menu now holds a shared pointer to a layout (#1787)
This ensures that the layout will survive for the lifetime of the menu,
     so any of the menu actions can with confidence do things with the
     layout, not having to worry whether it's dead or not.

This means that the user, while having the message menu open, could have
one extra MessageLayout alive. I have ensured that when the menu dies
the reference to the shared pointer dies with it.
2020-07-05 13:52:24 +02:00
Mm2PL 0f9a612c55
Move over wiki documentation to repo in Markdown format (#1760)
* Change in-client regex help link to point to the github repository
2020-07-04 13:40:13 +02:00
Paweł 205d658f80
Fixed /usercard on linux (#1755)
- /usercard command doesn't close imidiatelly
- removed "Dialog" window flag. It seems to be unnecessary and causes issues (on left-clicking user name it sometimes didnt render unless you clicked 2-3 times.
2020-06-27 12:58:44 +02:00
0xRainy 0e564065ba
Added recent messages to UserInfoPopup (#1729)
There's a Refresh button added to the popup to refresh the users messages in the popup. Not automatic now while we figure out how fast/slow it would be.

Co-authored-by: dnsge <sagedanielr@gmail.com>
2020-06-21 14:15:14 +02:00
Paweł 5e0ac814cf
Removed help tooltip for splits (#1728) 2020-06-14 12:39:17 +02:00
Rasmus Karlsson 666b577bd5 Close UserInfoPopup when Escape is pressed 2020-06-14 12:26:50 +02:00
Rasmus Karlsson dad9677bba BaseWindow: Make sure windowTopMost signal is attached to our list of managed connections 2020-06-14 12:26:23 +02:00
23rd 78dab081d8
Added missed line break to header with empty thumbnail. (#1705) 2020-06-14 11:51:54 +02:00
alazymeme f3f8b2d024
Fix popout player url (#1730)
* Update TwitchChannel.cpp

* Reformatting forsenY

* fixed other things

* xd

* Update TwitchChannel.cpp
2020-06-12 19:44:05 +02:00
alazymeme 39cc421f95
Improve web extension position (#1717) 2020-06-07 11:33:45 +02:00
Daniel ccdbedb93c
Fix "Always on top" setting for MacOS and Linux (#1708)
Closes #1166
2020-05-30 11:32:25 +02:00
apa420 6d5ba0c442
Show thumbnails for live streams inside of the split header tooltip (#1702)
This feature is enabled by default and can be disabled in the Settings dialog with the "Show stream thumbnail" setting
2020-05-24 11:57:15 +02:00
Daniel Pasch a230bc7c89
improve tooltips by only positioning the element once we know it's in… (#1693)
Things like tooltips now only sets its position once. The position used to be set twice and could cause some annoying flickering.
2020-05-24 11:51:16 +02:00
thekalio 56d09ac198
Show visual feedback when BTTV and FFZ emotes are loaded (#1671)
Upon joining a channel or pressing F5, BTTV and FFZ emotes are
(re)loaded. This change adds visual feedback of the network requests and
their outcome, in the form of a system message in the associated
channel's chat window. 

Non-error messages are suppressed when joining a
channel (which automatically loads emotes).
2020-05-16 12:43:44 +02:00
Daniel Pasch dd5455d1cf
Improve window "move within desktop rectangle" code (#1685)
This is used by tooltips to make sure they're always visible

Behaviour changed to stick to screen instead and flip up if no space left below cursor
2020-05-16 12:16:17 +02:00
Daniel Pasch c5a7205d12
move pause-icon to the left and increase size and visibility (#1660) 2020-05-10 12:55:13 +02:00
Daniel Pasch be6ef6dcd5
open twitch usercard on middle mouse (#1669)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-05-10 12:45:19 +02:00
Daniel Pasch 8532c6d3bc
Add thumbnails to link tooltips if available (#1664)
This feature is off by default and can be enabled in the settings with the "Show link thumbnail" setting. This feature also requires the "Show link info when hovering" setting to be enabled.

thumbnails support is only there for direct image links, twitch clips, and youtube links. can be expanded in the future in the /api repo

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-05-10 12:11:10 +02:00
pajlada 001dce5da1
Create uploader to i.nuuls.com (#1332)
This commit adds support for uploading images to i.nuuls.com from clipboard or by dragging an image into a split.

Documentation for how to self-host the image uploader is available in ENV.md

By default, you will be asked before an image upload takes place. There's an option in the dialog to not be asked again, if that option is chosen you can revert that choice in the settings dialog.
2020-05-09 07:34:27 -04:00
Mm2PL 2b1c9794b7
Add confirmation box for uploads. 2020-05-09 13:14:41 +02:00
SLCH 14783d52a7
fix typo (#1675) 2020-05-07 00:21:08 +02:00
Daniel Pasch 7719816891
Middle mouse button can now also open links (#1644) 2020-05-02 13:19:58 +02:00