Skip to content

Commit 5b26c9c

Browse files
committed
wip
1 parent bb1d722 commit 5b26c9c

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

ghcjs/delivery-calculator/src/Main.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,15 @@ viewModel st =
245245
link_
246246
[ rel_ "stylesheet",
247247
-- href_ "https://unpkg.com/[email protected]/css/nes.min.css"
248-
href_ "static/css/mvp.css"
248+
-- href_ "static/css/mvp.css"
249249
-- href_ "static/css/simple.min.css"
250250
-- href_ "static/css/tacit-css-1.8.1.min.css"
251251
-- href_ "node_modules/@lowlighter/matcha/dist/matcha.css"
252+
-- href_ "https://unpkg.com/@sakun/system.css"
253+
-- href_ "https://unpkg.com/papercss/dist/paper.min.css"
254+
-- href_ "https://unpkg.com/[email protected]/dist/terminal.min.css"
255+
-- href_ "https://vinibiavatti1.github.io/TuiCss/dist/tuicss.min.css"
256+
href_ "https://fieber.hack.re/fieber.css"
252257
],
253258
link_
254259
[ rel_ "stylesheet",

ghcjs/miso-functora/src/Functora/Miso/Widgets/Currency.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Functora.Miso.Prelude
1010
import Functora.Miso.Types
1111
import qualified Functora.Miso.Widgets.Dialog as Dialog
1212
import qualified Functora.Miso.Widgets.Field as Field
13+
import qualified Functora.Miso.Widgets.Icon as Icon
1314
import Functora.Money hiding (Currency, Money, Text)
1415
import qualified Miso
1516
import qualified Text.Fuzzy as Fuzzy
@@ -70,6 +71,7 @@ selectCurrency
7071
<> Dialog.dialog
7172
Dialog.defOpts
7273
{ Dialog.optsTitle = Just "Currency",
74+
Dialog.optsTitleIcon = Just Icon.IconCoins,
7375
Dialog.optsHeaderRight =
7476
( <>
7577
Field.textField

ghcjs/miso-functora/src/Functora/Miso/Widgets/Dialog.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dialog opts args =
8484
defHeaderLeft =
8585
maybeToList
8686
( fmap
87-
( h1_
87+
( h2_
8888
[ defHeaderStyle,
8989
style_ [("margin-right", "0.5em")]
9090
]
@@ -95,7 +95,7 @@ dialog opts args =
9595
)
9696
<> maybeToList
9797
( fmap
98-
( h1_ [defHeaderStyle] . singleton . text
98+
( h2_ [defHeaderStyle] . singleton . text
9999
)
100100
$ optsTitle opts
101101
)

ghcjs/miso-functora/src/Functora/Miso/Widgets/Icon.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ data Icon
3838
| IconExpand
3939
| IconCollapse
4040
| IconFile
41+
| IconDollar
42+
| IconCoins
4143
deriving stock (Eq, Ord, Show, Read, Data, Generic, Enum, Bounded)
4244

4345
class (From Icon a) => IsIcon a where
@@ -73,6 +75,8 @@ data Fa
7375
| FaUpRightAndDownLeftFromCenter
7476
| FaDownLeftAndUpRightToCenter
7577
| FaFileLines
78+
| FaDollarSign
79+
| FaCoins
7680
deriving stock (Eq, Ord, Show, Read, Data, Generic, Enum, Bounded)
7781

7882
instance From Icon Fa where
@@ -106,6 +110,8 @@ instance From Icon Fa where
106110
IconExpand -> FaUpRightAndDownLeftFromCenter
107111
IconCollapse -> FaDownLeftAndUpRightToCenter
108112
IconFile -> FaFileLines
113+
IconDollar -> FaDollarSign
114+
IconCoins -> FaCoins
109115

110116
instance IsIcon Fa where
111117
icon x =

0 commit comments

Comments
 (0)