mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 09:53:00 +01:00
Merge pull request #8514 from adobe/dangoor/bye-thor
Rename "Thor" themes to simple "Default (Light)" and "Dark"
This commit is contained in:
commit
c7fddecf4f
14
src/extensions/default/DarkTheme/package.json
Normal file
14
src/extensions/default/DarkTheme/package.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"title": "Dark",
|
||||
"name": "dark-theme",
|
||||
"description": "Built-in dark theme for Brackets",
|
||||
"version": "0.42.0",
|
||||
"author": "Miguel Castillo <mahchagnu@gmail.com>",
|
||||
"engines": {
|
||||
"brackets": ">=0.42.0"
|
||||
},
|
||||
"theme": {
|
||||
"file": "main.less",
|
||||
"dark": true
|
||||
}
|
||||
}
|
13
src/extensions/default/LightTheme/package.json
Normal file
13
src/extensions/default/LightTheme/package.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"title": "Default (Light)",
|
||||
"name": "light-theme",
|
||||
"description": "Built-in light theme for Brackets",
|
||||
"version": "0.42.0",
|
||||
"author": "Miguel Castillo <mahchagnu@gmail.com>",
|
||||
"engines": {
|
||||
"brackets": ">=0.42.0"
|
||||
},
|
||||
"theme": {
|
||||
"file": "main.less"
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
{
|
||||
"title": "Thor Dark",
|
||||
"name": "thor-dark-theme",
|
||||
"description": "Awesome dark theme for Brackets",
|
||||
"version": "0.0.1",
|
||||
"author": "Miguel Castillo <mahchagnu@gmail.com>",
|
||||
"engines": {
|
||||
"brackets": ">=0.39.0"
|
||||
},
|
||||
"theme": {
|
||||
"file": "main.less",
|
||||
"dark": true
|
||||
},
|
||||
"screenshot": "screenshot.png"
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
{
|
||||
"title": "Default (Thor Light)",
|
||||
"name": "thor-light-theme",
|
||||
"description": "Awesome light theme for Brackets",
|
||||
"version": "0.0.1",
|
||||
"author": "Miguel Castillo <mahchagnu@gmail.com>",
|
||||
"engines": {
|
||||
"brackets": ">=0.39.0"
|
||||
},
|
||||
"theme": {
|
||||
"file": "main.less"
|
||||
},
|
||||
"screenshot": "screenshot.png"
|
||||
}
|
@ -46,7 +46,7 @@ define(function (require, exports, module) {
|
||||
*/
|
||||
var defaults = {
|
||||
"customScrollbars": true,
|
||||
"theme": "thor-light-theme"
|
||||
"theme": "light-theme"
|
||||
};
|
||||
|
||||
|
||||
@ -85,9 +85,13 @@ define(function (require, exports, module) {
|
||||
var $template = $(Mustache.render(template, {"settings": currentSettings, "themes": themes, "Strings": Strings}));
|
||||
|
||||
// Select the correct theme.
|
||||
$template
|
||||
.find("[value='" + currentSettings.theme + "']")
|
||||
.attr("selected", "selected");
|
||||
var $currentThemeOption = $template
|
||||
.find("[value='" + currentSettings.theme + "']");
|
||||
|
||||
if ($currentThemeOption.length === 0) {
|
||||
$currentThemeOption = $template.find("[value='" + defaults.theme + "']");
|
||||
}
|
||||
$currentThemeOption.attr("selected", "selected");
|
||||
|
||||
$template
|
||||
.find("[data-toggle=tab].default")
|
||||
|
Loading…
Reference in New Issue
Block a user