@@ -96,6 +96,7 @@ class SheetContainer extends React.Component
_getStateFromStores: =>
stack: WorkspaceStore.sheetStack()
+ mode: WorkspaceStore.layoutMode()
module.exports = SheetContainer
diff --git a/src/sheet-toolbar.cjsx b/src/sheet-toolbar.cjsx
index f385f8450..2ba647f21 100644
--- a/src/sheet-toolbar.cjsx
+++ b/src/sheet-toolbar.cjsx
@@ -17,6 +17,21 @@ class ToolbarSpacer extends React.Component
render: =>
+class WindowTitle extends React.Component
+ @displayName: "WindowTitle"
+
+ constructor: (@props) ->
+ @state = atom.getLoadSettings()
+
+ componentDidMount: ->
+ @unlisten = atom.onWindowPropsReceived (windowProps) =>
+ @setState atom.getLoadSettings()
+
+ componentWillUnmount: -> @unlisten()
+
+ render: ->
+
{@state.title}
+
class ToolbarBack extends React.Component
@displayName: 'ToolbarBack'
render: =>
@@ -154,6 +169,9 @@ class Toolbar extends React.Component
entries = ComponentRegistry.findComponentsMatching({location: loc.Toolbar.Right, mode: state.mode})
state.columns[state.columns.length - 1]?.push(entries...)
+ if state.mode is "popout"
+ state.columns[0]?.push(WindowTitle)
+
state
module.exports = Toolbar
diff --git a/static/buttons.less b/static/buttons.less
index 683e49d4f..4216482b3 100644
--- a/static/buttons.less
+++ b/static/buttons.less
@@ -10,11 +10,12 @@ button, html input[type="button"] {
.btn {
padding: 0.33em 1em;
- border:1px solid rgba(0,0,0,0.18);
+ border:1px solid rgba(0,0,0,0.15);
border-radius: @border-radius-base;
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
cursor: default;
display:inline-block;
+ background: linear-gradient(to top, rgba(241,241,241,0.75) 0%, rgba(253,253,253,0.75) 100%);
height: auto;
line-height: 1;
@@ -55,12 +56,27 @@ button, html input[type="button"] {
}
&.btn-emphasis {
- background-image: -webkit-gradient(linear, left top, left bottom, from(lighten(@btn-emphasis-bg-color,10%)), to(@btn-emphasis-bg-color));
- border:1px solid darken(@btn-emphasis-bg-color, 5%);
+ position: relative;
color: @btn-emphasis-text-color;
font-weight: @font-weight-medium;
img.content-mask { background-color:@btn-emphasis-text-color; }
+
+ background: linear-gradient(to bottom, #6bb1f9 0%, #0a80ff 100%);
+
+ border: 0;
+ &:before {
+ content: ' ';
+ width: calc(~"100% + 2px");
+ height: calc(~"100% + 2px");
+ border-radius: 5px;
+ padding: 0;
+ top: -1px;
+ left: -1px;
+ position: absolute;
+ z-index: -1;
+ background: linear-gradient(to bottom, #4ca2f9 0%, #015cff 100%);
+ }
}
&.btn-emphasis:active {
@@ -68,6 +84,16 @@ button, html input[type="button"] {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.21);
}
+ &.btn-text {
+ font-size: 13px;
+ padding: 2px 14px 2px 7px;
+ .text {
+ position: relative;
+ top: 1px;
+ margin-left: 6px;
+ }
+ }
+
&.btn-danger, .btn-destructive {
color: @btn-danger-text-color;
background: @btn-danger-bg-color;
@@ -76,7 +102,8 @@ button, html input[type="button"] {
}
.btn-toolbar {
- min-height:34px;
+ min-height: 24px;
+ padding: 2px 13px;
}
.btn-gradient {
diff --git a/static/images/attachments/icon-attachment-download-@1x.png b/static/images/attachments/icon-attachment-download-@1x.png
new file mode 100644
index 000000000..e93c4793f
Binary files /dev/null and b/static/images/attachments/icon-attachment-download-@1x.png differ
diff --git a/static/images/attachments/icon-attachment-download-@2x.png b/static/images/attachments/icon-attachment-download-@2x.png
new file mode 100644
index 000000000..5dba32f4d
Binary files /dev/null and b/static/images/attachments/icon-attachment-download-@2x.png differ
diff --git a/static/images/attachments/image-cancel-button@2x.png b/static/images/attachments/image-cancel-button@2x.png
new file mode 100644
index 000000000..1945de8a4
Binary files /dev/null and b/static/images/attachments/image-cancel-button@2x.png differ
diff --git a/static/images/attachments/image-download-button@2x.png b/static/images/attachments/image-download-button@2x.png
new file mode 100644
index 000000000..c510f841c
Binary files /dev/null and b/static/images/attachments/image-download-button@2x.png differ
diff --git a/static/images/composer/icon-composer-attachment@2x.png b/static/images/composer/icon-composer-attachment@2x.png
new file mode 100644
index 000000000..a3e6462c2
Binary files /dev/null and b/static/images/composer/icon-composer-attachment@2x.png differ
diff --git a/static/images/composer/icon-composer-dropdown@2x.png b/static/images/composer/icon-composer-dropdown@2x.png
new file mode 100644
index 000000000..c0aae9445
Binary files /dev/null and b/static/images/composer/icon-composer-dropdown@2x.png differ
diff --git a/static/images/composer/icon-composer-send@2x.png b/static/images/composer/icon-composer-send@2x.png
new file mode 100644
index 000000000..e89f9c897
Binary files /dev/null and b/static/images/composer/icon-composer-send@2x.png differ
diff --git a/static/images/composer/icon-composer-templates@2x.png b/static/images/composer/icon-composer-templates@2x.png
new file mode 100644
index 000000000..bf138b936
Binary files /dev/null and b/static/images/composer/icon-composer-templates@2x.png differ
diff --git a/static/images/composer/icon-composer-trash@2x.png b/static/images/composer/icon-composer-trash@2x.png
new file mode 100644
index 000000000..0dbf6ba08
Binary files /dev/null and b/static/images/composer/icon-composer-trash@2x.png differ
diff --git a/static/workspace.less b/static/workspace.less
index cc8df69f3..b0a021bd7 100644
--- a/static/workspace.less
+++ b/static/workspace.less
@@ -124,6 +124,22 @@ body.is-blurred {
.sheet-toolbar-container {
background: @toolbar-background-color;
+
+ &.mode-popout {
+ background: transparent;
+ }
+}
+
+.layout-mode-popout {
+ .sheet-toolbar {
+ background: @background-primary;
+ height: 35px;
+ min-height: 35px;
+ max-height: 35px;
+ }
+ .toolbar-window-controls {
+ margin-top: 7px;
+ }
}
.sheet-toolbar {
@@ -149,6 +165,20 @@ body.is-blurred {
.item-spacer {
-webkit-app-region: drag;
}
+
+ .item-container {
+ .window-title {
+ flex: 2;
+ text-align: center;
+ margin-top: 6px;
+ margin-left: -80px; /* width of ToolbarWindowControls */
+ -webkit-app-region: drag;
+ &:hover {
+ cursor: default;
+ }
+ }
+ }
+
.item-back {
order:-999;
padding-top: 5px;
@@ -265,3 +295,4 @@ body.platform-win32 {
cursor:ew-resize;
}
}
+