pd-ui7: Rework the Theme Api #2

Open
opened 2025-02-28 13:13:17 +01:00 by tobid7 · 0 comments
Owner

Problem

Currently, the Theme Api is not using the SmartCtor Api and is linked in the UI7::Context. This makes it more difficult to simply edit some stuff

Solution

To Ensure the Access to the Theme is working as expected the Theme should be shared/linked to the Menu and DrawList
Make UI7Color a Class to accept UI7Color_ as well as u32 colors

Next

  • Take a look at the Theme class and make it public SmartCtor<Theme>
  • Rework UI7Color to a class
  • Share Theme from Context with the Menus
## **Problem** Currently, the **Theme Api** is not using the **SmartCtor Api** and is linked in the *`UI7::Context`*. This makes it more difficult to simply edit some stuff ## **Solution** To Ensure the **Access** to the **Theme** is working as expected the **Theme** should be **shared/linked** to the **Menu** and **DrawList** Make **UI7Color** a **Class** to accept **`UI7Color_`** as well as **`u32`** colors ## **Next** - Take a look at the Theme class and make it `public SmartCtor<Theme>` - Rework UI7Color to a class - Share Theme from Context with the Menus
tobid7 added the
Kind/Enhancement
Compat/Breaking
Priority
High
labels 2025-02-28 13:13:17 +01:00
tobid7 self-assigned this 2025-02-28 13:13:17 +01:00
tobid7 added reference development 2025-03-06 08:37:43 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tobid7/palladium#2
No description provided.