Add color coding to commitsToday in renderer.js
This commit is contained in:
@@ -372,6 +372,8 @@ async function updateInteractionBar(folderObj) {
|
|||||||
|
|
||||||
// In die Bar schreiben
|
// In die Bar schreiben
|
||||||
document.getElementById('commitsToday').textContent = commitsToday;
|
document.getElementById('commitsToday').textContent = commitsToday;
|
||||||
|
const [r, g, b] = getCommitColor(commitsToday);
|
||||||
|
commitTodaySpan.style.color = `rgb(${r},${g},${b})`;
|
||||||
document.getElementById('linesUntilRewrite').textContent = linesUntilRewrite;
|
document.getElementById('linesUntilRewrite').textContent = linesUntilRewrite;
|
||||||
document.getElementById('countdown').textContent = countdown;
|
document.getElementById('countdown').textContent = countdown;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user