Skip to content

Commit

Permalink
Fix background color
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods committed Feb 10, 2024
1 parent 3db3ff0 commit 1cd209b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ procedure TForm1.UpdateCalendar;
}
await sleep(100);

document.body.style.setProperty('background', this.Param_Background);
divMain.style.setProperty('background-color', this.Param_Background,'important');
divMain.style.setProperty('position', 'absolute');
divMain.style.setProperty('width', '100%');
divMain.style.setProperty('height', '100%');

async function Get_GitHub_Data(GITHUB_ACCOUNT, GITHUB_TOKEN, start_date, finish_date) {
Expand Down Expand Up @@ -305,7 +308,10 @@ procedure TForm1.UpdateChart;
divChart.Height := Param_Height;
asm
document.body.style.setProperty('background', this.Param_Background);
divMain.style.setProperty('background-color', this.Param_Background,'important');
divMain.style.setProperty('position', 'absolute');
divMain.style.setProperty('width', '100%');
divMain.style.setProperty('height', '100%');
var allrepodata = {};
var repodata = {};
Expand Down

0 comments on commit 1cd209b

Please sign in to comment.