Added indication of which driver is in use to status bar

This commit is contained in:
Charlie Kindel
2021-02-15 10:41:15 -07:00
parent 78eb9df47c
commit e48b867e7e

View File

@@ -75,7 +75,7 @@ namespace UICatalog {
_scenarios = Scenario.GetDerivedClasses<Scenario> ().OrderBy (t => Scenario.ScenarioMetadata.GetName (t)).ToList ();
if (args.Length > 0 && args.Contains("-usc")) {
if (args.Length > 0 && args.Contains ("-usc")) {
_useSystemConsole = true;
args = args.Where (val => val != "-usc").ToArray ();
}
@@ -259,6 +259,7 @@ namespace UICatalog {
_top.LayoutSubviews();
_top.SetChildNeedsDisplay();
}),
new StatusItem (Key.CharMask, Application.Driver.GetType ().Name, null),
};
SetColorScheme ();
@@ -331,7 +332,7 @@ namespace UICatalog {
var index = 0;
List<MenuItem> menuItems = new List<MenuItem> ();
foreach (Enum diag in Enum.GetValues(_diagnosticFlags.GetType())) {
foreach (Enum diag in Enum.GetValues (_diagnosticFlags.GetType ())) {
var item = new MenuItem ();
item.Title = GetDiagnosticsTitle (diag);
item.Shortcut = Key.AltMask + index.ToString () [0];