electron-react-titlebar
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -25,6 +25,5 @@ 'use strict'; | ||
{ id: 'electron-app-title-bar', className: `electron-app-title-bar ${className || ''}` }, | ||
_react2.default.createElement('link', { href: __dirname + "/../assets/style.css", rel: 'stylesheet' }), | ||
_react2.default.createElement('div', { className: 'resize-handle resize-handle-top' }), | ||
_react2.default.createElement('div', { className: 'resize-handle resize-handle-left' }), | ||
_react2.default.createElement('img', { className: 'icon', src: icon }), | ||
typeof icon !== 'undefined' && _react2.default.createElement('img', { className: 'icon', src: icon }), | ||
_react2.default.createElement(_menu.MenuBar, { menu: menu }), | ||
@@ -31,0 +30,0 @@ _react2.default.createElement(_windowControls.WindowControls, { disableMinimize: disableMinimize, disableMaximize: disableMaximize }) |
{ | ||
"name": "electron-react-titlebar", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A github desktop style title bar component for electron.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,2 +24,3 @@ # electron-react-titlebar | ||
import { TitleBar } from 'electron-react-titlebar' | ||
import 'electron-react-titlebar/assets/style.css' | ||
@@ -26,0 +27,0 @@ ReactDOM.render( |
@@ -9,6 +9,5 @@ import React from 'react' | ||
<div id="electron-app-title-bar" className={`electron-app-title-bar ${className || ''}`}> | ||
<link href={__dirname + "/../assets/style.css"} rel="stylesheet" /> | ||
<div className="resize-handle resize-handle-top" /> | ||
<div className="resize-handle resize-handle-left" /> | ||
<img className="icon" src={icon} /> | ||
{typeof icon !== 'undefined' && <img className="icon" src={icon} />} | ||
<MenuBar menu={menu} /> | ||
@@ -15,0 +14,0 @@ <WindowControls disableMinimize={disableMinimize} disableMaximize={disableMaximize} /> |
Sorry, the diff of this file is not supported yet
60
98433
1314