mirror of
https://github.com/yshui/picom.git
synced 2025-07-31 22:01:56 -04:00
config: rename shadow-hex to shadow-color
It's not directly clear from the name "shadow-hex" that it's related to color. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
f99be829d1
commit
3ae21aa9a3
5 changed files with 8 additions and 8 deletions
|
@ -88,6 +88,9 @@ OPTIONS
|
||||||
*--write-pid-path* 'PATH'::
|
*--write-pid-path* 'PATH'::
|
||||||
Write process ID to a file.
|
Write process ID to a file.
|
||||||
|
|
||||||
|
*--shadow-color* 'STRING'::
|
||||||
|
Color of shadow, as a hex string ('#000000')
|
||||||
|
|
||||||
*--shadow-red* 'VALUE'::
|
*--shadow-red* 'VALUE'::
|
||||||
Red color value of shadow (0.0 - 1.0, defaults to 0).
|
Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
|
||||||
|
@ -151,9 +154,6 @@ OPTIONS
|
||||||
*--shadow-exclude* 'CONDITION'::
|
*--shadow-exclude* 'CONDITION'::
|
||||||
Specify a list of conditions of windows that should have no shadow.
|
Specify a list of conditions of windows that should have no shadow.
|
||||||
|
|
||||||
*--shadow-hex* 'STRING'::
|
|
||||||
Color of shadow using hex string ('#000000')
|
|
||||||
|
|
||||||
*--fade-exclude* 'CONDITION'::
|
*--fade-exclude* 'CONDITION'::
|
||||||
Specify a list of conditions of windows that should not be faded.
|
Specify a list of conditions of windows that should not be faded.
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ shadow-offset-y = -7;
|
||||||
# shadow-blue = 0
|
# shadow-blue = 0
|
||||||
|
|
||||||
# Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue)
|
# Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue)
|
||||||
# shadow-hex = "#000000"
|
# shadow-color = "#000000"
|
||||||
|
|
||||||
# Do not paint shadows on shaped windows. Note shaped windows
|
# Do not paint shadows on shaped windows. Note shaped windows
|
||||||
# here means windows setting its shape through X Shape extension.
|
# here means windows setting its shape through X Shape extension.
|
||||||
|
|
|
@ -515,7 +515,7 @@ char *parse_config(options_t *opt, const char *config_file, bool *shadow_enable,
|
||||||
.sw_opti = false,
|
.sw_opti = false,
|
||||||
.use_damage = true,
|
.use_damage = true,
|
||||||
|
|
||||||
.shadow_hex = "#000000",
|
.shadow_color = "#000000",
|
||||||
.shadow_red = 0.0,
|
.shadow_red = 0.0,
|
||||||
.shadow_green = 0.0,
|
.shadow_green = 0.0,
|
||||||
.shadow_blue = 0.0,
|
.shadow_blue = 0.0,
|
||||||
|
|
|
@ -140,7 +140,7 @@ typedef struct options {
|
||||||
// === Shadow ===
|
// === Shadow ===
|
||||||
/// Red, green and blue tone of the shadow.
|
/// Red, green and blue tone of the shadow.
|
||||||
double shadow_red, shadow_green, shadow_blue;
|
double shadow_red, shadow_green, shadow_blue;
|
||||||
char *shadow_hex;
|
char *shadow_color;
|
||||||
int shadow_radius;
|
int shadow_radius;
|
||||||
int shadow_offset_x, shadow_offset_y;
|
int shadow_offset_x, shadow_offset_y;
|
||||||
double shadow_opacity;
|
double shadow_opacity;
|
||||||
|
|
|
@ -425,8 +425,8 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
|
||||||
config_lookup_float(&cfg, "shadow-green", &opt->shadow_green);
|
config_lookup_float(&cfg, "shadow-green", &opt->shadow_green);
|
||||||
// --shadow-blue
|
// --shadow-blue
|
||||||
config_lookup_float(&cfg, "shadow-blue", &opt->shadow_blue);
|
config_lookup_float(&cfg, "shadow-blue", &opt->shadow_blue);
|
||||||
// --shadow-hex
|
// --shadow-color
|
||||||
if (config_lookup_string(&cfg, "shadow-hex", &sval)) {
|
if (config_lookup_string(&cfg, "shadow-color", &sval)) {
|
||||||
struct color rgb;
|
struct color rgb;
|
||||||
rgb = hex_to_rgb(sval);
|
rgb = hex_to_rgb(sval);
|
||||||
opt->shadow_red = rgb.red;
|
opt->shadow_red = rgb.red;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue