diff options
author | Andre A. Gomes <andremegafone@gmail.com> | 2024-01-18 11:36:36 +0200 |
---|---|---|
committer | Andre A. Gomes <andremegafone@gmail.com> | 2024-01-22 11:47:36 +0200 |
commit | 91e74112d30a4d3d64bf0b8c589afa623580a47b (patch) | |
tree | 7507f1afa875ce012ba0d05f5310d725840f9bbd | |
parent | bc7b1c16b89c19ac9e5e161b5bfdeeb23266bd16 (diff) |
Use theme specified monospace font.
-rw-r--r-- | source/mode/hint.lisp | 2 | ||||
-rw-r--r-- | source/mode/plaintext-editor.lisp | 2 | ||||
-rw-r--r-- | source/mode/repl.lisp | 2 | ||||
-rw-r--r-- | source/prompt-buffer.lisp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/source/mode/hint.lisp b/source/mode/hint.lisp index 095aa77bb..bee232b55 100644 --- a/source/mode/hint.lisp +++ b/source/mode/hint.lisp @@ -26,7 +26,7 @@ in viewport only and they're followed when user input matches the hint string.") `(".nyxt-hint" :background-color ,(cl-colors2:print-hex theme:background- :alpha 0.925) :color ,theme:on-background - :font-family "monospace,monospace" + :font-family ,theme:monospace-font-family :font-size ".85rem" :padding "0px 0.3em" :border-color ,(cl-colors2:print-hex theme:primary- :alpha 0.80) diff --git a/source/mode/plaintext-editor.lisp b/source/mode/plaintext-editor.lisp index ec64334c1..228892add 100644 --- a/source/mode/plaintext-editor.lisp +++ b/source/mode/plaintext-editor.lisp @@ -18,7 +18,7 @@ To enable it, add this to your configuration file: `("body" :margin 0) `("#editor" - :font-family "monospace, monospace" + :font-family ,theme:monospace-font-family :margin 0 :height "100%" :width "100%" diff --git a/source/mode/repl.lisp b/source/mode/repl.lisp index ef364b339..3f33a53b3 100644 --- a/source/mode/repl.lisp +++ b/source/mode/repl.lisp @@ -429,7 +429,7 @@ The `input' should be a valid Lisp code `read'-able in the `eval-package'. "J" 'move-cell-down))) (style (theme:themed-css (theme *browser*) `(* - :font-family "monospace,monospace") + :font-family ,theme:monospace-font-family) `(body :margin "0") `("#container" diff --git a/source/prompt-buffer.lisp b/source/prompt-buffer.lisp index 69acd4cde..6860e31d0 100644 --- a/source/prompt-buffer.lisp +++ b/source/prompt-buffer.lisp @@ -90,7 +90,7 @@ See `nyxt::attribute-widths'.") `(:font-face :font-family "public sans" :font-style "italic" :font-weight "900" :src ,(format nil "url('nyxt-resource:~a')" "PublicSans-BlackItalic.woff") "format('woff')") `(:font-face :font-family "dejavu sans mono" :src ,(format nil "url('nyxt-resource:~a')" "DejaVuSansMono.ttf") "format('ttf')") `(* - :font-family "monospace,monospace" + :font-family ,theme:monospace-font-family :font-size "14px" :line-height "18px") `(body |