Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Commit

Permalink
Updated menu item icons with font-awesome equivalent, made search bar…
Browse files Browse the repository at this point in the history
… always 100%.
  • Loading branch information
danieljimeneznz committed May 14, 2019
1 parent d7d4df6 commit 570295f
Show file tree
Hide file tree
Showing 21 changed files with 242 additions and 28 deletions.
4 changes: 4 additions & 0 deletions icons/archive-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/bars-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/clock-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/cog-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/edit-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/envelope-open-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/envelope-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/exclamation-circle-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/folder-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/search-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/share-square-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/star-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/star-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/times-circle-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/trash-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/users-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/wave-square-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/[email protected]
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"mailspring": "*"
},
"styleSheets": [
"compose-button",
"compose",
"controls",
"email-frame",
Expand Down
23 changes: 0 additions & 23 deletions styles/compose-button.less

This file was deleted.

178 changes: 174 additions & 4 deletions styles/sheet-toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ div:not(.layout-mode-popout) {
border: none;
height: @header-bar-height;
max-height: @header-bar-height;

// Generic toolbar properties.
.sheet-toolbar-container {
background: @toolbar-bg;
> div {
Expand All @@ -25,32 +27,200 @@ div:not(.layout-mode-popout) {
div.item-container {
padding-right: 2em;
}

// Activity/compose button toolbar properties.
.toolbar-RootSidebar {
// Over-ride previously set image properties.
img {
zoom: 1 !important;
-webkit-mask-image: none !important;
-webkit-mask-repeat: none !important;
mask-image: none !important;
mask-repeat: none !important;
object-position: 0 !important;
background: none !important;

// New properties to be set for the images.
height: 18px;
background-size: auto !important;
}
.toolbar-activity {
img {
margin-top: 11px;
content: url("mailspring://agapanthus/icons/wave-square-solid.svg");
}
}

// Compose button properties.
.btn.btn-toolbar.item-compose {
position: fixed;
z-index: 999;
background: @compose-button-color!important;
bottom: 22px;
height: 52px;
display: block;
right: 20px;
border-radius: @compose-button-radius!important;
padding: 19px;
padding-top: 13px;
padding-right: 17px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28) !important;
img {
width: 15px;
content: url("mailspring://agapanthus/icons/edit-solid.svg");
}
&:hover {
box-shadow: 0 0 8px rgba(0, 0, 0, 0.14),
0 8px 16px rgba(0, 0, 0, 0.28) !important;
}
}
}

// Main search bar properties.
.toolbar-ThreadList {
padding-top: 0px !important;

.thread-search-bar {
background: @inbox-lighter;
color: white;
height: 34px !important;
line-height: 34px !important;
box-shadow: none !important;
border-radius: 2px !important;
padding: 0 10px;
width: 100% !important;

.suggestions {
top: 34px !important;
}

.layer-text {
color: @white;
color: white;
padding-left: 10px;
}

.layer-tokens {
display: none;
}

img.search-accessory.search {
content: url("mailspring://agapanthus/img/[email protected]");
img {
width: 17px;
height: 17px;
background-size: auto;
}

img.search-accessory.search {
content: url("mailspring://agapanthus/icons/search-solid.svg");
}

img.search-accessory.clear {
content: url("mailspring://agapanthus/icons/times-circle-solid.svg");
}
}
}

// Top right hand side menu bar.
.toolbar-MessageList,
.toolbar-MessageListSidebar {
.btn.btn-toolbar {
padding: 0 10px !important;
}

// Over-ride previously set image properties.
img {
zoom: 1 !important;
-webkit-mask-image: none !important;
-webkit-mask-repeat: none !important;
mask-image: none !important;
mask-repeat: none !important;
object-position: 0 !important;
background: none !important;

// New properties to be set for the images.
height: 18px;
background-size: auto !important;
}

// Upper right corner cog.
.toolbar-menu-control {
img {
content: url("mailspring://agapanthus/icons/cog-solid.svg");
}
}

// Upper right corner users.
.mode-toggle {
img {
content: url("mailspring://agapanthus/icons/users-solid.svg");
}
}

.message-toolbar-items {
.thread-sharing-button {
img {
content: url("mailspring://agapanthus/icons/share-square-solid.svg");
}
}

.snooze-button {
img {
content: url("mailspring://agapanthus/icons/clock-solid.svg");
}
}

.btn-category-picker {
img {
content: url("mailspring://agapanthus/icons/folder-solid.svg");
}
}

.btn[title="Mark as Read"] {
img {
content: url("mailspring://agapanthus/icons/envelope-solid.svg");
}
}

.btn[title="Mark as Unread"] {
img {
content: url("mailspring://agapanthus/icons/envelope-open-solid.svg");
}
}

.btn[title="Star"] {
img {
content: url("mailspring://agapanthus/icons/star-regular.svg");
}
}

.btn[title="Unstar"] {
img {
content: url("mailspring://agapanthus/icons/star-solid.svg");
}
}

.btn[title="Move to Trash"] {
img {
content: url("mailspring://agapanthus/icons/trash-solid.svg");
}
}

.btn[title="Mark as Spam"] {
img {
content: url("mailspring://agapanthus/icons/exclamation-circle-solid.svg");
}
}

.btn[title="Not Spam"] {
img {
content: url("mailspring://agapanthus/icons/exclamation-circle-solid.svg");
}
}

.btn[title="Archive"] {
img {
content: url("mailspring://agapanthus/icons/archive-solid.svg");
}
}
}
}
}
Expand All @@ -66,5 +236,5 @@ div:not(.layout-mode-popout) {
}

.window-title {
color: @white;
color: white;
}

0 comments on commit 570295f

Please sign in to comment.