reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
skuro 2021-03-22T14:10:14.001500Z

just started reveal/ui but on my system font size seems a bit on the teeny weenie side

skuro 2021-03-22T14:10:24.001800Z

how do I increse the font size in the reveal window?

dpsutton 2021-03-22T14:12:03.002300Z

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

skuro 2021-03-22T14:13:38.002500Z

πŸ‘

dharrigan 2021-03-22T14:13:56.002900Z

You can pass this in as a java property, i.e., -J-Dvlaaad.reveal.prefs='{:font-family "JetBrains Mono Medium" :font-size 14}'

skuro 2021-03-22T14:14:31.003200Z

alright so I can't pass it in from a running jvm

dharrigan 2021-03-22T14:14:47.003400Z

no, you can πŸ™‚

dharrigan 2021-03-22T14:14:54.003600Z

Just showing another way of doing it

dharrigan 2021-03-22T14:15:02.003900Z

(so you don't have to remind yourself each time πŸ™‚ )

dharrigan 2021-03-22T14:15:23.004100Z

I have that as part of my clj alias.

vlaaad 2021-03-22T14:19:42.004600Z

Actually, you can’t pass it in from a running JVM, it has to be a system property

imre 2021-03-22T14:20:05.005100Z

https://vlaaad.github.io/reveal/#look-and-feel-customization

1πŸ‘
vlaaad 2021-03-22T14:20:08.005300Z

the reason for this is lazyness β€” too much stuff I needed to change to make fonts and stuff dynamic

skuro 2021-03-22T14:24:22.007600Z

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}

skuro 2021-03-22T14:24:40.007900Z

but font doesn't change

vlaaad 2021-03-22T14:25:46.009Z

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

vlaaad 2021-03-22T14:26:54.010200Z

@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

skuro 2021-03-22T14:27:37.011300Z

yeah I just in-ns into the prefs ns and re-eval the prefs definition, so the delay got reset

vlaaad 2021-03-22T14:27:59.011900Z

other stuff that refers to prefs is also wrapped in delays

skuro 2021-03-22T14:28:06.012300Z

oh ok

skuro 2021-03-22T14:28:07.012500Z

I see

vlaaad 2021-03-22T14:29:24.013800Z

so.. it’s easier to try out various reveal prefs using throw-away JVMs

vlaaad 2021-03-22T14:31:15.014100Z

e.g. clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.196"}}}' -J-Dvlaaad.reveal.prefs='{:font-size 20}' -X vlaaad.reveal/repl

skuro 2021-03-22T14:31:31.014300Z

yep definitely quicker πŸ™‚

skuro 2021-03-22T14:31:34.014500Z

tnx