From 2f35bbd272d7b1414003bf437cc6ad675fe81400 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 29 Dec 2024 21:13:50 +0530 Subject: Change font to roboto mono + hint position changes --- src/Chelleport/View.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Chelleport') diff --git a/src/Chelleport/View.hs b/src/Chelleport/View.hs index a1195c7..314aa39 100644 --- a/src/Chelleport/View.hs +++ b/src/Chelleport/View.hs @@ -33,7 +33,7 @@ renderSearchView state searchData@(ModeSearchData {searchFilteredWords, searchHi fillRectVertices (matchStartX, matchStartY) (matchEndX, matchEndY) (w, h) <- windowSize - void $ drawText (w `div` 2, h `div` 2) searchingTextStyle (Text.pack $ getSearchText state searchData) + void $ drawText (w `div` 2, 5 + h `div` 2) searchingTextStyle (Text.pack $ getSearchText state searchData) renderHintsView :: (MonadDraw m) => State -> ModeHintsData -> m () renderHintsView state (ModeHintsData {stateGrid, stateKeySequence, stateIsMatched}) = do @@ -42,8 +42,8 @@ renderHintsView state (ModeHintsData {stateGrid, stateKeySequence, stateIsMatche (wcell, hcell) <- cellSize state forM_ (zip [0 ..] stateGrid) $ \(rowIndex, row) -> forM_ (zip [0 ..] row) $ \(colIndex, cell) -> do - let py = rowIndex * hcell + 10 - let px = colIndex * wcell + wcell `div` 2 - 20 + let py = rowIndex * hcell + 20 + let px = colIndex * wcell + wcell `div` 2 - 16 visible <- renderKeySequence stateKeySequence cell (px, py) when visible $ do renderTargetMarker state (rowIndex, colIndex) -- cgit v1.3.1