Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added css/Tekitou-Poem-SemiBold.woff2
Binary file not shown.
15 changes: 15 additions & 0 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ body > main {
font-display: swap;
}

/*
* Font "適当ポエム" by Hagi42
* https://cktrc.com/tekitoupoem-font/
*/
@font-face {
font-family: "Tekitou-Poem-SemiBold";
src: url("Tekitou-Poem-SemiBold.woff2") format("woff2");
font-display: swap;
}


.timer {
font-size: 5rem;
Expand Down Expand Up @@ -100,6 +110,11 @@ body > main {
}


.timer.tekitou-poem {
font-family: "Tekitou-Poem-SemiBold";
}


#fgColorText {
font-family: monospace;
}
Expand Down
3 changes: 3 additions & 0 deletions src/I18n.elm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type alias Label =
, fgFontDDinBold : String
, fgFontLora : String
, fgFontDSEG7ClassicBold : String
, fgFontTekitouPoem : String
, bgColor : String
, bgColorGB : String
, bgColorBB : String
Expand All @@ -43,6 +44,7 @@ labelJa =
, fgFontDDinBold = "D-DIN Bold (サンセリフ体)"
, fgFontLora = "Lora (セリフ体)"
, fgFontDSEG7ClassicBold = "DSEG7 (デジタル時計)"
, fgFontTekitouPoem = "適当ポエム (手書き)"
, bgColor = "背景色"
, bgColorGB = "グリーンバック(GB, #00ff00)"
, bgColorBB = "ブルーバック(BB, #0000ff)"
Expand All @@ -68,6 +70,7 @@ labelEn =
, fgFontDDinBold = "D-DIN Bold (Sans Serif)"
, fgFontLora = "Lora (Serif)"
, fgFontDSEG7ClassicBold = "DSEG7 (Classic digital watch)"
, fgFontTekitouPoem = "Tekitou Poem (Handwriting)"
, bgColor = "Background Color"
, bgColorGB = "Greenback (GB, #00ff00)"
, bgColorBB = "Blueback (BB, #0000ff)"
Expand Down
6 changes: 5 additions & 1 deletion src/Model.elm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type FgFont
= DDinBold
| Lora
| DSEG7ClassicBold
| TekitouPoem


encodeFgFont : FgFont -> String
Expand All @@ -63,6 +64,9 @@ encodeFgFont fgFont =
DSEG7ClassicBold ->
"dseg7-classic-bold"

TekitouPoem ->
"tekitou-poem"


type BgColor
= Transparent
Expand All @@ -72,7 +76,7 @@ type BgColor

dictFgFont : Dict.Dict String FgFont
dictFgFont =
dictEnum_ encodeFgFont [ DDinBold, Lora, DSEG7ClassicBold ]
dictEnum_ encodeFgFont [ DDinBold, Lora, DSEG7ClassicBold, TekitouPoem ]


decodeFgFont : String -> Maybe FgFont
Expand Down
1 change: 1 addition & 0 deletions src/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ viewFgFontInput i18n font =
[ option [ value <| encodeFgFont DDinBold, selected <| font == DDinBold ] [ text i18n.fgFontDDinBold ]
, option [ value <| encodeFgFont Lora, selected <| font == Lora ] [ text i18n.fgFontLora ]
, option [ value <| encodeFgFont DSEG7ClassicBold, selected <| font == DSEG7ClassicBold ] [ text i18n.fgFontDSEG7ClassicBold ]
, option [ value <| encodeFgFont TekitouPoem, selected <| font == TekitouPoem ] [ text i18n.fgFontTekitouPoem ]
]
]

Expand Down