DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IThemeListener

    Provides information about the application theme.

    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IThemeListener

    Properties

    ActualAppTheme

    Gets the actual theme applied in the app.

    Declaration
    ApplicationTheme ActualAppTheme { get; }
    Property Value
    Type Description
    ApplicationTheme

    CurrentAppTheme

    Gets the current app theme defined in the app settings.

    Declaration
    AvailableApplicationTheme CurrentAppTheme { get; }
    Property Value
    Type Description
    AvailableApplicationTheme

    CurrentSystemTheme

    Gets the current operating system theme.

    Declaration
    AvailableApplicationTheme CurrentSystemTheme { get; }
    Property Value
    Type Description
    AvailableApplicationTheme

    IsCompactMode

    Gets a value indicating whether the UI should be in compact mode.

    Declaration
    bool IsCompactMode { get; }
    Property Value
    Type Description
    bool

    IsHighContrast

    Gets a value indicating whether the current theme is high contrast.

    Declaration
    bool IsHighContrast { get; }
    Property Value
    Type Description
    bool

    UserIsCompactModePreference

    Gets a value indicating whether the customer wish to be in compact mode.

    Declaration
    bool UserIsCompactModePreference { get; }
    Property Value
    Type Description
    bool

    Methods

    ApplyDesiredColorTheme()

    Change the color theme of the app based on CurrentSystemTheme and CurrentAppTheme.

    Declaration
    void ApplyDesiredColorTheme()

    Events

    ThemeChanged

    Raised when the theme has changed.

    Declaration
    event EventHandler? ThemeChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys