[Koha-bugs] [Bug 31327] Can we add color scheme picker to the OPAC.. especially a 'dark mode'?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 17 01:52:46 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31327

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
I don't know the best way to do this from the CSS point of view for Koha
(especially with the new staff interface), but I have some thoughts from the
system point of view.

Do we want dark mode to be available to all users or only authenticated users?

I think apps like Github only allow you to customize the app's appearance if
you're logged in. Then you can go to an "Appearance" option in your account to
choose "dark mode".

If it's only for authenticated users, we could save that option, and present
that through something like the "userenv". 

In the templates, I imagine that we'd probably set a class or attribute at a
high level. (Looking at Github, it seems that the "data-color-mode" attribute
on the "html" root element lets them toggle between "dark" and "light".
Obviously there's more that goes into it than that, but that's the initial
hook.)

--

The problem with a "dark" mode is that we already allow so much customization
to Koha, so I wonder how many libraries would be able to actually customize and
test a "light" and "dark" mode. We'd definitely want system preferences to
control this feature. 

But it would be a great feature to have out of the box.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list