Made Line use GetAttributeForRole

This commit is contained in:
Tig
2025-10-03 13:07:49 -07:00
parent c8b2568c5d
commit e350b4817e
2 changed files with 5 additions and 4 deletions

View File

@@ -231,7 +231,8 @@ public class Line : View, IOrientation
pos, pos,
length, length,
Orientation, Orientation,
Style Style,
GetAttributeForRole(VisualRole.Normal)
); );
return true; return true;

View File

@@ -78,8 +78,8 @@ public class Wizard : Dialog
IsDefault = true IsDefault = true
}; };
//// Add a horiz separator // Add a horiz separator
var separator = new Line { Orientation = Orientation.Horizontal, X = -1, Y = Pos.Top (BackButton) - 1, Length = Dim.Fill(-1)}; var separator = new Line { Orientation = Orientation.Horizontal, X = -1, Y = Pos.Top (BackButton) - 1, Length = Dim.Fill (-1) };
base.Add (separator); base.Add (separator);
AddButton (BackButton); AddButton (BackButton);
@@ -301,7 +301,7 @@ public class Wizard : Dialog
if (previous is { }) if (previous is { })
{ {
return GoToStep (previous); return GoToStep (previous);
} }
return false; return false;