File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 511
511
"Style" : " None"
512
512
},
513
513
"Editable" : {
514
- "Foreground" : " Goldenrod " ,
515
- "Background" : " WhiteSmoke " ,
514
+ "Foreground" : " Black " ,
515
+ "Background" : " LemonChiffon " ,
516
516
"Style" : " None"
517
517
},
518
518
"ReadOnly" : {
565
565
"Style" : " None"
566
566
},
567
567
"Editable" : {
568
- "Foreground" : " Goldenrod " ,
569
- "Background" : " WhiteSmoke " ,
568
+ "Foreground" : " Black " ,
569
+ "Background" : " LemonChiffon " ,
570
570
"Style" : " None"
571
571
},
572
572
"ReadOnly" : {
669
669
},
670
670
"Highlight" : {
671
671
"Foreground" : " Black" ,
672
- "Background" : " LightGray " ,
672
+ "Background" : " LemonChiffon " ,
673
673
"Style" : " None"
674
674
},
675
675
"Editable" : {
727
727
"Style" : " None"
728
728
},
729
729
"Editable" : {
730
- "Foreground" : " Goldenrod " ,
730
+ "Foreground" : " Black " ,
731
731
"Background" : " WhiteSmoke" ,
732
732
"Style" : " None"
733
733
},
Original file line number Diff line number Diff line change 3
3
// TextView.cs: multi-line text editing
4
4
using System . Globalization ;
5
5
using System . Runtime . CompilerServices ;
6
+ using static Unix . Terminal . Delegates ;
6
7
7
8
namespace Terminal . Gui . Views ;
8
9
@@ -1868,6 +1869,7 @@ protected override bool OnDrawingContent ()
1868
1869
1869
1870
if ( col < right )
1870
1871
{
1872
+ SetAttributeForRole ( ReadOnly ? VisualRole . ReadOnly : VisualRole . Editable ) ;
1871
1873
ClearRegion ( col , row , right , row + 1 ) ;
1872
1874
}
1873
1875
@@ -1876,11 +1878,10 @@ protected override bool OnDrawingContent ()
1876
1878
1877
1879
if ( row < bottom )
1878
1880
{
1881
+ SetAttributeForRole ( ReadOnly ? VisualRole . ReadOnly : VisualRole . Editable ) ;
1879
1882
ClearRegion ( Viewport . Left , row , right , bottom ) ;
1880
1883
}
1881
1884
1882
- //PositionCursor ();
1883
-
1884
1885
_isDrawing = false ;
1885
1886
1886
1887
return false ;
You can’t perform that action at this time.
0 commit comments