mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
ncneofetch: fedora support #550
This commit is contained in:
parent
611b96ba46
commit
b8c5f51040
@ -26,6 +26,10 @@ static distro_info distros[] = {
|
||||
.name = "Debian",
|
||||
// from desktop-base package
|
||||
.logofile = "/usr/share/desktop-base/debian-logos/logo-text-256.png",
|
||||
}, {
|
||||
.name = "Fedora",
|
||||
// from redhat-lsb-core package
|
||||
.logofile = "/usr/share/pixmaps/fedora-logo.png",
|
||||
}, {
|
||||
.name = NULL,
|
||||
.logofile = NULL,
|
||||
@ -222,6 +226,9 @@ drawpalette(struct notcurses* nc){
|
||||
const int yoff = 2;
|
||||
for(int y = yoff ; y < yoff + psize / 64 ; ++y){
|
||||
for(int x = (dimx - 64) / 2 ; x < dimx / 2 + 32 ; ++x){
|
||||
if((y - yoff) * 64 + x >= psize){
|
||||
break;
|
||||
}
|
||||
cell_set_bg_palindex(&c, (y - yoff) * 64 + x);
|
||||
ncplane_putc_yx(stdn, y, x, &c);
|
||||
}
|
||||
@ -277,7 +284,7 @@ infoplane(struct notcurses* nc, const fetched_info* fi){
|
||||
return -1;
|
||||
}
|
||||
channels_set_fg_rgb(&channels, 0, 0, 0);
|
||||
channels_set_bg_rgb(&channels, 0x20, 0x20, 0x20);
|
||||
channels_set_bg_rgb(&channels, 0x50, 0x50, 0x50);
|
||||
ncplane_set_base(infop, " ", 0, channels);
|
||||
struct sysinfo sinfo;
|
||||
sysinfo(&sinfo);
|
||||
|
Loading…
Reference in New Issue
Block a user