aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-04-14 10:52:23 -0300
committerflow <thiagodonato300@gmail.com>2022-04-15 08:49:43 -0300
commit5f15f51610f861521afdb295df0de6d9407ba951 (patch)
tree10b795a120ddff21ad1d2022eb82ba35f6501042 /launcher/ui/pages/modplatform
parent277de4120052b2630850a18969a56ee92e8c2c63 (diff)
downloadPrismLauncher-5f15f51610f861521afdb295df0de6d9407ba951.tar.gz
PrismLauncher-5f15f51610f861521afdb295df0de6d9407ba951.tar.bz2
PrismLauncher-5f15f51610f861521afdb295df0de6d9407ba951.zip
ui: underline search button text when changing filters
This hopefully makes it easier to the user to know that their changes will only apply after hitting the search button. I tried setting the background color, but it seems more unreliable on cross-platform than underlining. Also, it could be worse for daltonic people, so I don't know what to do :(
Diffstat (limited to 'launcher/ui/pages/modplatform')
-rw-r--r--launcher/ui/pages/modplatform/ModPage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/ModPage.cpp b/launcher/ui/pages/modplatform/ModPage.cpp
index 57c2e45d..29f6b601 100644
--- a/launcher/ui/pages/modplatform/ModPage.cpp
+++ b/launcher/ui/pages/modplatform/ModPage.cpp
@@ -28,6 +28,13 @@ ModPage::ModPage(ModDownloadDialog* dialog, BaseInstance* instance, ModAPI* api)
filter_widget.setInstance(static_cast<MinecraftInstance*>(m_instance));
m_filter = filter_widget.getFilter();
+
+ connect(&filter_widget, &ModFilterWidget::filterChanged, this, [&]{
+ ui->searchButton->setStyleSheet("text-decoration: underline");
+ });
+ connect(&filter_widget, &ModFilterWidget::filterUnchanged, this, [&]{
+ ui->searchButton->setStyleSheet("text-decoration: none");
+ });
}
ModPage::~ModPage()