FORM theme
FORM theme : Text
| Parameter | Type | Description | |
|---|---|---|---|
| Function result | Text | ← | Theme used by the current form:
|
History
| Release | Changes |
|---|---|
| 21 R3 | Support of LiquidGlass on macOS |
| 21 R2 | Added |
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 number | 1832 |
| Thread safe | no |