Christoph Thiede uploaded a new version of Protocols to project The Trunk: http://source.squeak.org/trunk/Protocols-ct.87.mcz
==================== Summary ====================
Name: Protocols-ct.87 Author: ct Time: 19 June 2023, 4:39:48.046379 pm UUID: e694c77b-331f-3e46-ac97-5face4998266 Ancestors: Protocols-ct.86
Makes home icon in lexicon tools scale-factor-aware.
=============== Diff against Protocols-ct.86 ===============
Item was changed: ----- Method: Lexicon>>addSpecialButtonsTo:with: (in category 'toolbuilder') ----- addSpecialButtonsTo: buttonPanelSpec with: builder
| homeCatBtnSpec menuBtnSpec mostGenericBtnSpec | homeCatBtnSpec := builder pluggableButtonSpec new model: self; action: #showHomeCategory; + label: MenuIcons smallHomeIcon scaleIconToDisplay; - label: MenuIcons smallHomeIcon; help: 'show this method''s home category'; yourself. menuBtnSpec := builder pluggableButtonSpec new model: self; action: #offerMenu; label: (ScriptingSystem formAtKey: #TinyMenu) asMorph; help: 'click here to get a menu with further options'; yourself. mostGenericBtnSpec :=builder pluggableButtonSpec new model: self; action: #chooseLimitClass; label: #limitClassString; help: 'Governs which classes'' methods should be shown. If this is the same as the viewed class, then only methods implemented in that class will be shown. If it is ProtoObject, then methods of all classes in the vocabulary will be shown.'. buttonPanelSpec children add: homeCatBtnSpec; addFirst: mostGenericBtnSpec; addFirst: menuBtnSpec.!
Ha. We need to improve/add scale-factor support in PluggableButtonMorph. Would be nice to have this "like" fonts on buttons. So, no #scaleIconToDisplay in tool-builder methods but scale it later in an internal cache and invalidate that cache via #applyUserInterfaceTheme.
Best, Marcel
Am 19.06.2023 16:40:09 schrieb commits@source.squeak.org commits@source.squeak.org: Christoph Thiede uploaded a new version of Protocols to project The Trunk: http://source.squeak.org/trunk/Protocols-ct.87.mcz
==================== Summary ====================
Name: Protocols-ct.87 Author: ct Time: 19 June 2023, 4:39:48.046379 pm UUID: e694c77b-331f-3e46-ac97-5face4998266 Ancestors: Protocols-ct.86
Makes home icon in lexicon tools scale-factor-aware.
=============== Diff against Protocols-ct.86 ===============
Item was changed: ----- Method: Lexicon>>addSpecialButtonsTo:with: (in category 'toolbuilder') ----- addSpecialButtonsTo: buttonPanelSpec with: builder
| homeCatBtnSpec menuBtnSpec mostGenericBtnSpec | homeCatBtnSpec := builder pluggableButtonSpec new model: self; action: #showHomeCategory; + label: MenuIcons smallHomeIcon scaleIconToDisplay; - label: MenuIcons smallHomeIcon; help: 'show this method''s home category'; yourself. menuBtnSpec := builder pluggableButtonSpec new model: self; action: #offerMenu; label: (ScriptingSystem formAtKey: #TinyMenu) asMorph; help: 'click here to get a menu with further options'; yourself. mostGenericBtnSpec :=builder pluggableButtonSpec new model: self; action: #chooseLimitClass; label: #limitClassString; help: 'Governs which classes'' methods should be shown. If this is the same as the viewed class, then only methods implemented in that class will be shown. If it is ProtoObject, then methods of all classes in the vocabulary will be shown.'. buttonPanelSpec children add: homeCatBtnSpec; addFirst: mostGenericBtnSpec; addFirst: menuBtnSpec.!
squeak-dev@lists.squeakfoundation.org