Skip to content

Commit

Permalink
draw: more adjustments to colors and alpha for -b
Browse files Browse the repository at this point in the history
  • Loading branch information
qwx9 committed Jan 24, 2025
1 parent 033f74c commit 3c56cf8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions draw/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ u32int *theme;
static u32int theme1[Cend] = {
[Cbg] = 0x000000ff,
[Ctext] = 0xbb1100ff,
[Cedge] = 0xbbbbbb50,
[Cedge] = 0xaaaaaa80,
[Cemph] = 0xff0000ff,
[Chigh] = 0xffffccff,
};
static u32int theme2[Cend] = {
[Cbg] = 0xffffffff,
[Ctext] = 0xeeee00ff,
[Cedge] = 0x44444477,
[Cedge] = 0xaaaaaa77,
[Cemph] = 0xff0000ff,
[Chigh] = 0x000000ff,
};
Expand Down Expand Up @@ -237,10 +237,13 @@ color(u32int v)
u32int
somecolor(ioff i, char **name)
{
uchar a;

i %= nelem(pal);
if(name != nil)
*name = pal[i].name;
return pal[i].col << 8 | 0xc0;
a = drawing.flags & DFhaxx0rz ? 0x70 : 0xc0;
return pal[i].col << 8 | a;
}

void
Expand Down

0 comments on commit 3c56cf8

Please sign in to comment.