Closed ghost closed 4 years ago
It is just me or does a warning feel more like a yellow to me.
printf("%s[!] ", YELLOW);
What's the difference between "bad error" or just "bad"? Shouldn't it just be "cflp_error" and then send that to stderr?
void cflp_error(char *msg, ...) {
printf("%s[-] ", RED);
va_list arg;
va_start (arg, msg);
vfprintf (stderr, msg, arg); //print to stderr instead of stdout!
va_end (arg);
printf("%s\n", RESET);
}
Inconsistencies between "cflp_bad_error" and "cflp_bad" as I mentioned. So just use "cflp_error".
This was wrongly changed to include "background" when it's supposed to point to the shell layer( layer_name ) being used like "top", "overlay" or "bottom".
cflp_info("Shell layer %s set", layer_name);
Small nit pick with the loaded video message. It makes more sense to be a info message.
cflp_info("Loaded %s", video_path);
I can cleanup the rest after these modifications are made. Overall I wasn't expecting this kind of pull request. It's just eye candy, but I'll allow it.
@GhostNaN
It is just me or does a warning feel more like a yellow to me.
are you referring to my picture or have you tried it yourself in your terminal? maybe it's your terminal colors/theme?
What's the difference between "bad error" or just "bad"? Shouldn't it just be "cflp_error" and then send that to stderr?
Inconsistencies between "cflp_bad_error" and "cflp_bad" as I mentioned. So just use "cflp_error".
In the beginning there was only _cflpbad. But then I saw this line (below) and then added _cflp_baderror because I saw you printing out to stderr....
https://github.com/GhostNaN/mpvpaper/blob/21bb932ffb7bcd87397637c281eeb32ef92d0a6e/src/paper.c#L129
But I can simply rename it to _cflperror
This was wrongly changed to include "background" when it's supposed to point to the shell layer( layer_name ) being used like "top", "overlay" or "bottom".
No problem, I can fix it....
Small nit pick with the loaded video message. It makes more sense to be a info message.
You're right....