Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 2.02 KB

overview.md

File metadata and controls

25 lines (16 loc) · 2.02 KB

Radiance look and feel - painters overview

A Radiance painter encapsulates common painting logic. For example, in Radiance selected elements in lists, tables, trees and menus are painted with the same gradients. Instead of replicating this code across different UI delegates, it is extracted into a common painter. In addition to code reuse, it:

  • Makes it easier to tweak an existing painting sequence.
  • Lets applications to specify a custom (branding) painter which is applied to all relevant controls.
  • Lets applications and third-party developers to provide consistent appearance of custom components without locking themselves to low-level implementation details of Radiance.

Radiance uses five types of painters which are used on different types of controls and window areas. The core library bundles a number of painter implementations which are available as officially supported APIs. Interested applications can also create custom implementation of the relevant painter interfaces and combine them together in a skin that creates a unique visual appearance based on the specific design requirements.

Painter types

Radiance uses the following painter types:

The vast majority of Radiance visuals are painted by using these painters. The links above provide more technical information on how to specify custom painters and how to use them to paint custom components and window areas. Applications that wish to provide consistent appearance under different Radiance skins are strongly encouraged to use the published painter APIs, even if it results in tying the application code to Radiance.

Painting custom components

The Radiance painting layer provides a convenient API for the applications that wish to paint custom components in a way that is consistent with other Radiance visuals. More information can be found in the skinning primer.