Skip to content
Open
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
9 changes: 9 additions & 0 deletions resources/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,15 @@ function onTextboxFilterChanged() {

// setup the grid after the page has finished loading
document.addEventListener('DOMContentLoaded', function() {
//ag-grid setting up the appropriate theme
if(document.body.className == "vscode-light"){
document.getElementById("myGrid").classList.remove('ag-theme-dark');
document.getElementById("myGrid").classList.add('ag-theme-blue');
} else {
document.getElementById("myGrid").classList.remove('ag-theme-blue');
document.getElementById("myGrid").classList.add('ag-theme-dark');
}

var gridDiv = document.querySelector('#myGrid');
new agGrid.Grid(gridDiv, gridOptions);
gridOptions.api.sizeColumnsToFit();
Expand Down