From 4b002c00ad6961a202f3dfeadcdea2ed9103dee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sat, 20 Apr 2024 22:52:51 +0200 Subject: [PATCH] Minor --- share/stylesheet.qss | 6 ++++++ src/app.cpp | 2 +- src/pluginlistwidget.cpp | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/share/stylesheet.qss b/share/stylesheet.qss index 33da466..d674d52 100644 --- a/share/stylesheet.qss +++ b/share/stylesheet.qss @@ -207,11 +207,13 @@ QTextBrowser#PluginViewBrowser .QScrollBar::sub-line:horizontal { subcontrol-origin: margin; } +QLabel#ComboSearchLabel, QLabel#ComboGroupLabel, QLabel#ComboStatusLabel { margin-right: 0.5em; } +QLabel#ComboSearchLabel, QLabel#ComboGroupLabel { margin-left: 0.5em; } @@ -300,3 +302,7 @@ QTextBrowser#PluginViewBrowser { QAbstractScrollArea::corner { border: 0; } + +QLabel#PluginTypeLabel { + color: #767776; +} diff --git a/src/app.cpp b/src/app.cpp index 258c689..df44241 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -109,9 +109,9 @@ NatronPluginManager::NatronPluginManager(QWidget *parent) pluginsComboWidgetLayout->addWidget(_comboStatus); pluginsComboWidgetLayout->addWidget(comboGroupLabel); pluginsComboWidgetLayout->addWidget(_comboGroup); - pluginsComboWidgetLayout->addStretch(); pluginsComboWidgetLayout->addWidget(comboSearchLabel); pluginsComboWidgetLayout->addWidget(_lineEdit); + pluginsComboWidgetLayout->addStretch(); pluginsWidgetLayout->addWidget(pluginsComboWidget); pluginsWidgetLayout->addWidget(_pluginList); diff --git a/src/pluginlistwidget.cpp b/src/pluginlistwidget.cpp index 6bf3a39..ac0cb4b 100644 --- a/src/pluginlistwidget.cpp +++ b/src/pluginlistwidget.cpp @@ -84,6 +84,10 @@ PluginListWidget::PluginListWidget(const Plugins::PluginSpecs &plugin, if (!pluginPixmap.isNull()) { pluginIconLabel->setPixmap(pluginPixmap); } } + const auto pluginTypeLabel = new QLabel(this); + pluginTypeLabel->setObjectName("PluginTypeLabel"); + pluginTypeLabel->setText(plugin.isAddon ? tr("Addon") : tr("PyPlug")); + _installButton = new QPushButton(tr("Install"), this); _removeButton = new QPushButton(tr("Remove"), this); _updateButton = new QPushButton(tr("Update"), this); @@ -96,6 +100,7 @@ PluginListWidget::PluginListWidget(const Plugins::PluginSpecs &plugin, _removeButton->setProperty("RemoveButton", true); _updateButton->setProperty("UpdateButton", true); + pluginsFooterLayout->addWidget(pluginTypeLabel); pluginsFooterLayout->addStretch(); pluginsFooterLayout->addWidget(_updateButton); pluginsFooterLayout->addWidget(_installButton);