mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
removes percentage text; uses png without background;
This commit is contained in:
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 |
|
@ -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",
|
||||||
|
|
|
@ -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":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue