#define __LABWC_PARSE_H
#include <stdint.h>
-#include "theme/xbm/tokenize.h"
+#include "xbm/tokenize.h"
struct pixmap {
uint32_t *data;
#include <wlr/render/wlr_renderer.h>
-#include "theme/xbm/parse.h"
+#include "xbm/parse.h"
/**
* xbm_load - load theme xbm files into global theme struct
#include "labwc.h"
#include "theme/theme.h"
-#include "theme/xbm/xbm.h"
+#include "xbm/xbm.h"
#include "common/spawn.h"
#include <cairo.h>
subdir('config')
subdir('theme')
subdir('debug')
+subdir('xbm')
'theme.c',
)
-subdir('xbm')
#include <stdint.h>
#include <stdbool.h>
-#include "theme/xbm/parse.h"
+#include "xbm/parse.h"
#include "common/bug-on.h"
static uint32_t color;
#include <stdlib.h>
#include <string.h>
-#include "theme/xbm/tokenize.h"
+#include "xbm/tokenize.h"
static char *current_buffer_position;
static struct token *tokens;
#include <stdlib.h>
#include "theme/theme.h"
-#include "theme/xbm/xbm.h"
-#include "theme/xbm/parse.h"
+#include "xbm/xbm.h"
+#include "xbm/parse.h"
#include "config/rcxml.h"
#include "common/dir.h"
#include "common/grab-file.h"
../../src/common/dir.c \
../../src/common/buf.c \
../../src/common/font.c \
+ ../../src/common/log.c \
../../src/config/keybind.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <cairo.h>
+#include <pango/pangocairo.h>
#include "config/rcxml.h"
#include "common/buf.h"
+#include "common/log.h"
struct rcxml rc = { 0 };
rcxml_read(argv[1]);
printf("%s", b.buf);
free(b.buf);
+ pango_cairo_font_map_set_default(NULL);
}
SRCS = \
theme-helper.c \
../../src/theme/theme.c \
- ../../src/common/dir.c
+ ../../src/common/dir.c \
+ ../../src/common/log.c
all:
gcc $(CFLAGS) -o theme-helper $(SRCS) $(LDFLAGS)
DEP_TOKENIZE = \
../../src/common/buf.c \
- ../../src/theme/xbm/tokenize.c
+ ../../src/xbm/tokenize.c
DEP_PARSE = $(DEP_TOKENIZE) \
- ../../src/theme/xbm/parse.c \
+ ../../src/xbm/parse.c \
../../src/common/grab-file.c
all: $(PROGS)
#include <string.h>
#include <cairo.h>
-#include "theme/xbm/parse.h"
+#include "xbm/parse.h"
#include "common/grab-file.h"
+static float red[] = { 1.0, 0.0, 0.0, 1.0 };
+
int main(int argc, char **argv)
{
struct token *tokens;
exit(EXIT_FAILURE);
tokens = tokenize_xbm(buffer);
free(buffer);
+ parse_set_color(red);
struct pixmap pixmap = parse_xbm_tokens(tokens);
free(tokens);
#include <string.h>
#include "common/buf.h"
-#include "theme/xbm/tokenize.h"
+#include "xbm/tokenize.h"
/* Read file into buffer, because it's easier to tokenize that way */
char *read_file(const char *filename)