Skip to content

Commit

Permalink
Minor style changes, thinner edges and much greater contrast for the …
Browse files Browse the repository at this point in the history
…pastel theme
  • Loading branch information
kwakzalver committed Jan 11, 2024
1 parent b61bc28 commit 79c522c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/definitions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ const Palette = struct {
return Palette{
.fg_prim = Color.from_u24(0xFFFFFC), // #FFFFFC
.fg_seco = Color.from_u24(0xDDDDDA), // #DDDDDA
.bg_seco = Color.from_u24(0x555566), // #555566
.bg_prim = Color.from_u24(0x444444), // #444444
.bg_seco = Color.from_u24(0x222233), // #222233
.bg_prim = Color.from_u24(0x111122), // #111122
.piece_I = Color.from_u24(0xFFADAD), // #FFADAD
.piece_J = Color.from_u24(0xFFD6A5), // #FFD6A5
.piece_L = Color.from_u24(0xFDFFB6), // #FDFFB6
Expand All @@ -194,8 +194,8 @@ const Palette = struct {

fn pastel_light() Palette {
return Palette{
.fg_prim = Color.from_u24(0x333344), // #333344
.fg_seco = Color.from_u24(0x444455), // #444455
.fg_prim = Color.from_u24(0x111122), // #111122
.fg_seco = Color.from_u24(0x222233), // #222233
.bg_seco = Color.from_u24(0xDDDDDA), // #DDDDDA
.bg_prim = Color.from_u24(0xFFFFFC), // #FFFFFC
.piece_I = Color.from_u24(0xFF9DAD), // #FF9DAD
Expand Down
8 changes: 4 additions & 4 deletions src/window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ const Renderer = struct {
);
self.set_color(G.current_colorscheme.palette.bg_prim);
self.fill_rectangle(
G.BSIZE + x * G.BSIZE + 8 * G.BORDER,
G.BSIZE + y * G.BSIZE + 8 * G.BORDER,
G.SIZE - 16 * G.BORDER,
G.SIZE - 16 * G.BORDER,
G.BSIZE + x * G.BSIZE + 1 * G.BORDER,
G.BSIZE + y * G.BSIZE + 1 * G.BORDER,
G.SIZE - 2 * G.BORDER,
G.SIZE - 2 * G.BORDER,
);
self.set_color(c);
},
Expand Down

0 comments on commit 79c522c

Please sign in to comment.