Skip to content

Commit b59ac3b

Browse files
authored
Fixed. (#4140)
1 parent f3c80d9 commit b59ac3b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Terminal.Gui/Resources/config.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@
511511
"Style": "None"
512512
},
513513
"Editable": {
514-
"Foreground": "Goldenrod",
515-
"Background": "WhiteSmoke",
514+
"Foreground": "Black",
515+
"Background": "LemonChiffon",
516516
"Style": "None"
517517
},
518518
"ReadOnly": {
@@ -565,8 +565,8 @@
565565
"Style": "None"
566566
},
567567
"Editable": {
568-
"Foreground": "Goldenrod",
569-
"Background": "WhiteSmoke",
568+
"Foreground": "Black",
569+
"Background": "LemonChiffon",
570570
"Style": "None"
571571
},
572572
"ReadOnly": {
@@ -669,7 +669,7 @@
669669
},
670670
"Highlight": {
671671
"Foreground": "Black",
672-
"Background": "LightGray",
672+
"Background": "LemonChiffon",
673673
"Style": "None"
674674
},
675675
"Editable": {
@@ -727,7 +727,7 @@
727727
"Style": "None"
728728
},
729729
"Editable": {
730-
"Foreground": "Goldenrod",
730+
"Foreground": "Black",
731731
"Background": "WhiteSmoke",
732732
"Style": "None"
733733
},

Terminal.Gui/Views/TextInput/TextView.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// TextView.cs: multi-line text editing
44
using System.Globalization;
55
using System.Runtime.CompilerServices;
6+
using static Unix.Terminal.Delegates;
67

78
namespace Terminal.Gui.Views;
89

@@ -1868,6 +1869,7 @@ protected override bool OnDrawingContent ()
18681869

18691870
if (col < right)
18701871
{
1872+
SetAttributeForRole (ReadOnly ? VisualRole.ReadOnly : VisualRole.Editable);
18711873
ClearRegion (col, row, right, row + 1);
18721874
}
18731875

@@ -1876,11 +1878,10 @@ protected override bool OnDrawingContent ()
18761878

18771879
if (row < bottom)
18781880
{
1881+
SetAttributeForRole (ReadOnly ? VisualRole.ReadOnly : VisualRole.Editable);
18791882
ClearRegion (Viewport.Left, row, right, bottom);
18801883
}
18811884

1882-
//PositionCursor ();
1883-
18841885
_isDrawing = false;
18851886

18861887
return false;

0 commit comments

Comments
 (0)