diff --git a/src/core/mixins/signals/widget_signals/list_signals_mixin.py b/src/core/mixins/signals/widget_signals/list_signals_mixin.py
index 46df805..e2dcb3b 100644
--- a/src/core/mixins/signals/widget_signals/list_signals_mixin.py
+++ b/src/core/mixins/signals/widget_signals/list_signals_mixin.py
@@ -73,18 +73,22 @@ class ListSignalsMixin:
# handle foreground and background colors
if this_style.foreground:
- self.fr_color_btn.set_color(Gdk.color_parse(this_style.foreground))
- self.fr_color_btn.set_sensitive(True)
- self.fr_check_btn.set_active(True)
+ color = Gdk.color_parse(this_style.foreground)
+ if color:
+ self.fr_color_btn.set_color(color)
+ self.fr_color_btn.set_sensitive(True)
+ self.fr_check_btn.set_active(True)
else:
self.fr_color_btn.set_color(self.black_color)
self.fr_color_btn.set_sensitive(False)
self.fr_check_btn.set_active(False)
if this_style.background:
- self.br_color_btn.set_color(Gdk.color_parse(this_style.background))
- self.br_color_btn.set_sensitive(True)
- self.br_check_btn.set_active(True)
+ color = Gdk.color_parse(this_style.background)
+ if color:
+ self.br_color_btn.set_color(color)
+ self.br_color_btn.set_sensitive(True)
+ self.br_check_btn.set_active(True)
else:
self.br_color_btn.set_color(self.black_color)
self.br_color_btn.set_sensitive(False)
diff --git a/src/newton.zip b/src/newton.zip
new file mode 100644
index 0000000..a585001
Binary files /dev/null and b/src/newton.zip differ
diff --git a/src/utils/languages.py b/src/utils/languages.py
index 514e89a..c5dc463 100644
--- a/src/utils/languages.py
+++ b/src/utils/languages.py
@@ -188,8 +188,76 @@ samples['html'] = """
# samples['imagej'] = """
# samples['ini'] = """
# samples['java'] = """
-# samples['js'] = """
-# samples['json'] = """
+samples['js'] = """
+const loadBackground = () => {
+ const bgElm = document.getElementById("bg");
+ const bgPath = getCookie('bgSlug');
+
+ if (!bgPath) {
+ const path = '/static/imgs/backgrounds/background.png';
+ setCookie('bgSlug', path);
+ setBackgroundElement(bgElm, path);
+ } else {
+ // NOTE: Probably in IFRAME and unloaded the background...
+ if (!bgElm) return ;
+ setBackgroundElement(bgElm, bgPath);
+ }
+}
+"""
+
+samples['json'] = """
+{
+ "load_defaults":false,
+ "config":{
+ "base_of_home":"",
+ "hide_hidden_files":"true",
+ "thumbnailer_path":"ffmpegthumbnailer",
+ "blender_thumbnailer_path":"",
+ "go_past_home":"true",
+ "lock_folder":"false",
+ "locked_folders":[
+ "venv",
+ "flasks"
+ ],
+ "mplayer_options":"-quiet -really-quiet -xy 1600 -geometry 50%:50%",
+ "remux_folder_max_disk_usage":"8589934592",
+ "make_transparent":0,
+ "main_window_x":2288,
+ "main_window_y":199,
+ "main_window_min_width":720,
+ "main_window_min_height":480,
+ "main_window_width":800,
+ "main_window_height":600,
+ "application_dirs":[
+ "/usr/share/applications",
+ "/home/abaddon/.local/share/applications"
+ ]
+ },
+ "filters":{
+ "meshs":[
+ ".blend",
+ ".dae",
+ ".fbx",
+ ".gltf",
+ ".obj",
+ ".stl"
+ ],
+ "code":[
+ ".cpp",
+ ".css",
+ ".c",
+ ".go",
+ ".pom"
+ ]
+ },
+ "debugging":{
+ "ch_log_lvl":10,
+ "fh_log_lvl":20.0,
+ "target_file": null,
+ "is_debugging": true
+ }
+}
+"""
# samples['latex'] = """
# samples['libtool'] = """
# samples['lua'] = """
@@ -212,8 +280,12 @@ samples['html'] = """
# samples['perl'] = """
samples['php'] = """
+
"""
# samples['pkgconfig'] = """
# samples['prolog'] = """
@@ -236,6 +308,23 @@ samples['python'] = """
# TODO handle case where there is a permissions issue
"""
+samples['python3'] = """
+ def on_save_clicked(self, param):
+ if not self.currentSchemeFile:
+ filename = runSaveAsDialog(self.window, self.entryId.get_text() + '.xml')
+
+ if filename and not '.' in os.path.basename(filename):
+ filename = filename + '.xml'
+
+ if filename:
+ self.write_scheme(filename, self.entryId.get_text())
+ self.currentSchemeFile = filename
+ else:
+ self.write_scheme(self.currentSchemeFile, self.entryId.get_text())
+
+ # TODO handle case where there is a permissions issue
+"""
+
# samples['r'] = """
# samples['rpmspec'] = """
# samples['ruby'] = """
@@ -253,6 +342,31 @@ samples['python'] = """
# samples['vbnet'] = """
# samples['verilog'] = """
# samples['vhdl'] = """
-# samples['xml'] = """
+samples['xml'] = """
+
+{% if current_directory %}
+
+{% endif %}
+
+
+"""
# samples['xslt'] = """
# samples['yacc'] = """
diff --git a/user_config/usr/share/gtkcodethemer/Main_Window.glade b/user_config/usr/share/gtkcodethemer/Main_Window.glade
index 7a86e4f..fb3cdc3 100644
--- a/user_config/usr/share/gtkcodethemer/Main_Window.glade
+++ b/user_config/usr/share/gtkcodethemer/Main_Window.glade
@@ -640,20 +640,27 @@
-