pharo-graphics / Toplo

A widget framework on top of Bloc
MIT License
17 stars 8 forks source link

Root style not applied without children blElement #76

Open labordep opened 8 months ago

labordep commented 8 months ago

To reproduce :

Theme :

ToMyDarkTheme>>defaultStampList
"..."
ToStyleStamp name: #'background-color' value: Color blue
"..."

StyleSheet :

rootPaneRules

    ^ { ((self id: #'Space root') style: [ :sr |
           sr
               write: (self property: #background)
               with: [ :e | e stampValue: #'background-color' ] ]) }

UI code :

| space |
    space := BlSpace new.
    space toTheme: ToMyDarkTheme new.

    space show.
    ^ space

The background of the root not changed. But when I add a BlElement into the root, the background is changed.

labordep commented 8 months ago

Concern SteelSheet branch of course.