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

@ -1,8 +1,10 @@
#include "labwc.h"
#include "rcxml.h"
#include "theme.h"
struct server server = { 0 };
struct rcxml rc = { 0 };
struct theme theme = { 0 };
int main(int argc, char *argv[])
{
@ -27,6 +29,7 @@ int main(int argc, char *argv[])
rcxml_init(&rc);
rcxml_read("data/rc.xml");
theme_read("data/themerc");
/* Wayland requires XDG_RUNTIME_DIR to be set */
if (!getenv("XDG_RUNTIME_DIR")) {