]> git.lyx.org Git - features.git/commitdiff
Two more icon scale fixes
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 11 Mar 2023 15:10:52 +0000 (16:10 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 11 Mar 2023 15:10:52 +0000 (16:10 +0100)
src/frontends/qt/ButtonController.cpp
src/frontends/qt/GuiApplication.cpp

index a2c7359a0d76f6de510803a7b4bd2918e95a2775..e347f2df052bff196ead504e3defeebf578e016e 100644 (file)
@@ -88,7 +88,8 @@ bool CheckedLineEdit::check() const
                }
                setValid(target_, valid);
                if (!valid && tab_index_ >= 0 && qobject_cast<QTabWidget*>(target_) != nullptr) {
-                       QIcon warn(getPixmap("images/", "emblem-shellescape", "svgz,png"));
+                       QIcon warn(guiApp ? guiApp->getScaledPixmap("images/", "emblem-shellescape")
+                                         : getPixmap("images/", "emblem-shellescape", "svgz,png"));
                        QTabBar * tb = qobject_cast<QTabWidget*>(target_)->tabBar();
                        tb->setTabIcon(tab_index_, warn);
                        tb->setTabToolTip(tab_index_, qt_("This tab contains invalid input. Please fix!"));
index cee49ad468b958c7f52236838ddad829f71f76b8..0fd63a37c8b09b1402606a3fa19fc7c3ef4ee3bf 100644 (file)
@@ -2842,8 +2842,10 @@ QAbstractItemModel * GuiApplication::languageModel()
 
        QStandardItemModel * lang_model = new QStandardItemModel(this);
        lang_model->insertColumns(0, 3);
-       QIcon speller(getPixmap("images/", "dialog-show_spellchecker", "svgz,png"));
-       QIcon saurus(getPixmap("images/", "thesaurus-entry", "svgz,png"));
+       QIcon speller(guiApp ? guiApp->getScaledPixmap("images/", "dialog-show_spellchecker")
+                         : getPixmap("images/", "dialog-show_spellchecker", "svgz,png"));
+       QIcon saurus(guiApp ? guiApp->getScaledPixmap("images/", "thesaurus-entry")
+                         : getPixmap("images/", "thesaurus-entry", "svgz,png"));
        Languages::const_iterator it = lyx::languages.begin();
        Languages::const_iterator end = lyx::languages.end();
        for (; it != end; ++it) {