@psychobunny Hey buddy, right, I've got this working fantastically, however, when I click the lightbulb, it also affects the width. Other that that, it works brilliantly.
Any idea on how to seperate these? Excuse the awful code, but it looks like:
<script>
$(window).on('action:widgets.loaded', function() {
var panel = $('<div class="panel-body text-center"><i class="fa fa-lightbulb-o fa-2x"></i></div>');
$('.panel.resizer').append(panel);
panel.on('click', function() {
localStorage.setItem('user:theme', 'lights-out');
var theme = localStorage.getItem('user:theme');
$('body').toggleClass(theme);
});
});
</script>
I used toggleclass so it could be clicked again, to reset it. Is this ok? Hmm, another issue is that whenever you visit a new page, it adds the lightbulb again, creating a new topic adds about 4 lightbulbs. Oh and it doesn't save the setting to localStorage, a refresh changes it back to default. I imagine my code is completely wrong though.