Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit

Permalink
Merge pull request #22 from noxygalaxy/select-theme-popup-fix
Browse files Browse the repository at this point in the history
update: popup fix
  • Loading branch information
SpaceEnergy authored Nov 24, 2024
2 parents 64b65e7 + 31691ff commit 5060473
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 6 additions & 3 deletions gui/src/select-theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,13 @@
let selectedTheme = null;

function showPopup() {
popup.style.display = 'block';
popup.style.visibility = 'visible';
popup.style.opacity = '1';

setTimeout(() => {
popup.style.display = 'none';
}, 3000);
popup.style.opacity = '0';
popup.style.visibility = 'hidden';
}, 2000);
}

themeOptions.forEach(option => {
Expand Down
9 changes: 8 additions & 1 deletion gui/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,19 @@ body {
bottom: 90px;
left: 50%;
transform: translateX(-50%);
display: none;
visibility: hidden;
opacity: 0;
padding: 10px 20px;
border-radius: 8px;
border: 2px solid rgb(239, 75, 75);
color: white;
background-color: rgb(239, 75, 75, 17%);
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-popup {
border: 2px solid rgb(75, 137, 239);
background-color: rgb(75, 137, 239, 17%);
}
.copy-popup {
border: 2px solid rgb(75, 137, 239);
Expand Down

0 comments on commit 5060473

Please sign in to comment.