diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-12-15 18:13:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-12-15 18:13:03 +0530 |
| commit | 60b4a0fafebfc0351b3d0a6be13474d0f76e284a (patch) | |
| tree | 0829ca8bfd836c8f26b5301a41c70c1423c8ad66 /src/Chelleport/Draw.hs | |
| parent | 1d07e554284593cdca804404d1d9f68a473ee986 (diff) | |
| download | chelleport-60b4a0fafebfc0351b3d0a6be13474d0f76e284a.tar.gz chelleport-60b4a0fafebfc0351b3d0a6be13474d0f76e284a.zip | |
UI changes for grid
Diffstat (limited to 'src/Chelleport/Draw.hs')
| -rw-r--r-- | src/Chelleport/Draw.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chelleport/Draw.hs b/src/Chelleport/Draw.hs index 530713a..9ace9da 100644 --- a/src/Chelleport/Draw.hs +++ b/src/Chelleport/Draw.hs @@ -26,14 +26,14 @@ colorGridLines :: SDL.V4 Word8 colorGridLines = SDL.V4 127 29 29 150 colorAxisLines :: SDL.V4 Word8 -colorAxisLines = SDL.V4 239 68 68 255 +colorAxisLines = colorAccent colorBackground :: SDL.V4 Word8 colorBackground = SDL.V4 15 12 25 0 drawText :: DrawContext -> SDL.V2 CInt -> SDL.V4 Word8 -> Text -> IO (CInt, CInt) drawText ctx@(DrawContext {ctxRenderer = renderer}) position color text = do - surface <- TTF.solid (ctxFont ctx) color text -- TTF.blended + surface <- TTF.blended (ctxFont ctx) color text texture <- SDL.createTextureFromSurface renderer surface SDL.freeSurface surface |
