rosenrot/plugins/style
2023-02-05 03:21:30 +01:00
..
README.md feat: add plugin to customize css for individual websites... 2023-02-05 03:21:30 +01:00
recompute_STYLE_N.sh feat: add plugin to customize css for individual websites... 2023-02-05 03:21:30 +01:00
style.c feat: add plugin to customize css for individual websites... 2023-02-05 03:21:30 +01:00
style.h feat: add plugin to customize css for individual websites... 2023-02-05 03:21:30 +01:00
style.js feat: add plugin to customize css for individual websites... 2023-02-05 03:21:30 +01:00

Customize css style for individual websites.

To enable it

In build.sh, uncomment this line:

REQS= #./plugins/*/*.c

In rose.c, uncomment:

// #include "plugins/style/style.h"

...

                                // Add custom style
                                /*  
                                char* style_js = malloc(STYLE_N+1);
                                read_style_js(style_js);
                                webkit_web_view_run_javascript(notebook_get_webview(notebook), 
                                            style_js, 
                                            NULL, NULL, NULL);
                                free(style_js);
                                */

You will also want to customize the style.c file.