fix ace gutter and tab color not matching in flat-light theme

This commit is contained in:
nightwing 2017-11-15 00:09:55 +04:00
parent 76608d0bcd
commit c65107388c

View File

@ -547,6 +547,10 @@ define(function(require, exports, module) {
layout.on("themeChange", function(e) {
setFontSmoothing();
// reset this, since main theme can override ace theme colors
themeLoaded = {};
lastTheme = null;
setTheme(settings.get("user/ace/@theme"));
if (e.type !== "ace"
&& settings.get("user/ace/@theme") != defaultThemes[e.oldTheme])