mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
implement solid color rendering for swaybg
This commit is contained in:
parent
2e4ece65da
commit
98aa59fdda
10 changed files with 197 additions and 157 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "list.h"
|
||||
#include "util.h"
|
||||
|
||||
/**
|
||||
* Colors for a box with background, border and text colors.
|
||||
|
|
@ -47,11 +48,6 @@ struct config {
|
|||
} colors;
|
||||
};
|
||||
|
||||
/**
|
||||
* Parse colors defined as hex string to uint32_t.
|
||||
*/
|
||||
uint32_t parse_color(const char *color);
|
||||
|
||||
/**
|
||||
* Parse position top|bottom|left|right.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ struct output_config {
|
|||
int enabled;
|
||||
int width, height;
|
||||
int x, y;
|
||||
int scale;
|
||||
int scale;
|
||||
char *background;
|
||||
char *background_option;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -44,4 +44,10 @@ int get_modifier_names(const char **names, uint32_t modifier_masks);
|
|||
*/
|
||||
pid_t get_parent_pid(pid_t pid);
|
||||
|
||||
/**
|
||||
* Given a string that represents an RGB(A) color, return a uint32_t
|
||||
* version of the color.
|
||||
*/
|
||||
uint32_t parse_color(const char *color);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue