removes percentage text; uses png without background;

This commit is contained in:
Zamitto 2024-05-21 14:02:27 -03:00
parent d20d3d0b77
commit 551b0b3c91
3 changed files with 9 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Before After
Before After

View file

@ -27,22 +27,14 @@ export const updateInfoSection = style({
justifyContent: "center", justifyContent: "center",
}); });
export const progressBarContainer = style({
width: "100%",
borderRadius: "24px",
display: "flex",
alignItems: "center",
position: "relative",
justifyContent: "center",
border: `solid 1px ${vars.color.border}`,
overflow: "hidden",
});
export const progressBar = style({ export const progressBar = style({
WebkitAppearance: "none", WebkitAppearance: "none",
appearance: "none", appearance: "none",
position: "absolute", borderRadius: "4px",
width: "100%", width: "100%",
border: `solid 1px ${vars.color.border}`,
overflow: "hidden",
height: "18px",
"::-webkit-progress-value": { "::-webkit-progress-value": {
backgroundColor: vars.color.background, backgroundColor: vars.color.background,
transition: "width 0.2s", transition: "width 0.2s",

View file

@ -53,16 +53,11 @@ export default function Splash() {
return ( return (
<> <>
<p>{t("downloading_version", { version: newVersion })}</p> <p>{t("downloading_version", { version: newVersion })}</p>
<div className={styles.progressBarContainer}> <progress
<progress className={styles.progressBar}
className={styles.progressBar} max="100"
max="100" value={status.info.percent}
value={status.info.percent} />
/>
<span className={styles.progressBarText}>
{status.info.percent.toFixed(2)} %
</span>
</div>
</> </>
); );
case "checking-for-updates": case "checking-for-updates":