From 758be07a5a81fdbdf5ffece6c82f0b6b8d8e96b2 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 29 Sep 2018 14:05:59 +0300 Subject: [PATCH] Make the height of the bottom bar smaller --- src/Config.h | 2 +- src/TextInputWidget.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Config.h b/src/Config.h index 3bcaa200..19276c2b 100644 --- a/src/Config.h +++ b/src/Config.h @@ -66,7 +66,7 @@ constexpr int minWidth = 950; } // namespace window namespace textInput { -constexpr int height = 50; +constexpr int height = 44; } namespace sidebarActions { diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index 4a03762d..aadf6f48 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp @@ -43,8 +43,8 @@ static constexpr size_t INPUT_HISTORY_SIZE = 127; static constexpr int MAX_TEXTINPUT_HEIGHT = 120; -static constexpr int InputHeight = 26; -static constexpr int ButtonHeight = 24; +static constexpr int InputHeight = 24; +static constexpr int ButtonHeight = 22; FilteredTextEdit::FilteredTextEdit(QWidget *parent) : QTextEdit{parent} @@ -453,7 +453,7 @@ TextInputWidget::TextInputWidget(QWidget *parent) topLayout_ = new QHBoxLayout(); topLayout_->setSpacing(0); - topLayout_->setContentsMargins(15, 0, 15, 0); + topLayout_->setContentsMargins(13, 0, 13, 0); QIcon send_file_icon; send_file_icon.addFile(":/icons/icons/ui/paper-clip-outline.png");