Commit graph

46 commits

Author SHA1 Message Date
bfa2f1637e refactored the managers 2017-12-31 00:50:07 +01:00
Rasmus Karlsson 258288bad9 Some settings can now be "reverted" by pressing cancel in the settings dialog
Modify visibility of some members of SettingsDialog
update external libraries
Progress on #180
2017-12-28 19:34:20 +01:00
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 86a9f194f9 Clean up account switcher stuff
Update settings library version

Fixes #9
2017-12-20 00:41:35 +01:00
Rasmus Karlsson be3c85d72d Move some variables into const.hpp
Clean up some code in the AccountManager
2017-12-19 16:13:02 +01:00
Rasmus Karlsson 324dfc9ee9 Fix account adding and account removing.
This needs to be fully tested before I'm comfortable closing #9

The "advanced" tab also needs testing

We might also want to move the login website to chatterino.com and make
it look nicer
2017-12-19 15:12:33 +01:00
fourtf 01dbaed781 disabled tabs in the settings that are ununsed 2017-12-19 03:37:07 +01:00
Rasmus Karlsson 14e80d5012 Implement mouse scroll speed setting
Fixes #145
2017-12-19 02:48:19 +01:00
Rasmus Karlsson 1a870685b0 Implement the "inline" account switch button
Make the account switch listview into a widget
2017-12-19 02:17:01 +01:00
fourtf 4010c49c84 fixed messages not redrawing after changing theme 2017-12-19 01:54:51 +01:00
Rasmus Karlsson 5c6411b50b Added "Anonymous" (aka not logged in) as an option for the account chooser 2017-12-18 23:50:39 +01:00
fourtf f8cf983b7c added an option to disable smooth scrolling 2017-12-18 20:18:20 +01:00
fourtf cca065f0f9 disabled non client dpi scaling until issue is fixed 2017-12-18 02:47:01 +01:00
fourtf 01e9c723fa fixed hidpi scaling for the settings window 2017-12-18 00:54:53 +01:00
Rasmus Karlsson 87182d078c Further simplify font label updating in settings dialog 2017-12-17 21:11:19 +01:00
fourtf 7f80e64e7d current font in settings format
now reads "fontname, fontsize pt"
2017-12-17 20:48:15 +01:00
fourtf 1ca4fb46d6 added window always on top option 2017-12-17 16:45:15 +01:00
Rasmus Karlsson 169e002b68 fix spelling issue 2017-12-17 13:48:02 +01:00
Rasmus Karlsson bb081b710e Update settings and signals library version 2017-12-17 03:37:46 +01:00
Rasmus Karlsson eb8e14b8fe Move more settings over to pajlada settings system 2017-12-17 01:19:56 +01:00
Rasmus Karlsson 676c7b9017 Reformat some files according to .clang-format 2017-12-16 02:22:35 +01:00
Rasmus Karlsson a372bae80d Change the way Twitch accounts are stored in AccountManager
This is done in a way which should simplify abstracting it to other
types of accounts if needed in the future

Remove comment about removing singletons - we're keeping them (and probably restoring some)

IrcManager now updates its "account" reference automatically through the
AccountManager.Twitch.userChanged-signal

Remove unused IrcManager getUser-method

IrcManager::beginConnecting is no longer called asynchronously. This
might want to be reverted in a more controlled asynchronous manner.

User Accounts are now stored as Shared Pointers instead of using
references/copies everywhere
2017-12-16 02:21:06 +01:00
7f18cefee4 renamed a bunch of files and classes 2017-11-12 17:21:50 +01:00
Rasmus Karlsson c08059c6a8 Add simple fontChanged signal
Delete copy/move constructor of FontManager :kkona:
Fix places that were using the copy constructor of the FontManager
2017-10-27 21:03:24 +02:00
Rasmus Karlsson 7855d6265d Split tab-creation up into separate functions 2017-10-08 21:27:27 +02: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
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 222eedcd21 added gotToBottom and EnableNonClientDpiScaling 2017-09-21 17:34:41 +02:00
fourtf 3e24752477 fixed project code style in some files 2017-09-21 12:15:01 +02:00
Confuseh 6ec8f6e032 Quality options for Streamlink (#103)
* added quality options for streamlink

* wrong default value
2017-09-11 23:35:59 +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
Rasmus Karlsson a82774543c Fix warnings/reformat some code 2017-08-12 15:58:46 +02:00
Confuseh a6573e83e0 Simple streamlink support (#97)
* Simple streamlink support

Relies on settings entry & loads best available quality by default.
2017-08-12 14:44:27 +02:00
Rasmus Karlsson 5c8d3f9eef Fix typo in Custom sound file selector 2017-07-31 01:36:33 +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 467ca90fd8 Implement stupid account manager
After logging in, you need to restart chatterino
2017-07-28 19:46:53 +02:00
Rasmus Karlsson 0563136a34 Add option to display/hide localized names
Fix #49
2017-07-23 11:59:32 +02:00
Rasmus Karlsson 3c2ee99731 working on something 2017-07-02 12:36:50 +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 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 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 7c3cd930f3 make a few settings into pajlada::Settings::Settings
Add setting to hide badges

Give focus to text input if you click anywhere in a chat widget
2017-06-11 20:53:43 +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 ccf8e3bd83 move around files 2017-06-06 14:48:14 +02:00
Renamed from widgets/settingsdialog.cpp (Browse further)