This will just let the client (browser) preference choose if the user is not logged in. Note that older browsers do not know of this preference, leading to no CSS file being loaded at all for these clients! I ran into this but didn't expect the project would want to support this given the stance on using still supported (by e.g. Debian) PHP 7.x. This issue could be fixed by always including the preferred scheme (for me: dark) and then using the media query to see whether light should be included to override it. This is double the CSS weight, but seeing as that's still lighter-weight than the font file that the software also ships with by default, I suppose that's not something people care too much about.
Bug Description
A dark mode can be configured for non-logged-in visitors but this is not always applied
How to reproduce
Open the
/login
pathExpected behavior
Dark mode setting for guest users is applied
LinkAce version
dev
Setup Method
PHP
Operating System
Linux (Ubuntu, CentOS,...)
Patch
This will just let the client (browser) preference choose if the user is not logged in. Note that older browsers do not know of this preference, leading to no CSS file being loaded at all for these clients! I ran into this but didn't expect the project would want to support this given the stance on using still supported (by e.g. Debian) PHP 7.x. This issue could be fixed by always including the preferred scheme (for me: dark) and then using the media query to see whether light should be included to override it. This is double the CSS weight, but seeing as that's still lighter-weight than the font file that the software also ships with by default, I suppose that's not something people care too much about.