Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ define(function (require, exports, module) {

function _handleHideSnippets() {
if (panel.isVisible()) {
$("#snippets-enable-icon").removeClass("opened");
panel.hide();
CommandManager.get(VIEW_HIDE_SNIPPETS).setChecked(false);
} else {
$("#snippets-enable-icon").addClass("opened");
panel.show();
CommandManager.get(VIEW_HIDE_SNIPPETS).setChecked(true);
}
Expand Down
10 changes: 10 additions & 0 deletions styles/images/icon-brackets-snippets.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 styles/images/icon.png
Binary file not shown.
19 changes: 8 additions & 11 deletions styles/snippets.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,17 @@
}

#snippets table .snippets-header td {
font-weight: bold;
background-color: #404040;
border-right: 1px solid rgba(0,0,0,0.03);
font-weight: 500;
padding: 0;
color: #fff;
color: #454545;
padding: 4px 10px;
}

#snippets .toolbar {
display: block;
}

#snippets .toolbar .snippets-close {
font-weight: bold;
font-height: 20px;
color: #999;
margin-right: 5px;
}

#snippets .toolbar .snippets-settings {
margin-right: 50px;
}
Expand All @@ -74,6 +67,10 @@
}

#snippets-enable-icon {
background-image: url(images/icon.png);
background: url(images/icon-brackets-snippets.svg);
}

#snippets-enable-icon.opened {
background: url(images/icon-brackets-snippets.svg) 0 -24px;
}

2 changes: 1 addition & 1 deletion templates/bottom-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<span class="title">Snippets</span>
<span class="pull-right">
<button class="btn btn-mini snippets-settings">Settings...</button>
<a href="#" class="snippets-close">&times;</a>
<a href="#" class="close">&times;</a>
</span>
</div>
<div class="resizable-content"></div>
Expand Down