1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00
i3lock-color/fonts.h
julio-b e4802e8d17
Add outline color and width for every text element (#198)
* Add outline color and width for every text element

Define outline colors, i.e. --timeoutlinecolor=FFFF00FF
Define outline width, i.e. --timeoutlinewidth=0.75

New arguments:
    --verifoutlinecolor
    --wrongoutlinecolor
    --layoutoutlinecolor
    --timeoutlinecolor
    --dateoutlinecolor
    --greeteroutlinecolor

    --timeoutlinewidth
    --dateoutlinewidth
    --verifoutlinewidth
    --wrongoutlinewidth
    --modifieroutlinewidth
    --layoutoutlinewidth
    --greeteroutlinewidth

* Separate the variable definitions

Co-authored-by: Raymond Li <hi@raymond.li>
2021-01-25 22:49:05 -05:00

33 lines
477 B
C

#ifndef FONTS_H
#define FONTS_H
#include <cairo.h>
#include <cairo-ft.h>
#include <stdbool.h>
#include <rgba.h>
#define VERIF_FONT 0
#define WRONG_FONT 1
#define LAYOUT_FONT 2
#define TIME_FONT 3
#define DATE_FONT 4
#define GREETER_FONT 5
typedef struct text {
bool show;
char str[512];
double size;
double outline_width;
cairo_font_face_t *font;
rgba_t color;
rgba_t outline_color;
double x, y;
int align;
} text_t;
#endif