From e48b867e7e56dfd7c17d8367e5129dc05ff115e7 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Mon, 15 Feb 2021 10:41:15 -0700 Subject: [PATCH] Added indication of which driver is in use to status bar --- UICatalog/UICatalog.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UICatalog/UICatalog.cs b/UICatalog/UICatalog.cs index 12b37bf18..27f50c1e6 100644 --- a/UICatalog/UICatalog.cs +++ b/UICatalog/UICatalog.cs @@ -75,7 +75,7 @@ namespace UICatalog { _scenarios = Scenario.GetDerivedClasses ().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 menuItems = new List (); - 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];