forked from artyuum/3rd-party-rutorrent-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.js
29 lines (27 loc) · 831 Bytes
/
init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Material Design skin for ruTorrent
* Based on "Oblivion" theme, by LesBleus
* Icons from "small-n-flat" pack by paomedia ( https://github.com/paomedia/small-n-flat )
* Author: Phlo
*/
plugin.materialdesignAllDone = plugin.allDone;
plugin.allDone = function()
{
plugin.materialdesignAllDone.call(this);
$.each(["diskspace","quotaspace","cpuload"], function(ndx,name)
{
var plg = thePlugins.get(name);
if(plg && plg.enabled)
{
plg.prgStartColor = new RGBackground("#009900");
plg.prgEndColor = new RGBackground("#d76000");
}
});
}
plugin.oldTableCreate = dxSTable.prototype.create;
dxSTable.prototype.create = function(ele, styles, aName)
{
plugin.oldTableCreate.call(this, ele, styles, aName);
this.prgStartColor = new RGBackground("#d76000");
this.prgEndColor = new RGBackground("#009900");
}