ModernLayout
Window-level style mode with tighter spacing and glass-style outlines.
ModernLayout
ModernLayout is a window-level style mode enabled at creation time.
Create
local ModernWindow = WindUI:CreateWindow({
Title = "Modern Window",
Folder = "WindUI-Modern",
ModernLayout = true,
ElementsRadius = 24,
})What It Changes
- Uses a tighter default element padding (
10instead of13). - Uses larger default element corner radius (
23instead of12). - Uses compact tab spacing (
1instead of6) for tab content. - Uses glass-style outlines for several components (tabs, sections, multi sections, video).
- Recalculates element shapes for visual consistency.
Runtime
There is no dedicated runtime SetModernLayout(...) method; choose this mode when creating the window.