Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2997 from dinhviethoa/2961-back-button
Browse files Browse the repository at this point in the history
Show a button to go back to files view
  • Loading branch information
dinhvh committed Jul 28, 2014
2 parents 87130fa + 2cee399 commit 84dbbcf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ide/app/spark.dart
Expand Up @@ -447,6 +447,10 @@ abstract class Spark
.listen((FilesControllerPersistTabEvent event) {
editorArea.persistTab(event.file);
});
querySelector('#showFileViewButton').onClick.listen((_) {
Action action = actionManager.getAction('show-files-view');
action.invoke();
});
}

void initSearchController() {
Expand Down
12 changes: 12 additions & 0 deletions ide/app/spark_polymer.css
Expand Up @@ -468,6 +468,18 @@ button.ace_searchbtn.prev:hover {
border: 2px solid #aaf;
}

#showFileViewButton {
font-size: 13px;
margin-top: 20px;
text-decoration: underline;
text-transform: uppercase;
}

#showFileViewButton:hover {
color: #444;
cursor: pointer;
}

#file-item-context-menu {
top: 0;
left: 0;
Expand Down
3 changes: 2 additions & 1 deletion ide/app/spark_polymer.html
Expand Up @@ -89,7 +89,8 @@
</div>
<div id="searchViewArea" class="hidden"></div>
<div id="searchViewPlaceholder" class="hidden">
Type a string to search in the workspace
<div>Type a string to search in the workspace</div>
<div id="showFileViewButton">Close Search</div>
</div>
<div id="searchViewNoResult" class="hidden">
No matching files
Expand Down

0 comments on commit 84dbbcf

Please sign in to comment.