This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-22
Channels
- # announcements (1)
- # babashka (28)
- # beginners (120)
- # braveandtrue (6)
- # calva (59)
- # cider (10)
- # clj-kondo (10)
- # cljfx (2)
- # clojure (66)
- # clojure-europe (20)
- # clojure-germany (1)
- # clojure-italy (3)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-serbia (17)
- # clojure-spain (1)
- # clojure-uk (17)
- # clojurescript (120)
- # clojureverse-ops (4)
- # core-async (5)
- # cursive (18)
- # data-oriented-programming (1)
- # datomic (4)
- # deps-new (8)
- # emacs (14)
- # fulcro (16)
- # funcool (2)
- # kaocha (4)
- # lambdaisland (5)
- # luminus (1)
- # malli (47)
- # membrane (9)
- # mid-cities-meetup (2)
- # music (1)
- # off-topic (44)
- # pathom (13)
- # practicalli (2)
- # re-frame (15)
- # reagent (34)
- # reveal (25)
- # ring (56)
- # rum (1)
- # shadow-cljs (23)
- # sql (14)
- # startup-in-a-month (1)
- # tools-deps (10)
- # vim (9)
- # vscode (3)
- # xtdb (9)
https://vlaaad.github.io/reveal/ and look for "Look and feel customization". The headings dont have anchors so i can't directly link to it
You can pass this in as a java property, i.e., -J-Dvlaaad.reveal.prefs='{:font-family "JetBrains Mono Medium" :font-size 14}'
the reason for this is lazyness — too much stuff I needed to change to make fonts and stuff dynamic
I'm trying some hacks here and there, such as
(System/setProperty "vlaaad.reveal.prefs" (pr-str {:font-family "Roboto" :font-size 22}))
;; recompile the vlaaad.reveal.prefs ns
@prefs
=> {:font-family [:system-font "Roboto"], :font-size 22}
there are actually varying stages of customisation dynamicity, I could have done it customisable live when window is already open, or (easier) customisable when window is created, but I thought that’s not as important since customisation is usually much rarer than actual use for output, so I should focus on that
@skuro prefs is a delay, you can mess with the system property before requiring reveal namespaces, but once they are required, reveal will read the property once and then persist the prefs
yeah I just in-ns
into the prefs
ns and re-eval the prefs
definition, so the delay got reset