mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Made Line use GetAttributeForRole
This commit is contained in:
@@ -231,7 +231,8 @@ public class Line : View, IOrientation
|
|||||||
pos,
|
pos,
|
||||||
length,
|
length,
|
||||||
Orientation,
|
Orientation,
|
||||||
Style
|
Style,
|
||||||
|
GetAttributeForRole(VisualRole.Normal)
|
||||||
);
|
);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user