Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Apr 20, 2024
1 parent 59b1a78 commit 4b002c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions share/stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -300,3 +302,7 @@ QTextBrowser#PluginViewBrowser {
QAbstractScrollArea::corner {
border: 0;
}

QLabel#PluginTypeLabel {
color: #767776;
}
2 changes: 1 addition & 1 deletion src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions src/pluginlistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 4b002c0

Please sign in to comment.