|
@@ -3845,6 +3845,44 @@ referencedClasses: ["HLRequestWidget"]
|
|
|
}),
|
|
|
globals.HLManager);
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "setEditorTheme:",
|
|
|
+protocol: 'accessing',
|
|
|
+fn: function (aTheme){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+_st("helios.editorTheme"._asSetting())._value_(aTheme);
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"setEditorTheme:",{aTheme:aTheme},globals.HLManager)})},
|
|
|
+args: ["aTheme"],
|
|
|
+source: "setEditorTheme: aTheme\x0a\x0a\x09'helios.editorTheme' asSetting value: aTheme",
|
|
|
+messageSends: ["value:", "asSetting"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+globals.HLManager);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "setTheme:",
|
|
|
+protocol: 'accessing',
|
|
|
+fn: function (aTheme){
|
|
|
+var self=this;
|
|
|
+var currentTheme;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1,$2;
|
|
|
+currentTheme="helios.theme"._asSettingIfAbsent_("default");
|
|
|
+$1="body"._asJQuery();
|
|
|
+_st($1)._removeClass_(_st(currentTheme)._value());
|
|
|
+$2=_st($1)._addClass_(aTheme);
|
|
|
+_st("helios.theme"._asSetting())._value_(aTheme);
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"setTheme:",{aTheme:aTheme,currentTheme:currentTheme},globals.HLManager)})},
|
|
|
+args: ["aTheme"],
|
|
|
+source: "setTheme: aTheme\x0a\x09| currentTheme |\x0a\x0a\x09currentTheme := 'helios.theme' asSettingIfAbsent: 'default'.\x0a\x09\x0a\x09'body' asJQuery\x0a\x09\x09removeClass: currentTheme value;\x0a\x09\x09addClass: aTheme.\x0a\x09\x09\x0a\x09\x0a\x09'helios.theme' asSetting value: aTheme",
|
|
|
+messageSends: ["asSettingIfAbsent:", "removeClass:", "asJQuery", "value", "addClass:", "value:", "asSetting"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+globals.HLManager);
|
|
|
+
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "setup",
|
|
@@ -3859,11 +3897,12 @@ $ctx1.sendIdx["setupEvents"]=1;
|
|
|
_st(self._keyBinder())._setupEvents();
|
|
|
$ctx1.sendIdx["setupEvents"]=2;
|
|
|
_st(self._tabsWidget())._setupEvents();
|
|
|
+self._setupTheme();
|
|
|
_st("#helper"._asJQuery())._fadeOut();
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"setup",{},globals.HLManager)})},
|
|
|
args: [],
|
|
|
-source: "setup\x0a\x09self \x0a\x09\x09registerServices;\x0a\x09\x09setupEvents.\x0a self keyBinder setupEvents.\x0a\x09self tabsWidget setupEvents.\x0a\x09\x0a\x09\x0a\x09'#helper' asJQuery fadeOut",
|
|
|
-messageSends: ["registerServices", "setupEvents", "keyBinder", "tabsWidget", "fadeOut", "asJQuery"],
|
|
|
+source: "setup\x0a\x09self \x0a\x09\x09registerServices;\x0a\x09\x09setupEvents.\x0a self keyBinder setupEvents.\x0a\x09self tabsWidget setupEvents.\x0a\x09self setupTheme.\x0a\x09\x0a\x09\x0a\x09'#helper' asJQuery fadeOut",
|
|
|
+messageSends: ["registerServices", "setupEvents", "keyBinder", "tabsWidget", "setupTheme", "fadeOut", "asJQuery"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
globals.HLManager);
|
|
@@ -3907,6 +3946,22 @@ referencedClasses: []
|
|
|
}),
|
|
|
globals.HLManager);
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "setupTheme",
|
|
|
+protocol: 'private',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+self._setTheme_("niflheim");
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"setupTheme",{},globals.HLManager)})},
|
|
|
+args: [],
|
|
|
+source: "setupTheme\x0a\x09self setTheme: 'niflheim'",
|
|
|
+messageSends: ["setTheme:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+globals.HLManager);
|
|
|
+
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "tabWidth",
|