Package com.onec.ui
Class UiLayoutBuilder.ShellBuilder
java.lang.Object
com.onec.ui.UiLayoutBuilder.ShellBuilder
- Enclosing class:
UiLayoutBuilder
Builds the
ShellConfig — this layout's navigation presentation and
BrandingConfig (app name, logo, favicon, brand palette).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplicit application name, shown in the shell instead of the profile title.dark(Consumer<UiLayoutBuilder.PaletteBuilder> overrides) Override brand colors for dark mode (only the set slots; the rest keep the default scale).Favicon (URL or served asset) the web client installs at runtime.light(Consumer<UiLayoutBuilder.PaletteBuilder> overrides) Override brand colors for light mode (only the set slots; the rest keep the default scale).Logo image (URL or served asset) rendered in the sidebar header and mobile menu.Logo with a distinct dark-mode variant.logoHeight(int height) Fixed logo height in dp; unset keeps each surface's default (sidebar 28, mobile menu 32).logoSize(int width, int height) Fixed logo box in dp.logoWidth(int width) Fixed logo width in dp; unset keeps the intrinsic aspect ratio (wrap_content).Nav presentation for this layout's viewport.
-
Constructor Details
-
ShellBuilder
public ShellBuilder()
-
-
Method Details
-
brand
Explicit application name, shown in the shell instead of the profile title. -
logo
Logo image (URL or served asset) rendered in the sidebar header and mobile menu. -
logo
Logo with a distinct dark-mode variant. -
logoWidth
Fixed logo width in dp; unset keeps the intrinsic aspect ratio (wrap_content). -
logoHeight
Fixed logo height in dp; unset keeps each surface's default (sidebar 28, mobile menu 32). -
logoSize
Fixed logo box in dp. Withscale: fitthe mark stays uncropped within it. -
favicon
Favicon (URL or served asset) the web client installs at runtime. -
light
Override brand colors for light mode (only the set slots; the rest keep the default scale). -
dark
Override brand colors for dark mode (only the set slots; the rest keep the default scale).