mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 00:46:39 +01:00
Doing the fix in the MessageBox instead on the scenario.
This commit is contained in:
@@ -290,6 +290,12 @@ namespace Terminal.Gui {
|
|||||||
|
|
||||||
if (useErrorColors) {
|
if (useErrorColors) {
|
||||||
d.ColorScheme = Colors.Error;
|
d.ColorScheme = Colors.Error;
|
||||||
|
border.BorderBrush = Colors.Error.Normal.Foreground;
|
||||||
|
border.Background = Colors.Error.Normal.Background;
|
||||||
|
} else {
|
||||||
|
d.ColorScheme = Colors.Dialog;
|
||||||
|
d.Border.BorderBrush = Colors.Dialog.Normal.Foreground;
|
||||||
|
d.Border.Background = Colors.Dialog.Normal.Background;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ustring.IsNullOrEmpty (message)) {
|
if (!ustring.IsNullOrEmpty (message)) {
|
||||||
|
|||||||
@@ -143,18 +143,6 @@ namespace UICatalog.Scenarios {
|
|||||||
X = Pos.Right (label) + 1,
|
X = Pos.Right (label) + 1,
|
||||||
Y = Pos.Top (label),
|
Y = Pos.Top (label),
|
||||||
};
|
};
|
||||||
styleRadioGroup.SelectedItemChanged += e => {
|
|
||||||
switch (e.SelectedItem) {
|
|
||||||
case 0:
|
|
||||||
border.BorderBrush = Colors.Dialog.Normal.Foreground;
|
|
||||||
border.Background = Colors.Dialog.Normal.Background;
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
border.BorderBrush = Colors.Error.Normal.Foreground;
|
|
||||||
border.Background = Colors.Error.Normal.Background;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
frame.Add (styleRadioGroup);
|
frame.Add (styleRadioGroup);
|
||||||
|
|
||||||
var ckbEffect3D = new CheckBox ("Effect3D", true) {
|
var ckbEffect3D = new CheckBox ("Effect3D", true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user