Table of Contents

Interface ISystemSettingsHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to get different system settings.

public interface ISystemSettingsHandler : IDisposable

Properties

AppClassName

Gets or sets the application class name.

AppDisplayName

Gets or sets application name for the display purposes.

AppName

Gets or sets application name.

UseBestVisual

Gets or sets whether application will use the best visual on systems that support different visuals.

VendorDisplayName

Gets or sets the vendor display name.

VendorName

Gets or sets the vendor name.

Methods

CreateDisplayFactoryHandler()

Creates IDisplayFactoryHandler interface provider.

GetAppearanceIsDark()

Return true if the current system there is explicitly recognized as being a dark theme or if the default window background is dark.

GetAppearanceName()

Returns the name if available or empty string otherwise.

GetClassDefaultAttributesBgColor(ControlTypeId, ControlRenderSizeVariant)

Gets default value of the control background color.

GetClassDefaultAttributesFgColor(ControlTypeId, ControlRenderSizeVariant)

Gets default value of the control foreground color.

GetClassDefaultAttributesFont(ControlTypeId, ControlRenderSizeVariant)

Gets default value of the control font.

GetColor(KnownSystemColor)

Gets a standard system color.

GetLangDirection()

Gets language direction.

GetLibraryVersionString()

Gets library version.

GetMetric(SystemSettingsMetric)

Returns the value of a system metric, or -1 if the metric is not supported on the current system.

GetMetric(SystemSettingsMetric, Control?)

Returns the value of a system metric, or -1 if the metric is not supported on the current system.

GetPlatformKind()

Gets platform kind.

GetUIVersion()

Gets user interface version.

HasFeature(SystemSettingsFeature)

Returns true if the port has certain feature.

IsUsingDarkBackground()

Returns true if the background is darker than foreground. This is used by AppearanceIsDark if there is no platform-specific way to determine whether a dark mode is being used and is generally not very useful to call directly.

SetNativeTheme(string)

Allows runtime switching of the UI environment theme.

SetSystemOption(string, int)

Sets system option.

SetUseBestVisual(bool, bool)

Allows the programmer to specify whether the application will use the best visual on systems that support several visual on the same display.

SuppressBellOnError(bool)

Sets whether or not to supress bell on error.