[squeak-dev] The Trunk: Morphic-mt.1860.mcz
Christoph.Thiede at student.hpi.uni-potsdam.de
Sun Feb 6 18:14:41 UTC 2022
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") ... :-)
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Donnerstag, 27. Januar 2022 12:08:16
An: squeak-dev at lists.squeakfoundation.org; packages at lists.squeakfoundation.org
Betreff: [squeak-dev] The Trunk: Morphic-mt.1860.mcz
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
==================== Summary ====================
Time: 27 January 2022, 12:08:10.671541 pm
Tweaks Morphic-mt.1859 a little bit more to preserve *all* custom window titles when changing UI themes or scale factors.
=============== Diff against Morphic-mt.1859 ===============
Item was changed:
----- Method: StringMorph>>acceptContents (in category 'editing') -----
"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."
self containingWindow ifNotNil: [:wnd |
+ wnd setLabel: self contents. "Needed for models that do not accept changes."
(wnd respondsTo: #getLabelSelector) ifTrue: [
wnd getLabelSelector ifNotNil: [:selector |
| mutator |
mutator := selector asSimpleSetter.
(wnd model respondsTo: mutator) ifTrue: [
wnd model perform: mutator with: self contents]]]]!
Item was changed:
+ (PackageInfo named: 'Morphic') postscript: '"Fixes custom edits that were not propagated properly to pluggable windows."
+ StringMorph allInstances do: [:ea | ea acceptContents].'!
- (PackageInfo named: 'Morphic') postscript: '"Fix missing command key shortcuts such as [cmd]+[+/-] for scale changes."
- Project allMorphicProjects do: [:p | p world initializeDesktopCommandKeySelectors].
- "New ''scale factor'' menu"
- TheWorldMainDockingBar updateInstances.
- "Enable ''Enclose selection with brackets'' by default (Morphic-mt.1812)"
- TextEditor encloseSelection: true.'!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev