From e1b8faacc9b432229bdf612a389e97df0770e08c Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 7 Aug 2018 09:45:10 +0200 Subject: [PATCH] added increased size of drag and drop regions --- src/providers/twitch/TwitchMessageBuilder.cpp | 2 +- src/widgets/splits/SplitContainer.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index 9d7642a10..8eafa7dd6 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -760,7 +760,7 @@ void TwitchMessageBuilder::appendTwitchBadges() case 1: { this->emplace( Image::fromNonOwningPixmap( - &app->resources->twitch.verified), + &app->resources->twitch.verified, 0.25), MessageElementFlag::BadgeVanity) ->setTooltip("Twitch Verified"); } break; diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index ee59a80eb..0afbebbbe 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -20,9 +20,8 @@ #include #include #include -#include - #include +#include namespace chatterino { @@ -328,10 +327,10 @@ void SplitContainer::layout() Node *node = this->baseNode_.findNodeContainingSplit(split); _dropRects.push_back( - DropRect(QRect(g.left(), g.top(), g.width() / 4, g.height()), + DropRect(QRect(g.left(), g.top(), g.width() / 3, g.height()), Position(node, Direction::Left))); - _dropRects.push_back(DropRect(QRect(g.left() + g.width() / 4 * 3, - g.top(), g.width() / 4, g.height()), + _dropRects.push_back(DropRect(QRect(g.left() + g.width() / 3 * 2, + g.top(), g.width() / 3, g.height()), Position(node, Direction::Right))); _dropRects.push_back(