forked from mchow101/homeroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.js
19 lines (16 loc) · 949 Bytes
/
options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Light Mode
var changeToLight = document.getElementById('lightbtn');
changeToLight.addEventListener('click', function() {
chrome.storage.sync.set({mainbgcolor: '#F2F2F2', elementcolor:'#ffffff', textcolor: '#404040', sliderlight: '#A7ACC6', sliderdark: '#4E598C', radiofill: '#f7a191', timermain: '#4E598C', pomodoroinput: 0}, function() {
console.log('Value is set for light mode');
});
console.log('Let there be light!');
});
// Dark Mode
var changeToDark = document.getElementById('darkbtn');
changeToDark.addEventListener('click', function(){
chrome.storage.sync.set({mainbgcolor: '#17181c', elementcolor:'#313135', textcolor: '#eaebf1', sliderlight: '#8b8c8d', sliderdark: '#48484b', radiofill: '#873121', timermain: '#eaebf1', pomodoroinput: '#313135'}, function() {
console.log('Value is set for dark mode');
});
console.log('Let there be...dark? Darkness?');
});