From 359e20c25f27a7b5218ee86992a155149a0dc9c7 Mon Sep 17 00:00:00 2001 From: Trey Tomes Date: Fri, 5 Jan 2024 13:49:39 -0600 Subject: [PATCH] Use the Color class everywhere. --- src/tile.ms | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tile.ms b/src/tile.ms index bacb559..a1eac14 100644 --- a/src/tile.ms +++ b/src/tile.ms @@ -21,8 +21,8 @@ Tile.getDrawInfo = function(dim=false) fg = self.foregroundColor bg = self.backgroundColor if dim then - if fg isa Color then fg = fg.darker.str else fg = "#444444" - if bg isa Color then bg = bg.darker.str else bg = color.black + if fg isa Color then fg = fg.darker.str else fg = Color.white.darker //"#444444" + if bg isa Color then bg = bg.darker.str else bg = Color.black else if fg isa Color then fg = fg.str if bg isa Color then bg = bg.str @@ -40,9 +40,9 @@ end function Tile.drawDim = function(dsp, x, y) fg = self.foregroundColor - if fg isa Color then fg = fg.darker.str else fg = "#444444" + if fg isa Color then fg = fg.darker.str else fg = Color.white.darker //"#444444" bg = self.backgroundColor - if bg isa Color then bg = bg.darker.str else bg = color.black + if bg isa Color then bg = bg.darker.str else bg = Color.black dsp.setCell x, y, self.char, fg, bg end function