Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
💄 More consistent UI progress bars
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Apr 29, 2019
1 parent 8492174 commit 0d1d1c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/assets/css/mod_ramwatcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ progress#mod_ramwatcher_swapbar {

progress#mod_ramwatcher_swapbar::-webkit-progress-bar {
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.4);
height: .3vh;
height: .25vh;
position: relative;
top: .35vh;
top: .55vh;
}

progress#mod_ramwatcher_swapbar::-webkit-progress-value {
background: rgb(var(--color_r), var(--color_g), var(--color_b));
height: .6vh;
height: .4vh;
transition: width .5s cubic-bezier(0.4, 0, 1, 1);
position: relative;
bottom: .15vh;
bottom: .4vh;
}

h3#mod_ramwatcher_swaptext {
Expand Down
4 changes: 2 additions & 2 deletions src/classes/ramwatcher.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RAMwatcher {
<div id="mod_ramwatcher_swapcontainer">
<h1>SWAP</h1>
<progress id="mod_ramwatcher_swapbar" max="100" value="0"></progress>
<h3 id="mod_ramwatcher_swaptext">(0.0 GiB)</h3>
<h3 id="mod_ramwatcher_swaptext">0.0 GiB</h3>
</div>
</div>`;

Expand Down Expand Up @@ -69,7 +69,7 @@ class RAMwatcher {
document.getElementById("mod_ramwatcher_swapbar").value = usedSwap;

let usedSwapGiB = Math.round((data.swapused/1073742000)*10)/10;
document.getElementById("mod_ramwatcher_swaptext").innerText = `(${usedSwapGiB} GiB)`;
document.getElementById("mod_ramwatcher_swaptext").innerText = `${usedSwapGiB} GiB`;
});
}
shuffleArray(array) {
Expand Down

0 comments on commit 0d1d1c1

Please sign in to comment.