diff --git a/Terminal.Gui/Drivers/DriverImpl.cs b/Terminal.Gui/Drivers/DriverImpl.cs index 1a921fecc..f3186ac89 100644 --- a/Terminal.Gui/Drivers/DriverImpl.cs +++ b/Terminal.Gui/Drivers/DriverImpl.cs @@ -206,11 +206,7 @@ internal class DriverImpl : IDriver public bool SupportsTrueColor => true; /// - bool IDriver.Force16Colors - { - get => _instanceForce16Colors || !SupportsTrueColor; - set => throw new InvalidOperationException ("Force16Colors is read-only per driver instance. Set Terminal.Gui.Drivers.Driver.Force16Colors static property before driver creation."); - } + public bool Force16Colors => _instanceForce16Colors || !SupportsTrueColor; /// public bool GetForce16Colors () => _instanceForce16Colors || !SupportsTrueColor; diff --git a/Terminal.Gui/Drivers/IDriver.cs b/Terminal.Gui/Drivers/IDriver.cs index 26ec56a7e..b6c80ce22 100644 --- a/Terminal.Gui/Drivers/IDriver.cs +++ b/Terminal.Gui/Drivers/IDriver.cs @@ -93,8 +93,12 @@ public interface IDriver /// Will be forced to if is /// , indicating that the cannot support TrueColor. /// + /// + /// This property is read-only. To change the Force16Colors setting, set + /// Terminal.Gui.Drivers.Driver.Force16Colors before creating the driver instance. + /// /// - bool Force16Colors { get; set; } + bool Force16Colors { get; } /// /// Gets whether the is using 16 colors instead of TrueColors.