Topics

Note Selector

Nebula RT Update Scratch

Tuesday, December 3, 2024

Consider a specific widget attribute:

Main Window/Titlebar/Tab Bar/Tabs/Text Label/Text Color

The above attribute belongs to the text labels of tabs present on the window's titlebar.

Let's use the following aliases when referring to the above attribute as either a widget attribute or a definition attribute:

Widget Attribute: WA:(Text Color)

Definition Attribute: DA:(Text Color)

WA:(Text Color) associates with DA:(Text Color) by privately storing a pointer to it. DA:(Text Color) is linked to Theme/Foreground.

What happens when the theme attribute is changed in the editor?

Process of Events after Changing the Color of a Theme Attribute

  1. User changes color in a color dialog and clicks the button labeled "Apply".
  2. The FColorDialog's color is set, and the FColorControl that spawned it also sets the color to its Fill.
  3. The FColorControl's Fill is linked to the FFillControl's Fill.
  4. The FFillControl's Fill is linked to the theme attribute.