Skip to content

Commit

Permalink
Added percentage to the brightness panel's update bar
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Apr 26, 2020
1 parent 363a3f6 commit 585b59d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/BrightnessPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class BrightnessPanel extends PureComponent {
<div className="left">{T.t("PANEL_UPDATE_AVAILABLE")} ({this.state.update.version})</div><div className="right"><a onClick={window.installUpdate}>{T.t("GENERIC_INSTALL")}</a><a className="icon" title={T.t("GENERIC_DISMISS")} onClick={window.dismissUpdate}>&#xEF2C;</a></div>
</div>)
} else if(this.state.update && this.state.update.downloading) {
return (<div className="updateBar"><div className="progress-bar"><div style={ { width: `${this.state.updateProgress}%`} }></div></div></div>)
return (<div className="updateBar"><div className="left progress"><div className="progress-bar"><div style={ { width: `${this.state.updateProgress}%`} }></div></div></div><div className="right">{this.state.updateProgress}%</div></div>)
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/css/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ body {

.left {
font-size: 13px;
opacity: 0.8;
opacity: 0.8;
&.progress {
padding-right: 15px;
width: 100%;
}
}
.right {
display: flex;
Expand Down

0 comments on commit 585b59d

Please sign in to comment.