Skip to content

Commit

Permalink
Add a motivating text in the plugin settings placeholder page
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Dec 7, 2024
1 parent 3886a14 commit 0a16060
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/settings/pluginswidget/pluginswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,17 @@ void PluginsWidget::updatePluginWidget()
config_widget_scroll_area_->setWidget(new PluginWidget(p));
}
catch (const out_of_range &) {
auto *lbl = new QLabel(tr("Select a plugin"));

auto t = tr(
"<p>Plugins are a community effort,<br>built by awesome people like you.</p>"
"<p>💡 <a href='https://albertlauncher.github.io/gettingstarted/extension/'>"
"Learn how to build plugins</a></p>"
"<br>" // move text slightly up, looks more balanced
);

auto *lbl = new QLabel(t);
lbl->setAlignment(Qt::AlignCenter);
lbl->setOpenExternalLinks(true);
config_widget_scroll_area_->setWidget(lbl);
}
}
Expand Down

0 comments on commit 0a16060

Please sign in to comment.