include/: refactor header files more

This commit is contained in:
Johan Malm 2020-08-03 20:56:38 +01:00
parent 53266a0d5a
commit 4d1363dcae
32 changed files with 130 additions and 78 deletions

View file

@ -1,13 +1,23 @@
#include <stdio.h>
#include <stdlib.h>
#include "../../include/theme.h"
#include "theme/theme.h"
struct theme theme = { 0 };
int main()
static void usage(const char *application)
{
theme_read("../../data/themerc");
printf("Usage: %s <theme-name>\n", application);
exit(1);
}
int main(int argc, char **argv)
{
if (argc < 2)
usage(argv[0]);
theme_read(argv[1]);
printf("window_active_title_bg_color = ");
for (int i=0; i < 4; i++)
printf("%.2f; ", theme.window_active_title_bg_color[i]);
printf("\n");