1
0
Fork 0
mirror of https://github.com/Chatterino/chatterino2.git synced 2024-11-21 22:24:07 +01:00
Commit graph

17 commits

Author SHA1 Message Date
pajlada
5d0bdc195e
Add the ability to select custom themes in the settings dialog ()
Themes are loaded from the Themes directory (under the Chatterino directory, so %APPDATA%/Chatterino2/Themes).

Themes are json files (see the built in themes as an example).

After importing a theme, you must restart Chatterino for it to show up in the settings
2023-05-19 12:26:51 +00:00
pajlada
fdb0a1582c
SplitContainer refactor ()
* Remove unused include util/Helpers.hpp

* SplitContainer::setTag fix parameter naming

* autofy/constify where possible

* More const auto ptr magicifying

* Make SplitNode::Type an enum class

* Move QuickSwitcherPopup includes from header to source file

* Remove unused DropRegion code

* use empty() instead of size() == 0

* Add curly braces everywhere

* Remove useless reinterpret_cast

It was casting Node* to Node*

* Clarify that the connect is QObject::connect

* SplitContainer::setSelected fix parameter naming

* Rename function variables to remove unneccesary underscore

Also move addSpacing parameter out of the layout function

* emplace_back where possible

* Name parameters

* Remove ineffective const from return type

* Make node getters const

* Flatten Node::releaseSplit

* Rename in-function variable to match code style

* [ACTUAL CODE CHANGE/MOVE] Move clamp logic to its own function

* name params

* applyFromDescriptorRecursively: rename node param to baseNode

* [ACTUAL CODE CHANGE/MOVE] Remove the many overloads for append/insertSplit

This utilizes the C++20 designed initializers aggregate initialization feature

* Remove unused includes

* [ACTUAL CODE CHANGE] Clean up dragging logic

There's no need to keep a pointer around to which split is being
dragged, it's already stored in the QDropEvent source()

* UNRELATED .clang-tidy: Only suggest UPPER_CASE for constant global variables

* Remove unused SplitContainer::getSplitCount function

* Use std::max in Node's clamp function

* Remove test code

* DraggedSplit.hpp: remove unused include

* Split `setDraggingSplit` into two functions, `startDraggingSplit` and `stopDraggingSplit`
2022-12-25 11:09:25 +00:00
pajlada
032f290767
Sort and force grouping of includes ()
This change enforces strict include grouping using IncludeCategories

In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:

    In ChatterSet.hpp, I changed lrucache to a <>include
    In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
    In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
    In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
    clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
Adam Davies
fa93d63383
Add settings tooltips ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-10-30 12:06:38 +00:00
pajlada
51ece94f58
Update Settings and Signals version ()
Co-authored-by: zneix <zneix@zneix.eu>
2021-12-19 14:57:56 +00:00
pajlada
2f49b23875
Add ability to disable precompiled headers with CMake () 2021-05-08 15:57:00 +02:00
Paweł
cd1f4d0c78
Fixed deprecated method QComboBox::currentIndexChanged ()
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-03-13 17:25:39 +01:00
Paweł
4a53472215
Clean up debug output () 2021-02-07 14:37:19 +01:00
pajlada
4436109a2f
Add setting to limit number of historical messages to load on connect () 2020-12-06 13:04:49 +01:00
Steve Wills
df722a72c1
Switch to QT Category logging ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-11-21 16:20:10 +01:00
fourtf
11525e626a
edited general settings categories ()
* 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
0ecea8ad83 added category navigation to general settings 2020-10-22 23:20:07 +02:00