Device name popup shows in different theme than selected

Hi,

Since a while back the popup that shows up when hovering over the device name on a device page seems to be themed according to “prefers-color-scheme”, ignoring the chosen librenms theme “light”. If I change color-scheme in windows to light, it’ll look correct.
I’m assuming it has something to do with this part in resources/views/layouts/librenmsv1.blade.php

    <script>
        // Apply color scheme
        if ('{{ LibreNMS\Config::get('applied_site_style', 'light') }}' === 'dark' || window.matchMedia('(prefers-color-scheme: dark)').matches) {
            document.documentElement.classList.add('tw-dark')
        } else {
            document.documentElement.classList.remove('tw-dark')
        }
    </script>

Fixed in #13273 commit

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.