diff --git a/dub.json b/dub.json
index 9859491..3fe2229 100644
--- a/dub.json
+++ b/dub.json
@@ -12,7 +12,7 @@
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"],
"dependencies": {
- "dlangui": "==0.9.2",
+ "dlangui": "==0.9.3",
"dcd": "~>0.8.0"
},
diff --git a/src/dlangide/ui/dsourceedit.d b/src/dlangide/ui/dsourceedit.d
index 5199d10..02997d5 100644
--- a/src/dlangide/ui/dsourceedit.d
+++ b/src/dlangide/ui/dsourceedit.d
@@ -38,8 +38,10 @@ interface BookmarkListChangeListener {
class DSourceEdit : SourceEdit, EditableContentMarksChangeListener {
this(string ID) {
super(ID);
- styleId = null;
- backgroundColor = style.customColor("edit_background");
+ static if (BACKEND_GUI) {
+ styleId = null;
+ backgroundColor = style.customColor("edit_background");
+ }
onThemeChanged();
//setTokenHightlightColor(TokenCategory.Identifier, 0x206000); // no colors
MenuItem editPopupItem = new MenuItem(null);
@@ -63,7 +65,7 @@ class DSourceEdit : SourceEdit, EditableContentMarksChangeListener {
/// handle theme change: e.g. reload some themed resources
override void onThemeChanged() {
- backgroundColor = style.customColor("edit_background");
+ static if (BACKEND_GUI) backgroundColor = style.customColor("edit_background");
setTokenHightlightColor(TokenCategory.Comment, style.customColor("syntax_highlight_comment")); // green
setTokenHightlightColor(TokenCategory.Keyword, style.customColor("syntax_highlight_keyword")); // blue
setTokenHightlightColor(TokenCategory.String, style.customColor("syntax_highlight_string")); // brown
diff --git a/views/res/console_ide_theme_dark.xml b/views/res/console_ide_theme_dark.xml
index 679b120..6b2e0bc 100644
--- a/views/res/console_ide_theme_dark.xml
+++ b/views/res/console_ide_theme_dark.xml
@@ -1,22 +1,20 @@
-
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
diff --git a/views/res/console_ide_theme_default.xml b/views/res/console_ide_theme_default.xml
index 1c76030..2ef65fa 100644
--- a/views/res/console_ide_theme_default.xml
+++ b/views/res/console_ide_theme_default.xml
@@ -5,22 +5,39 @@
>
-
-
-
-
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+