See #3446: the theme filenames now includes a code for version handling.

The theme filename must use a template, that will be explained with this
example:

mytheme-GTK3-20_22.css

Everything before -GTK3... is the theme (short) name, the [-GTK3-] is a
mandatory part, 20 is the included version where support begins and 22
is the included version where the support ends. One of this two version
parameters can be ommited (but not both of course), which make RT
understand "is compatible from all version up to xx" (e.g.
mytheme-GTK3-_22.css) or "is compatible from version yy and above" (e.g.
mytheme-GTK3-20_.css)

The RawTherapee-GTK3-_19.css comes 'as is' from the gtk3 branch and has
still to be tuned.
This commit is contained in:
Hombre
2016-11-20 02:22:03 +01:00
parent 0ebac85970
commit 55759c04e3
5 changed files with 551 additions and 15 deletions

View File

@@ -60,11 +60,21 @@ class Preferences : public Gtk::Dialog, public ProfileStoreListener
add(addsetid);
}
};
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;
protected:
std::vector<ThemeFilename> themeFNames;
Glib::RefPtr<Glib::Regex> regex;
Glib::MatchInfo matchInfo;
Splash* splash;
ProfileStoreComboBox* rprofiles;
Gtk::TreeIter currRawRow; // :)
@@ -198,6 +208,7 @@ protected:
void fillPreferences ();
void storePreferences ();
void parseDir (Glib::ustring dirname, std::vector<Glib::ustring>& items, Glib::ustring ext);
void parseThemeDir (Glib::ustring dirname);
void updateDFinfos ();
void updateFFinfos ();
void workflowUpdate();
@@ -210,6 +221,8 @@ protected:
void switchThemeTo (Glib::ustring newTheme);
bool splashClosed(GdkEventAny* event);
int getThemeRowNumber(Glib::ustring& longThemeFName);
void appendBehavList (Gtk::TreeModel::iterator& parent, Glib::ustring label, int id, bool set);
Gtk::Widget* getProcParamsPanel ();