Skip to content

Commit a2efcb9

Browse files
authored
Merge pull request #12 from ManojithBhat/feature/ui-improve
Enhance UI
2 parents a2acae8 + b723de0 commit a2efcb9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: popup.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body {
33
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
44
margin: 0;
55
padding: 20px;
6-
background-color: #404040;
6+
background-color: #f0f0f0;
77
display: flex;
88
align-items: center;
99
justify-content: center;
@@ -12,7 +12,7 @@ body {
1212
.container {
1313
text-align: center;
1414
display: flex;
15-
flex-direction: row;
15+
flex-direction: column;
1616
align-items: center;
1717
}
1818

@@ -45,7 +45,7 @@ h1 {
4545
}
4646

4747
#toggleButton.active {
48-
background-color: #dc3545;
48+
background-color: #ca4a57;
4949
}
5050

5151
#toggleButton:hover {

Diff for: popup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ document.addEventListener('DOMContentLoaded', () => {
2929
buttonText.textContent = 'Turn Off';
3030
statusElement.textContent = 'ON';
3131
statusElement.classList.add('on');
32-
document.querySelector('.icon').textContent = '';
32+
document.querySelector('.icon').textContent = '🛑';
3333
} else {
3434
toggleButton.classList.remove('active');
3535
buttonText.textContent = 'Turn On';
3636
statusElement.textContent = 'OFF';
3737
statusElement.classList.remove('on');
38-
document.querySelector('.icon').textContent = '🛑';
38+
document.querySelector('.icon').textContent = '';
3939
}
4040
}
4141
});

0 commit comments

Comments
 (0)