-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oleksandr Bardanov
committed
Aug 28, 2014
1 parent
033fbd9
commit b333dba
Showing
9 changed files
with
172 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#working-set-header{ | ||
display: none !important; | ||
} | ||
|
||
#open-files-container{ | ||
display: none !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
define(function(require, exports, module){ | ||
var ko = require('../vendor/knockout'), | ||
prefs = require('../services/preferences'), | ||
ExtensionUtils = brackets.getModule('utils/ExtensionUtils'); | ||
|
||
function showWorkingFiles(value){ | ||
if (value){ | ||
$('link[href*="/styles/hideWorkingFiles.css"]').remove(); | ||
} else { | ||
ExtensionUtils.loadStyleSheet(module, '../styles/hideWorkingFiles.css'); | ||
} | ||
} | ||
|
||
function GeneralOptions(){ | ||
this.showWorkingFiles = ko.observable(); | ||
this.showWorkingFiles.subscribe(function(value){ | ||
showWorkingFiles(value); | ||
prefs.set('workingFiles', value); | ||
}); | ||
|
||
this.showIcons = ko.observable(); | ||
this.showIcons.subscribe(function(value){ | ||
prefs.set('icons', value); | ||
}); | ||
|
||
this.showWorkingFiles(prefs.get('workingFiles')); | ||
this.showIcons(prefs.get('icons')); | ||
} | ||
|
||
module.exports = GeneralOptions; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters