switch from U+2591 Light Shade to U+2592 Medium Shade (#449)

Some terminals (*e.g.* `gnome-terminal`) use the character to decide
how dark or light the color should be, rather than showing the
character itself (like *e.g.* `rxvt-unicode`).  Light Shade looks OK
in terminals that display the actual character, but too dark in
terminals that use it as a brightness hint.  Medium Shade seems to
look good (at least, IMO) in both.

See https://github.com/swarm-game/swarm/issues/196#issuecomment-1147298159 .
This commit is contained in:
Brent Yorgey 2022-06-20 12:56:55 -05:00 committed by GitHub
parent 389e3b7940
commit 8b8c16a71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View File

@ -1,9 +1,9 @@
v
v<^vv<<@ ^^ vv >^v^T ^^^v< <>< v >
T ^< >^ < >> v> v< >T <v> <<^ @><>
T ^< >^ < >> v> v< >T <v> <<^ @><>
<@v^^>> @v > <T <v<T<^^> v><v< << <<T^ v<
> >> v@ @@> << ~v < >~ ^~ >> @^ >v
>>^v^^^ < ~ T~v v< <~ >>T <v vv >
>>^v^^^ < ~ T~v v< <~ >>T <v vv >
^ ^ v > >

View File

@ -8,7 +8,7 @@ main = do
txt' <- (traverse . traverse) replace txt
writeFile "logo.txt" (unlines txt')
chars = "<^>vT~@ "
chars = "<^>vT~@ "
replace :: Char -> IO Char
replace ' ' = pick $ zip (replicate 8 0.005 ++ [1]) chars

View File

@ -1,9 +1,9 @@
v
v<^vv<<@ ^^ vv >^v^T ^^^v< <>< v >
T ^< >^ < >> v> v< >T <v> <<^ @><>
T ^< >^ < >> v> v< >T <v> <<^ @><>
<@v^^>> @v > <T <v<T<^^> v><v< << <<T^ v<
> >> v@ @@> << ~v < >~ ^~ >> @^ >v
>>^v^^^ < ~ T~v v< <~ >>T <v vv >
>>^v^^^ < ~ T~v v< <~ >>T <v vv >
^ ^ v > >

View File

@ -51,9 +51,9 @@ displayTerrain t = displayWidget Nothing (terrainMap ! t)
terrainMap :: Map TerrainType Display
terrainMap =
M.fromList
[ (StoneT, defaultTerrainDisplay '' rockAttr)
, (DirtT, defaultTerrainDisplay '' dirtAttr)
, (GrassT, defaultTerrainDisplay '' grassAttr)
[ (StoneT, defaultTerrainDisplay '' rockAttr)
, (DirtT, defaultTerrainDisplay '' dirtAttr)
, (GrassT, defaultTerrainDisplay '' grassAttr)
, (IceT, defaultTerrainDisplay ' ' iceAttr)
, (BlankT, defaultTerrainDisplay ' ' defAttr)
]

View File

@ -114,7 +114,7 @@ drawLogo = centerLayer . vBox . map (hBox . T.foldr (\c ws -> drawThing c : ws)
attrFor 'T' = plantAttr
attrFor '@' = rockAttr
attrFor '~' = waterAttr
attrFor '' = dirtAttr
attrFor '' = dirtAttr
attrFor _ = defAttr
drawNewGameMenuUI :: NonEmpty (BL.List Name ScenarioItem) -> Widget Name