Skip to content

Commit

Permalink
Visual adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed May 4, 2024
1 parent 6ab90f5 commit 5c562d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Protest/Front/deviceview.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,16 @@ class DeviceView extends View {
driveButton.secondary.style.height = "10px";
driveButton.secondary.style.border = "2px solid var(--clr-dark)";
driveButton.secondary.style.borderRadius = "2px";
driveButton.secondary.style.boxShadow = `var(--clr-dark) ${json.used * 64 / json.total}px 0 0 inset`;
driveButton.secondary.style.transition = ".4s";
if (json.used / json.total >= .85) driveButton.button.style.backgroundColor = "var(--clr-warning)";

driveButton.secondary.style.boxShadow = `var(--clr-dark) 0px 0 0 inset`;

setTimeout(()=>{
driveButton.secondary.style.boxShadow = `var(--clr-dark) ${json.used * 64 / json.total}px 0 0 inset`;
}, WIN.ANIME_DURATION);


driveButton.button.onclick = ()=> UI.PromptAgent(this, "smb", json.path);
}
else if (json.activeUser) {
Expand Down
4 changes: 2 additions & 2 deletions Protest/Front/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class List extends Window {
types = types.sort();

filtersList.textContent = "";
filterMenu.style.height = `${32 + types.length * 27}px`;
filterMenu.style.height = `${34 + types.length * 27}px`;

for (let i = 0; i < types.length; i++) {
const newType = document.createElement("div");
Expand All @@ -241,7 +241,7 @@ class List extends Window {
filterButton.style.borderBottom = "#c0c0c0 solid 3px";
}

newType.onclick =()=> {
newType.onclick = ()=> {
ClearSelection();

if (this.params.filter === types[i]) {
Expand Down

0 comments on commit 5c562d5

Please sign in to comment.