diff --git a/src/dlangui/widgets/widget.d b/src/dlangui/widgets/widget.d index fc7973e8..02e8370c 100644 --- a/src/dlangui/widgets/widget.d +++ b/src/dlangui/widgets/widget.d @@ -858,7 +858,11 @@ public: this.tabOrder = widget.thisOrParentTabOrder(); this.rect = widget.pos; } - static immutable int NEAR_THRESHOLD = 10; + static if (BACKEND_GUI) { + static immutable int NEAR_THRESHOLD = 10; + } else { + static immutable int NEAR_THRESHOLD = 1; + } bool nearX(TabOrderInfo v) { return v.rect.left >= rect.left - NEAR_THRESHOLD && v.rect.left <= rect.left + NEAR_THRESHOLD; } diff --git a/views/res/console_theme_default.xml b/views/res/console_theme_default.xml index ea276c78..d1856ce0 100644 --- a/views/res/console_theme_default.xml +++ b/views/res/console_theme_default.xml @@ -9,18 +9,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -31,16 +31,16 @@