diff --git a/www/scripts/codecheckerviewer/ListOfBugs.js b/www/scripts/codecheckerviewer/ListOfBugs.js index cea14b9306..946a4b83cd 100644 --- a/www/scripts/codecheckerviewer/ListOfBugs.js +++ b/www/scripts/codecheckerviewer/ListOfBugs.js @@ -327,6 +327,7 @@ function (declare, dom, Deferred, ObjectStore, Store, QueryResults, topic, this._bugOverview = new BorderContainer({ title : 'Bug Overview', + iconClass : 'customIcon list-opened', onShow : function () { if (!this.initalized) { this.initalized = true; @@ -362,6 +363,7 @@ function (declare, dom, Deferred, ObjectStore, Store, QueryResults, topic, this._runHistory = new RunHistory({ title : 'Run history', + iconClass : 'customIcon run', runData : this.runData, bugOverView : this._bugOverview, bugFilterView : this._bugFilterView, @@ -456,6 +458,7 @@ function (declare, dom, Deferred, ObjectStore, Store, QueryResults, topic, var bugViewer = new BugViewer({ title : filename, + iconClass : 'customIcon bug', closable : true, reportData : reportData, runResultParam : runResultParam, diff --git a/www/scripts/codecheckerviewer/codecheckerviewer.js b/www/scripts/codecheckerviewer/codecheckerviewer.js index ed4fa87c49..eff4e69cbb 100644 --- a/www/scripts/codecheckerviewer/codecheckerviewer.js +++ b/www/scripts/codecheckerviewer/codecheckerviewer.js @@ -173,6 +173,7 @@ function (declare, topic, domConstruct, Dialog, Button, var listOfRuns = new ListOfRuns({ title : 'Runs', + iconClass : 'customIcon run-name', onLoaded : function (runDataParam) { runDataList = runDataParam; initByUrl(); @@ -191,6 +192,7 @@ function (declare, topic, domConstruct, Dialog, Button, var listOfAllReports = new ListOfBugs({ title : 'All reports', + iconClass : 'customIcon all-reports', allReportView : true, tab : 'allReports' }); @@ -200,6 +202,7 @@ function (declare, topic, domConstruct, Dialog, Button, var checkerStatisticsTab = new CheckerStatistics({ class : 'checker-statistics', title : 'Checker statistics', + iconClass : 'customIcon statistics', listOfAllReports : listOfAllReports }); runsTab.addChild(checkerStatisticsTab); @@ -221,6 +224,7 @@ function (declare, topic, domConstruct, Dialog, Button, runIdToTab[tabData.runId] = new ListOfBugs({ runData : param.runData, title : tabData.name, + iconClass : 'customIcon reports', closable : true, tab : tabData.name, onClose : function () { diff --git a/www/style/codecheckerviewer.css b/www/style/codecheckerviewer.css index abfcb51fcb..15b75ca325 100644 --- a/www/style/codecheckerviewer.css +++ b/www/style/codecheckerviewer.css @@ -1205,3 +1205,30 @@ span[class*="severity-"] { line-height: 1; font-weight: bold; } + +.customIcon.statistics:before { + content: "\e023"; +} + +.customIcon.reports:before { + content: "\e003"; +} + +.customIcon.list-opened:before { + content: "\e004"; +} + +.customIcon.all-reports:before { + content: "\e003"; +} + +.customIcon.all-reports:after { + content: "A"; + position: absolute; + right: 0; + top: 0; + padding: 1px; + font-size: 0.5em; + background-color: #484848; + color: white; +}