I would like to know how to change the main Pharo window icon.
DisplayScreen class�� >> primitiveWindowTitle:string:
Hi Aliaksei,Hang on.�� Changing a window's icon is not at all the same as changing the VM's icon.�� Which are we talking about here?�� I thought we were talking about changing the VM icon.AlexWell, Windows is still Windows at the core.Even some Windows 2.0 books can provide insights into its working principles that are hard to find these days.Anyway, I remember that there is a way to change the icon at runtime but not when listing the exe. Hence Resource editor.PhilOn Feb 2, 2018 21:17, "Stephane Ducasse" <stepharo.self@gmail.com> wrote:Yes I did that when I was at University. So clearly dated.
On Fri, Feb 2, 2018 at 8:40 PM, phil@highoctane.be <phil@highoctane.be> wrote:
> For Windows one can change it using a resource editor.
>
> http://www.angusj.com/resourcehacker/
>
> Phil
>
> On Feb 2, 2018 20:33, "Stephane Ducasse" <stepharo.self@gmail.com> wrote:
>>
>> Would it be possible to change the icon without having to compile a new
>> VM?
>> To me the current setup looks so monolithic and dated.
>> I would expect that somebody can deploy a application with its own
>> logo by just providing some new resources.
>>
>> Stef
>>
>> On Wed, Jan 31, 2018 at 11:17 PM, Eliot Miranda <eliot.miranda@gmail.com>
>> wrote:
>> > Hi Vincent,
>> >
>> > On Wed, Jan 31, 2018 at 12:07 PM, <Vincent.Blondeau@lamresearch.com >
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> I would like to know how to change the main Pharo window icon. I saw
>> >> that
>> >> there is a primitive for the title:
>> >> DisplayScreen class�� >> primitiveWindowTitle:string: ; primitive:
>> >> 'primitiveHostWindowTitle' module:'HostWindowPlugin'
>> >> but I cannot find one for the icon.
>> >> Should another primitive need to be implemented?
>> >
>> >
>> > The icon is baked into the VM executable.�� So to change it one has to
>> > build
>> > a VM with a different icon.
>> >
>> > On Windows it is in
>> >�� �� ��{build.win32x86,build.win64x64}/pharo.cog.spur/Pharo.ico
>> > and the file that specifies to use Pharo.ico is
>> >�� �� ��{build.win32x86,build.win64x64}/pharo.cog.spur/Pharo.rc
>> >
>> > On Mac OS X it is in
>> >�� �� ��platforms/iOS/vm/OSX/Pharo.icns
>> > (alongside three others such as PharoImage.icns)
>> > and the file that specifies to use Pharo.icns is
>> >�� �� ��{build.macos32x86,build.macos64x64}/pharo.cog.spur/Makefile
>> > in setting the VM variable.�� The file that associates the other icons
>> > with
>> > specific file types is
>> >�� �� ��platforms/iOS//vm/OSX/Pharo-Info.plist
>> >
>> > If you're changing the Pharo icon let me suggest you update the icon
>> > files
>> > themselves in the opensmalltalk-vm source tree.
>> >
>> > If you're creating a new variant of the VM for some new purpose (say a
>> > special Lam VM) then let me suggest you add the icons to the
>> > opensmalltalk-vm source tree, creating special build directories for
>> > these
>> > VMs, such as {build.macos32x86,build.macos64x64}/lam.pharo.cog.spur/
>> >
>> > If you want to do this privately, then take either of the approaches
>> > above
>> > and simply don't publish the edits.�� You can write a script that takes
>> > an
>> > updated checked-out opensmalltalk-vm source tree and edits it with files
>> > from a specific repository.�� I have such scripts and can help you with
>> > them.
>> > Hint, pax is a very convenient directory hierarchy copying tool
>> > available at
>> > least on Mac OS X.�� pax -rwlk will copy the trees under a sequence of
>> > directories into their corresponding places in a target tree.
>> >
>> >>
>> >> Thanks!
>> >>
>> >> Vincent
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > _,,,^..^,,,_
>> > best, Eliot
>>
>
--Cheers,Alex