package com.codename1.ui.plaf
Look of the application can be fully customized via this package, it represents a rendering layer that can be plugged in separately in runtime and themed to provide any custom look. Unlike the Swing PLAF this layer does not support any aspect of “feel” as in event handling etc. since these aspects would require a much bigger and more elaborate layer unfit for small device OTA delivery.
Sizes of components are also calculated by the com.codename1.ui.plaf.LookAndFeel
since the size is very much affected by the look of the application e.g. the thickness
of the border and the font sizes.
Types
class Border | Base class that allows us to render a border for a component, a border is drawn before the component and is drawn within the padding region of the component. |
class CSSBorder | A border that can be configured using a limited subset of CSS directives. |
class CSSFilterParser | Runtime parser for CSS filter: / backdrop-filter: chains. |
class DefaultLookAndFeel | Used to render the default look of Codename One |
class GlassRecipe | A typed, named recipe for the “Liquid Glass” backdrop materials (iOS 26). |
class LookAndFeel | Allows a UI developer to completely customize the look of the application by overriding drawing/sizing methods appropriately. |
class RoundBorder | A border that can either be a circle or a circular rectangle which is a rectangle whose sides are circles. |
class RoundRectBorder | Customizable rounded rectangle border that breaks down the border into customizable pieces. |
class Style | Represents the look of a given component: colors, fonts, transparency, margin and padding & images. |
class StyleParser | Parses Style strings into StyleInfo objects, which can be converted to Style objects at runtime. |
class UIManager | Central point singleton managing the look of the application, this class allows us to customize the styles (themes) as well as the look instance. |