61 QStringList gui_directories =
80 if (themes_list->isEmpty()) {
84 for (
int k = 0; k < themes_list->count(); k++) {
85 if (themes_list->at(k) == theme) {
91 themes_list->append(theme);
108 if (theme_name == theme) {
124 fc_assert_ret(
nullptr != theme_name && theme_name[0] !=
'\0');
#define fc_assert_ret(condition)
const char * option_str_get(const struct option *poption)
Returns the current value of this string option.
QStringList get_gui_specific_themes_directories(int *count)
Each gui has its own themes directories.
Q_GLOBAL_STATIC(QVector< QString >, future_name_translation)
The base class for options.
void theme_reread_callback(struct option *poption)
Wrapper for load_theme.
struct theme_directory * directories
bool load_theme(const QString &theme_name)
Loads a theme with the given name.
static int num_directories
const QVector< QString > * get_themes_list(const struct option *poption)
Return a static string vector of useable theme names.
void init_themes()
Initialized themes data.
QStringList get_useable_themes_in_directory(QString &directory)
Return an array of names of usable themes in the given directory.
void gui_load_theme(const QString &directory, const QString &theme_name)
Loads a qt theme directory/theme_name.