labwc/tools/theme/theme-helper.c

25 lines
440 B
C
Raw Normal View History

2020-06-11 21:20:43 +01:00
#include <stdio.h>
#include <stdlib.h>
2020-08-03 20:56:38 +01:00
#include "theme/theme.h"
2020-06-11 21:20:43 +01:00
struct theme theme = { 0 };
2020-08-03 20:56:38 +01:00
static void usage(const char *application)
2020-06-11 21:20:43 +01:00
{
2020-08-03 20:56:38 +01:00
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 = ");
2020-06-11 21:20:43 +01:00
for (int i=0; i < 4; i++)
printf("%.2f; ", theme.window_active_title_bg_color[i]);
printf("\n");
}