From f442a3caf6cdcaf8ae1117536cfeb1012ca97117 Mon Sep 17 00:00:00 2001 From: User Web Date: Wed, 19 Dec 2018 02:46:17 +0300 Subject: [PATCH] dark theme: colorized menu icons --- public/css/styles.css | 3 ++- public/css/themes/dark.css | 40 +++++++++++++++++++++++++++++++++++++- public/js/clonos.js | 19 +++++++++++++++--- 3 files changed, 57 insertions(+), 5 deletions(-) diff --git a/public/css/styles.css b/public/css/styles.css index ea39b844..43aacc5c 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -1690,7 +1690,8 @@ body.overview div.smoothie-chart-tooltip { background-color:rgba(255,255,255,0.7); } -#jailslist td:nth-child(1), #jailslist td:nth-child(2) { +#jailslist td:nth-child(1), #jailslist td:nth-child(2), +#bhyveslist td:nth-child(1), #bhyveslist td:nth-child(2) { cursor:pointer; } diff --git a/public/css/themes/dark.css b/public/css/themes/dark.css index 2d03d0df..e36f0039 100644 --- a/public/css/themes/dark.css +++ b/public/css/themes/dark.css @@ -419,4 +419,42 @@ header .top-right { } .summary_table tr td:first-child { padding-right:10px; -} \ No newline at end of file +} + + +#menu .icon-chart-bar:before { + color:rgba(255,100,100,0.7); +} +#menu .icon-server:before { + color:rgba(100,255,100,0.7); +} +#menu .icon-cubes:before { + color:rgba(100,100,255,0.7); +} +#menu .icon-th-list:before { + color:rgba(100,255,255,0.7); +} +#menu .icon-plug:before { + color:rgba(255,100,255,0.7); +} +#menu .icon-key:before { + color:rgba(255,255,100,0.7); +} +#menu .icon-inbox:before { + color:rgba(100,255,100,0.7); +} +#menu .icon-upload:before { + color:rgba(255,100,100,0.7); +} +#menu .icon-database:before { + color:rgba(100,255,100,0.7); +} +#menu .icon-edit:before { + color:rgba(255,100,255,0.7); +} +#menu .icon-list-alt:before { + color:rgba(255,255,255,0.7); +} +#menu .icon-wpforms:before { + color:rgba(100,100,255,0.7); +} diff --git a/public/js/clonos.js b/public/js/clonos.js index b5d1b097..7881f757 100644 --- a/public/js/clonos.js +++ b/public/js/clonos.js @@ -1734,7 +1734,20 @@ var clonos={ var aspl=$('div.main').hasClass('asplit'); if(!aspl) $('div.main').addClass('asplit'); // var e=$(tr).parents('div.main');if(e){$(e).toggleClass('asplit');} - this.getSummaryInfo(trid); + this.getSummaryInfo(trid,tblid); + $('.sel',tbl).removeClass('sel'); + $(tr).addClass('sel'); + $('tbody',tbl).animate({scrollTop: ($(tr).offset().top - $('tbody tr:first-child',tbl).offset().top)},400); + } + } + if(tblid=='bhyveslist') + { + if(td==$(tr).children()[0] || td==$(tr).children()[1]) + { + var aspl=$('div.main').hasClass('asplit'); + if(!aspl) $('div.main').addClass('asplit'); +// var e=$(tr).parents('div.main');if(e){$(e).toggleClass('asplit');} + this.getSummaryInfo(trid,tblid); $('.sel',tbl).removeClass('sel'); $(tr).addClass('sel'); $('tbody',tbl).animate({scrollTop: ($(tr).offset().top - $('tbody tr:first-child',tbl).offset().top)},400); @@ -3174,10 +3187,10 @@ var clonos={ delete graphs.list[id]; }, - getSummaryInfo:function(jname) + getSummaryInfo:function(jname,mode) { this.openedJailSummary=jname; - var posts=[{'name':'jname','value':jname}]; + var posts=[{'name':'jname','value':jname},{'name':'mode','value':mode}]; this.loadData('getSummaryInfo',$.proxy(this.onGetSummaryInfo,this),posts); }, onGetSummaryInfo:function(data)