Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add icons for tabs #1086

Merged
merged 1 commit into from
Nov 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions www/scripts/codecheckerviewer/ListOfBugs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions www/scripts/codecheckerviewer/codecheckerviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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'
});
Expand All @@ -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);
Expand All @@ -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 () {
Expand Down
27 changes: 27 additions & 0 deletions www/style/codecheckerviewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}