Hi Marcel,<br>
<br>
> aMorph setProperty: #noUserInterfaceTheme toValue: true.<br>
<br>
That's a nice hook. :-)<br>
<br>
> You now have to figure out the morphs you want to skip. For example, you cannot just change #setWindowColor: because that is also used programmatically<br>
<br>
How would you think about an indirection via #setWindowColorFromHalo: in SystemWindow>>#changeColor? :-)<br>
<br>
Best,<br>
Christoph<br>
<br>
<font color="#808080">---<br>
</font><font color="#808080"><i>Sent from </i></font><font color="#808080"><i><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><u><font color="#808080">Squeak Inbox Talk</font></u></a></i></font><br>
<br>
On 2022-02-07T21:15:48+01:00, marcel.taeumel@hpi.de wrote:<br>
<br>
> >  Should we also make any efforts to preserve custom window colors as well?<br>
> <br>
> No. Things that are controlled by the UI theme are meant to be reset all over the place. The only way you have is to set<br>
> <br>
> aMorph setProperty: #noUserInterfaceTheme toValue: true.<br>
> <br>
> Then that morph will be ignored in the next update. You now have to figure out the morphs you want to skip. For example, you cannot just change #setWindowColor: because that is also used programmatically, maybe in the update process.<br>
> <br>
> Best,<br>
> Marcel<br>
> Am 06.02.2022 19:14:51 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:<br>
> Thank you very much! Should we also make any efforts to preserve custom window colors as well? Sometimes I use them for distinguishing different windows (as some rough labels, "snippets" vs "upstream issues" vs "todo notes") ... :-)<br>
> <br>
> Best,<br>
> Christoph<br>
> Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org><br>
> Gesendet: Donnerstag, 27. Januar 2022 12:08:16<br>
> An: squeak-dev at lists.squeakfoundation.org; packages at lists.squeakfoundation.org<br>
> Betreff: [squeak-dev] The Trunk: Morphic-mt.1860.mcz<br>
>  <br>
> Marcel Taeumel uploaded a new version of Morphic to project The Trunk:<br>
> http://source.squeak.org/trunk/Morphic-mt.1860.mcz [http://source.squeak.org/trunk/Morphic-mt.1860.mcz]<br>
> <br>
> ==================== Summary ====================<br>
> <br>
> Name: Morphic-mt.1860<br>
> Author: mt<br>
> Time: 27 January 2022, 12:08:10.671541 pm<br>
> UUID: 1e06e708-c328-da42-9f3d-a8cbc99ea089<br>
> Ancestors: Morphic-mt.1859<br>
> <br>
> Tweaks Morphic-mt.1859 a little bit more to preserve *all* custom window titles when changing UI themes or scale factors.<br>
> <br>
> =============== Diff against Morphic-mt.1859 ===============<br>
> <br>
> Item was changed:<br>
>   ----- Method: StringMorph>>acceptContents (in category 'editing') -----<br>
>   acceptContents<br>
>          "The message is sent when the user hits enter or Cmd-S. Accept the current contents and end editing. This default implementation updates the model's known window title for pluggable windows."<br>
>  <br>
>          self containingWindow ifNotNil: [:wnd |<br>
> +                wnd setLabel: self contents. "Needed for models that do not accept changes."<br>
>                  (wnd respondsTo: #getLabelSelector) ifTrue: [<br>
>                          wnd getLabelSelector ifNotNil: [:selector |<br>
>                                  | mutator |<br>
>                                  mutator := selector asSimpleSetter.<br>
>                                  (wnd model respondsTo: mutator) ifTrue: [<br>
>                                          wnd model perform: mutator with: self contents]]]]!<br>
> <br>
> Item was changed:<br>
> + (PackageInfo named: 'Morphic') postscript: '"Fixes custom edits that were not propagated properly to pluggable windows."<br>
> + StringMorph allInstances do: [:ea | ea acceptContents].'!<br>
> - (PackageInfo named: 'Morphic') postscript: '"Fix missing command key shortcuts such as [cmd]+[+/-] for scale changes."<br>
> - Project allMorphicProjects do: [:p | p world initializeDesktopCommandKeySelectors].<br>
> -<br>
> - "New ''scale factor'' menu"<br>
> - TheWorldMainDockingBar updateInstances.<br>
> -<br>
> - "Enable ''Enclose selection with brackets'' by default (Morphic-mt.1812)"<br>
> - TextEditor encloseSelection: true.'!<br>
> <br>
> <br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220207/b9826ee8/attachment.html><br>
> <br>