Add theme.c to parse openbox's themerc

This commit is contained in:
Johan Malm 2020-06-11 21:20:43 +01:00
parent 0ede4c61e6
commit d40445da1d
10 changed files with 146 additions and 2 deletions

View file

@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
#include "../../include/theme.h"
struct theme theme = { 0 };
int main()
{
theme_read("../../data/themerc");
for (int i=0; i < 4; i++)
printf("%.2f; ", theme.window_active_title_bg_color[i]);
printf("\n");
}