[Plugin] Dark Theme (now highly configurable!)


Skitals

Recommended Posts

Feb 3 05:44:38 Tower nginx: 2020/02/03 05:44:38 [error] 6468#6468: *2831 open() "/usr/local/emhttp/<br /><b>Warning</b>: filemtime(): stat failed for /usr/local/emhttp/plugins/unassigned.devices/assets/style-dark.css in <b>/usr/local/emhttp/plugins/dynamix/include/Helpers.php</b> on line <b>248</b><br />/plugins/unassigned.devices/assets/style-dark.css" failed (2: No such file or directory), client: 192.168.1.170, server: , request: "GET /%3Cbr%20/%3E%3Cb%3EWarning%3C/b%3E:%20%20filemtime():%20stat%20failed%20for%20/usr/local/emhttp/plugins/unassigned.devices/assets/style-dark.css%20in%20%3Cb%3E/usr/local/emhttp/plugins/dynamix/include/Helpers.php%3C/b%3E%20on%20line%20%3Cb%3E248%3C/b%3E%3Cbr%20/%3E/plugins/unassigned.devices/assets/style-dark.css?v= HTTP/1.1", host: "tower", referrer: "http://tower/Main"

I'm getting this error in my log with the Dark Theme plugin installed whenever I click on the Main tab of the unRAID gui. If I remove the plugin, the error goes away.

Link to comment
3 hours ago, no1home said:

Feb 3 05:44:38 Tower nginx: 2020/02/03 05:44:38 [error] 6468#6468: *2831 open() "/usr/local/emhttp/<br /><b>Warning</b>: filemtime(): stat failed for /usr/local/emhttp/plugins/unassigned.devices/assets/style-dark.css in <b>/usr/local/emhttp/plugins/dynamix/include/Helpers.php</b> on line <b>248</b><br />/plugins/unassigned.devices/assets/style-dark.css" failed (2: No such file or directory), client: 192.168.1.170, server: , request: "GET /%3Cbr%20/%3E%3Cb%3EWarning%3C/b%3E:%20%20filemtime():%20stat%20failed%20for%20/usr/local/emhttp/plugins/unassigned.devices/assets/style-dark.css%20in%20%3Cb%3E/usr/local/emhttp/plugins/dynamix/include/Helpers.php%3C/b%3E%20on%20line%20%3Cb%3E248%3C/b%3E%3Cbr%20/%3E/plugins/unassigned.devices/assets/style-dark.css?v= HTTP/1.1", host: "tower", referrer: "http://tower/Main"

I'm getting this error in my log with the Dark Theme plugin installed whenever I click on the Main tab of the unRAID gui. If I remove the plugin, the error goes away.

That's an unassigned.devices error, looks like they are adding custom css for this theme but not quite there.

Link to comment
1 hour ago, Skitals said:

That's an unassigned.devices error, looks like they are adding custom css for this theme but not quite there.

Doubt that.  What it'll be is that @dlandon is loading CSS for whatever theme is selected, but doesn't have a fall back if the CSS file doesn't exist.  Can't really blame him as everyone only supports whatever comes with the stock OS (although CA does have a fall back and a hook for custom themes to override any CSS present in CA)

Link to comment
5 hours ago, Squid said:

Doubt that.  What it'll be is that @dlandon is loading CSS for whatever theme is selected, but doesn't have a fall back if the CSS file doesn't exist.  Can't really blame him as everyone only supports whatever comes with the stock OS (although CA does have a fall back and a hook for custom themes to override any CSS present in CA)

Good call.

<link rel="stylesheet" type="text/css" href="<?autov('/plugins/'.$plugin.'/assets/style-'.$display['theme'].'.css')?>">

Solution is to switch to Theme Engine. Dark Theme is included, and all themes use a stock "base theme" to get around all the hard coding.

 

Squid, is there a process to deprecate this plugin? I would like to encourage people to migrate to Theme Engine. 

Edited by Skitals
Link to comment
  • 4 weeks later...
2 hours ago, gsd2012 said:

What happen to this plugin? I got a notice is was being deprecated so I uninstalled. Looked like crap so I was going to just reinstall not in the CA anymore. Where can I get it?

It has been superseded by the Theme Engine plugin that provides more customisation options.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.