#include #include "../src/ax.h" // #include "../src/ctxt.h" int main(void) { struct ax_ctxt* ax = ax_new(); int rv; ax_begin_theme(ax); if ((rv = ax_set_theme_color(ax, "primary", 0x00ff00)) != 0) { goto cleanup; } if ((rv = ax_set_theme_font(ax, "default", "/usr/share/fonts/TTF/DejaVuSans.ttf", 0)) != 0) { goto cleanup; } struct ax_theme* thm; ax_end_theme(ax, &thm); ax_select_theme(ax, thm); cleanup: if (rv != 0) { printf("error: %s\n", ax_get_error(ax)); } ax_free(ax); return rv; }