mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
theme: create hover button fallbacks
...by copying the non-hover variant and adding a transparent overlay. Co-authored-by: @johanmalm
This commit is contained in:
parent
d207e97992
commit
27de4e6398
6 changed files with 150 additions and 0 deletions
|
|
@ -47,4 +47,14 @@ void set_cairo_color(cairo_t *cairo, float *color);
|
|||
/* Draws a border with a specified line width */
|
||||
void draw_cairo_border(cairo_t *cairo, struct wlr_fbox fbox, double line_width);
|
||||
|
||||
struct lab_data_buffer;
|
||||
|
||||
struct surface_context {
|
||||
bool is_duplicate;
|
||||
cairo_surface_t *surface;
|
||||
};
|
||||
|
||||
struct surface_context get_cairo_surface_from_lab_data_buffer(
|
||||
struct lab_data_buffer *buffer);
|
||||
|
||||
#endif /* LABWC_GRAPHIC_HELPERS_H */
|
||||
|
|
|
|||
|
|
@ -2,6 +2,15 @@
|
|||
#ifndef LABWC_STRING_HELPERS_H
|
||||
#define LABWC_STRING_HELPERS_H
|
||||
|
||||
/**
|
||||
* trim_last_field() - Trim last field of string splitting on provided delim
|
||||
* @buf: string to trim
|
||||
* @delim: delimitator
|
||||
*
|
||||
* Example: With delim='_' and buf="foo_bar_baz" the return value is "foo_bar"
|
||||
*/
|
||||
void trim_last_field(char *buf, char delim);
|
||||
|
||||
/**
|
||||
* string_strip - strip white space left and right
|
||||
* Note: this function does a left skip, so the returning pointer cannot be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue