Merge pull request #561 from kitematic/design-improvement

Updated icons and added visual feedback.
This commit is contained in:
Sean Li 2015-05-28 19:19:21 -07:00
commit 7c47d4d9cc
13 changed files with 27 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -107,7 +107,8 @@ var ContainerDetailsSubheader = React.createClass({
shell = 'sh'; shell = 'sh';
} }
machine.ip().then(ip => { machine.ip().then(ip => {
var cmd = [resources.terminal(), 'ssh', '-p', '22', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'LogLevel=quiet', '-o', 'StrictHostKeyChecking=no', '-i', '~/.docker/machine/machines/' + machine.name() + '/id_rsa', 'docker@' + ip, '-t', 'docker', 'exec', '-i', '-t', container.Name, shell]; var cmd = [resources.terminal(), 'ssh', '-p', '22', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'LogLevel=quiet', '-o', 'StrictHostKeyChecking=no', '-i', '~/.docker/machine/machines/' + machine.name() + '/id_rsa', 'docker@' + ip, '-t', 'docker',
'exec', '-i', '-t', container.Name, shell];
exec(cmd, function (stderr, stdout, code) { exec(cmd, function (stderr, stdout, code) {
if (code) { if (code) {
console.log(stderr); console.log(stderr);
@ -215,19 +216,19 @@ var ContainerDetailsSubheader = React.createClass({
return ( return (
<div className="details-subheader"> <div className="details-subheader">
<div className="details-header-actions"> <div className="details-header-actions">
<div className={runActionClass} onMouseEnter={this.handleItemMouseEnterView} onMouseLeave={this.handleItemMouseLeaveView}> {startStopToggle}
<div className="action-icon" onClick={this.handleRun}><RetinaImage src="button-view.png"/></div>
<span className="btn-label view">View</span>
</div>
<div className={restartActionClass} onMouseEnter={this.handleItemMouseEnterRestart} onMouseLeave={this.handleItemMouseLeaveRestart}> <div className={restartActionClass} onMouseEnter={this.handleItemMouseEnterRestart} onMouseLeave={this.handleItemMouseLeaveRestart}>
<div className="action-icon" onClick={this.handleRestart}><RetinaImage src="button-restart.png"/></div> <div className="action-icon" onClick={this.handleRestart}><RetinaImage src="button-restart.png"/></div>
<span className="btn-label restart">Restart</span> <span className="btn-label restart">Restart</span>
</div> </div>
{startStopToggle}
<div className={terminalActionClass} onMouseEnter={this.handleItemMouseEnterTerminal} onMouseLeave={this.handleItemMouseLeaveTerminal}> <div className={terminalActionClass} onMouseEnter={this.handleItemMouseEnterTerminal} onMouseLeave={this.handleItemMouseLeaveTerminal}>
<div className="action-icon" onClick={this.handleTerminal}><RetinaImage src="button-terminal.png"/></div> <div className="action-icon" onClick={this.handleTerminal}><RetinaImage src="button-terminal.png"/></div>
<span className="btn-label terminal">Terminal</span> <span className="btn-label terminal">Terminal</span>
</div> </div>
<div className={runActionClass} onMouseEnter={this.handleItemMouseEnterView} onMouseLeave={this.handleItemMouseLeaveView}>
<div className="action-icon" onClick={this.handleRun}><RetinaImage src="button-view.png"/></div>
<span className="btn-label view">View</span>
</div>
</div> </div>
<div className="details-subheader-tabs"> <div className="details-subheader-tabs">
<span className={tabHomeClasses} onClick={this.showHome}>Home</span> <span className={tabHomeClasses} onClick={this.showHome}>Home</span>

View File

@ -32,7 +32,7 @@
li { li {
cursor: default; cursor: default;
border-radius: 40px; border-radius: 40px;
background-color: @color-background; background-color: @gray-lightest;
} }
} }
&:focus { &:focus {

View File

@ -13,7 +13,7 @@
position: relative; position: relative;
border-bottom: 1px solid @color-divider; border-bottom: 1px solid @color-divider;
background-color: white; background-color: white;
height: 57px; height: 51px;
padding: 6px 10px 10px 24px; padding: 6px 10px 10px 24px;
font-size: 13px; font-size: 13px;
color: @gray-normal; color: @gray-normal;
@ -25,11 +25,21 @@
display: inline-block; display: inline-block;
position: relative; position: relative;
img { img {
width: 42px; width: 35px;
height: 42px; height: 35px;
} }
&.disabled { &.disabled {
opacity: 0.3; opacity: 0.3;
&:active {
img, .btn-label {
-webkit-filter: brightness(1);
}
}
}
&:active {
img, .btn-label {
-webkit-filter: brightness(0.8);
}
} }
.action-icon { .action-icon {
color: @gray-normal; color: @gray-normal;
@ -40,21 +50,21 @@
color: @brand-action; color: @brand-action;
font-size: 9px; font-size: 9px;
width: 200px; width: 200px;
top: 45px; top: 38px;
&.view { &.view {
left: 7px; left: 8px;
} }
&.restart { &.restart {
left: 2px; left: 3px;
} }
&.stop { &.stop {
left: 7px; left: 8px;
} }
&.start { &.start {
left: 7px; left: 8px;
} }
&.terminal { &.terminal {
left: -1px; left: 1px;
} }
visibility: hidden; visibility: hidden;
} }