Apply clang-format

This commit is contained in:
Tobias Fella
2021-04-04 22:43:17 +02:00
parent 025f00e99d
commit e4ab2e565f
24 changed files with 521 additions and 375 deletions

View File

@@ -12,7 +12,7 @@
#include "controller.h"
static Kirigami::PlatformTheme * s_theme = nullptr;
static Kirigami::PlatformTheme *s_theme = nullptr;
NeoChatUser::NeoChatUser(QString userId, Connection *connection)
: User(std::move(userId), connection)
@@ -44,5 +44,8 @@ void NeoChatUser::setColor(const QColor &color)
void NeoChatUser::polishColor()
{
// https://github.com/quotient-im/libQuotient/wiki/User-color-coding-standard-draft-proposal
setColor(QColor::fromHslF(hueF(), 1 - s_theme->alternateBackgroundColor().saturationF(), -0.7 * s_theme->alternateBackgroundColor().lightnessF() + 0.9, s_theme->textColor().alphaF()));
setColor(QColor::fromHslF(hueF(),
1 - s_theme->alternateBackgroundColor().saturationF(),
-0.7 * s_theme->alternateBackgroundColor().lightnessF() + 0.9,
s_theme->textColor().alphaF()));
}