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,6 +1,6 @@
#ifndef THEME_DIR_H
#define THEME_DIR_H
#ifndef __LABWC_THEME_DIR_H
#define __LABWC_THEME_DIR_H
char *theme_dir(const char *theme_name);
#endif /* THEME_DIR_H */
#endif /* __LABWC_THEME_DIR_H */

26
include/theme/theme.h Normal file
View file

@ -0,0 +1,26 @@
/*
* Theme engine for labwc - trying to be consistent with openbox
*
* Copyright Johan Malm 2020
*/
#ifndef __LABWC_THEME_H
#define __LABWC_THEME_H
#include <stdio.h>
#include <wlr/render/wlr_renderer.h>
struct theme {
float window_active_title_bg_color[4];
float window_active_handle_bg_color[4];
float window_inactive_title_bg_color[4];
struct wlr_texture *xbm_close;
struct wlr_texture *xbm_maximize;
struct wlr_texture *xbm_iconify;
};
extern struct theme theme;
void theme_read(const char *theme_name);
#endif /* __LABWC_THEME_H */

View file

@ -4,8 +4,8 @@
* Copyright Johan Malm 2020
*/
#ifndef PARSE_H
#define PARSE_H
#ifndef __LABWC_PARSE_H
#define __LABWC_PARSE_H
#include <stdint.h>
#include "theme/xbm/tokenize.h"
@ -24,4 +24,4 @@ struct pixmap xbm_create_pixmap(struct token *tokens);
struct pixmap xbm_create_pixmap_builtin(const char *button);
#endif /* PARSE_H */
#endif /* __LABWC_PARSE_H */

View file

@ -4,8 +4,8 @@
* Copyright Johan Malm 2020
*/
#ifndef TOKENIZE_H
#define TOKENIZE_H
#ifndef __LABWC_TOKENIZE_H
#define __LABWC_TOKENIZE_H
enum token_type {
TOKEN_NONE = 0,
@ -37,4 +37,4 @@ struct token *xbm_tokenize(char *buffer);
*/
char *xbm_read_file(const char *filename);
#endif /* TOKENIZE_H */
#endif /* __LABWC_TOKENIZE_H */

View file

@ -1,9 +1,8 @@
#ifndef XBM_H
#define XBM_H
#ifndef __LABWC_XBM_H
#define __LABWC_XBM_H
#include <wlr/render/wlr_renderer.h>
#include "theme.h"
#include "theme/xbm/parse.h"
/**
@ -11,4 +10,4 @@
*/
void xbm_load(struct wlr_renderer *renderer);
#endif /* XBM_H */
#endif /* __LABWC_XBM_H */