Cleanup of theme selection

For hidpi support, Gtk min version has been increased to 3.24.3. Theme logics based on Gtk version is so now useless
This commit is contained in:
Pandagrapher
2023-08-16 19:07:39 +02:00
parent bb258e4024
commit 58b7d41694
41 changed files with 35 additions and 2958 deletions

View File

@@ -70,18 +70,9 @@ class Preferences final :
}
};
class ThemeFilename
{
public:
Glib::ustring shortFName;
Glib::ustring longFName;
ThemeFilename (Glib::ustring sfname, Glib::ustring lfname) : shortFName (sfname), longFName (lfname) {}
};
Glib::RefPtr<Gtk::TreeStore> behModel;
BehavColumns behavColumns;
std::vector<ThemeFilename> themeFNames;
std::vector<Glib::ustring> themeNames;
Glib::RefPtr<Glib::Regex> regex;
Glib::MatchInfo matchInfo;
Splash* splash;
@@ -279,7 +270,7 @@ class Preferences final :
void switchFontTo (const Glib::ustring &newFontFamily, const int newFontSize);
bool splashClosed (GdkEventAny* event);
int getThemeRowNumber (const Glib::ustring& longThemeFName);
int getThemeRowNumber (const Glib::ustring& name);
void appendBehavList (Gtk::TreeModel::iterator& parent, Glib::ustring label, int id, bool set);