Skip to content

Commit

Permalink
bug fixed (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
partha120804 authored Jun 12, 2024
1 parent 4234807 commit 1e5854b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/customTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ const defaultColors = {
document.getElementById('border-color1').value = localStorage.getItem('--border-color1') || defaultColors['--border-color1'];
document.getElementById('background-col').value = localStorage.getItem('--background-col') || defaultColors['--background-col'];
document.getElementById('scrollbar-color').value = localStorage.getItem('--scrollbar-color') || defaultColors['--scrollbar-color'];
document.getElementById('alive-color').value = ALIVE_COLOR;
document.getElementById('dead-color').value = DEAD_COLOR;
}

customThemeBtn.addEventListener('click', function () {
Expand Down
2 changes: 2 additions & 0 deletions js/gradient.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ function applyGradientTheme(color1, color2, direction) {
container.style.background = ('linear-gradient('+direction+'deg, ' + color1 + ', ' + color2 + ')');
var title = document.querySelector('.heading');
title.style.color = isDark(color1) ? '#ffffff' : '#000000';
document.getElementById('alive-color').value = ALIVE_COLOR;
document.getElementById('dead-color').value = DEAD_COLOR;
}

// Event listener for the gradient theme button
Expand Down

0 comments on commit 1e5854b

Please sign in to comment.