Skip to main content
Version: Next

FORM theme

FORM theme : Text

ParameterTypeDescription
Function resultTextTheme used by the current form:
  • Windows: "Classic" or "FluentUI"
  • macOS: "Classic" or "LiquidGlass"
History
ReleaseChanges
21 R3Support of LiquidGlass on macOS
21 R2Added

Description

The FORM theme command returns the OS interface theme rendered for the current form: "FluentUI" (Windows), "LiquidGlass" (macOS), or "Classic" (all platforms).

If there is no current form, FORM theme returns an empty string.

Windows

The Windows form rendering theme can be defined at application level and/or at form level (where it can be inherited or explicitely defined), and also depends on the availability of specific Microsoft libraries on the current machine at runtime. This command allows you to know which form theme is currently running.

macOS

As of version 21 R3, 4D and 4D Server run natively under Liquid Glass interface on macOS 26 Tahoe. This rendering is automatically used and cannot be disabled, except in engine-based applications as a transitional measure to give developers additional time to adapt their forms (see Apple's documentation about the "UIDesignRequiresCompatibility" Info.plist file key).

See also

Fluent UI rendering
(blog post) Deploy Fluent UI effortlessly in your 4D applications
(blog post) The new macOS Tahoe design comes to your 4D applications

Properties

Command number1832
Thread safeno