mirror of
https://github.com/mgerb/ps-launcher
synced 2026-01-10 02:22:49 +00:00
app icon
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { remote } from 'electron';
|
||||
import { remote, shell } from 'electron';
|
||||
import React from 'react';
|
||||
import { observer, inject } from 'mobx-react';
|
||||
import { AppState } from '../../state/AppState';
|
||||
import headerIcon from '../../assets/icons/png/24x24.png';
|
||||
import './Header.scss';
|
||||
|
||||
interface Props {
|
||||
@@ -32,11 +33,20 @@ export class Header extends React.Component<Props, any> {
|
||||
remote.getCurrentWindow().minimize();
|
||||
}
|
||||
|
||||
private openGithub(): void {
|
||||
shell.openExternal('https://github.com/mgerb/ps-launcher/releases');
|
||||
}
|
||||
|
||||
public render(): any {
|
||||
return (
|
||||
<div className="header">
|
||||
<div className="header__version"><span style={{ fontSize: '10px' }}>v{VERSION}</span></div>
|
||||
<div className="header__version">
|
||||
{/* <i className="fa fa-2x fa-github"/> */}
|
||||
<img src={headerIcon}/>
|
||||
<span style={{ fontSize: '10px' }}>v{VERSION}</span>
|
||||
</div>
|
||||
<div className="header__draggable-region"></div>
|
||||
<i className="fa fa-lg fa-github header-icon" onClick={this.openGithub.bind(this)}/>
|
||||
<div className="header-icon header-icon--minimize" onClick={this.minimize.bind(this)}/>
|
||||
<div className="header-icon header-icon--maximize" onClick={this.maximize.bind(this)}/>
|
||||
<div className="header-icon header-icon--close" onClick={() => this.exit()}>×</div>
|
||||
|
||||
Reference in New Issue
Block a user