mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 16:58:01 +01:00
Only demonstration of issue # 308 that even though the cursor is gray on a gray background can be viewed.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Terminal.Gui;
|
||||
using Attribute = Terminal.Gui.Attribute;
|
||||
|
||||
namespace Designer {
|
||||
class Surface : Window {
|
||||
@@ -37,8 +38,20 @@ namespace Designer {
|
||||
Height = Dim.Fill ()
|
||||
};
|
||||
|
||||
var loginText = new TextField("") {
|
||||
X = Pos.Right(password),
|
||||
Y = Pos.Top(login),
|
||||
Width = 40,
|
||||
ColorScheme = new ColorScheme() {
|
||||
Focus = Attribute.Make(Color.BrightYellow, Color.DarkGray),
|
||||
Normal = Attribute.Make(Color.Green, Color.BrightYellow),
|
||||
HotFocus = Attribute.Make(Color.BrightBlue, Color.Brown),
|
||||
HotNormal = Attribute.Make(Color.Red, Color.BrightRed),
|
||||
},
|
||||
};
|
||||
|
||||
//Application.Top.Add (menu);
|
||||
Application.Top.Add (login, password);
|
||||
Application.Top.Add (login, password, loginText);
|
||||
Application.Run ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user