Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme Config #101

Closed
ryanfleury opened this issue Dec 18, 2019 · 4 comments
Closed

Theme Config #101

ryanfleury opened this issue Dec 18, 2019 · 4 comments

Comments

@ryanfleury
Copy link

ryanfleury commented Dec 18, 2019

The default theme set in the config file is not loaded at startup in 4.1.0.

@BrieucSwales
Copy link

BrieucSwales commented Dec 20, 2019

Here's a quick fix for this issue in the meantime. Put this at the end of the "default_startup" command or your custom startup command:

Color_Table_List *color_table_list = &global_theme_list;
for ( Color_Table_Node *node = color_table_list->first; node != 0; node = node->next ) {
    if ( string_match( node->name, global_config.default_theme_name ) ) {
        active_color_table = node->table;
        break;
    }
}

@4coder-editor
Copy link
Owner

4coder-editor commented Dec 23, 2019

Fixed and incorporated into the config parser. Will be fixed in 4.1.1

@s0ra
Copy link

s0ra commented Jan 3, 2020

I added the code to the startup command (in the example?) and compiled but still couldn't change the theme.

@s0ra
Copy link

s0ra commented Jan 4, 2020

So, I finally got the theme working. The string need to match exactly without the suffix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants