Dark Theme
#40
Open
gravel
wants to merge 3 commits from gravel/sessioncommunities.online-archive:theming
into main
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'gravel/sessioncommunities.online-archive:theming'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Addresses #39.
WIP commentary:
a) I'm not a fan of a
while
loop checking for file changes. This can be more elegantly solved withinotify
.@SomeGuy
a) The while loop is a necessary and recommended way for executing with
entr
. It does not actually spam the command:entr -d
blocks and re-runs the command on file changes until a change in the scanned directories' contents. Asentr
returns 1 in such an event, we simply want to scan all the files again. If the user wants to interruptmake watch
and presses^C
, entr returns with a 0 and theexit
clause is triggered to stop the loop. Currently, I don't see it necessary to introduceinotify
as a dev dependency.I wasn't aware
inotify-tools
weren't default for most distros. In fact it's not even installed on the machine I'm writing this on. So I agree with you, introducing an additional dependency is redundant here.I also wasn't aware of the exact workings of your command, but your explanation sounds plausible.
Regarding the theme:
a) Is there anything we can do to style the QR modals?
b) I find the transition between the themes to take a bit long to be frank.
c)
instructions.html
is unaffected by the theme switch. Is that intentional?a) Yes, modal theme fixed locally.
b) The transition is slow to be gentle to one's eyes at night.
c) It would require having a similar theme setup in the instruction page and synchronizing the two using JavaScript and localStorage. With dark theme being a good default and the instructions page being secondary, this is low priority.