From ae7bac506fa93aefa015abbd2c415f7862884eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 21 Dec 2018 21:47:55 +0100 Subject: [PATCH] Make Console Execute Button consistent with ToolBar --- src/widgets/ConsoleWidget.cpp | 3 --- src/widgets/ConsoleWidget.ui | 32 ++++++++------------------------ 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/src/widgets/ConsoleWidget.cpp b/src/widgets/ConsoleWidget.cpp index 841f0670..955dc3bb 100644 --- a/src/widgets/ConsoleWidget.cpp +++ b/src/widgets/ConsoleWidget.cpp @@ -78,9 +78,6 @@ ConsoleWidget::ConsoleWidget(MainWindow *main, QAction *action) : // Adjust console lineedit ui->inputLineEdit->setTextMargins(10, 0, 0, 0); - ui->execButton->setIcon(QIcon(new SvgIconEngine(QString(":/img/icons/arrow_right.svg"), - palette().buttonText().color()))); - setupFont(); // Adjust text margins of consoleOutputTextEdit diff --git a/src/widgets/ConsoleWidget.ui b/src/widgets/ConsoleWidget.ui index 07ffb4de..0275d1af 100644 --- a/src/widgets/ConsoleWidget.ui +++ b/src/widgets/ConsoleWidget.ui @@ -109,36 +109,20 @@ Execute command - -QToolButton { /* all types of tool button */ - margin-bottom: 1px; - margin-top: 1px; - padding-left: 8px; - padding-right: 5px; - padding-top: 1px; - padding-bottom: 1px; - background-color: palette(light); - border-radius: 6px; - border-top: 2px solid palette(light); - border-bottom: 2px solid palette(light); - border-left: 2px solid palette(light); - border-right: 2px solid palette(light); -} - -QToolButton:pressed { - background-color: palette(dark); - border-top: 2px solid palette(dark); - border-bottom: 2px solid palette(dark); - border-left: 2px solid palette(dark); - border-right: 2px solid palette(dark); -} + ... - :/img/icons/play.svg:/img/icons/play.svg + :/img/icons/arrow_right_light.svg:/img/icons/arrow_right_light.svg + + + + 24 + 16 +