browser-theme-detector
Reactive icon

Browser Theme Detector

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 18 Dec (yesterday)
 by 
Eone Technologies
0.0
 (0 ratings)
browser-theme-detector

Browser Theme Detector

Documentation
1.0.0
  1. Download and Install
    Download and install the asset into your OutSystems environment using Forge.

  2. Consume the Web Block
    In the module where you want to detect the theme, consume the DetectTheme web block from the component.

  3. Place the Block
    Drag and drop the DetectTheme block onto the screen or layout where theme detection is required.

  4. Handle the Theme Change Event
    The block exposes a Client Event named ThemeOnChange.

    • This event provides a Boolean parameter: IsDark

      • IsDark = True → Browser theme is Dark.

      • IsDark = False → Browser theme is Light.