Iconeditor

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
MrSpock
Posts: 14
Joined: Thu Mar 02, 2023 6:25 pm

Iconeditor

Post by MrSpock »

Hello,
Please extend the icon editor to 32 pixels in version 9.1.0 and allow transparency.
MrSpock
Posts: 14
Joined: Thu Mar 02, 2023 6:25 pm

Re: Iconeditor

Post by MrSpock »

Pushed!
When I select large buttons, I also want to have corresponding icons.
Up to version 8.xx this was also possible.
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Iconeditor

Post by bbadmin »

TextPad 9's toolbar buttons are created from SVG images so we'll enable custom images to be imported from SVG files in the next release. These can be created using 3rd party tools such as Inkscape.
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Iconeditor

Post by bbadmin »

SVG images can now be used in TextPad 9.2.
MrSpock
Posts: 14
Joined: Thu Mar 02, 2023 6:25 pm

Re: Iconeditor

Post by MrSpock »

And how?
If I use Preferences » View it is impossible to use an own icon.
Attachments
Capture_2023-04-02_0001.png
Capture_2023-04-02_0001.png (16.13 KiB) Viewed 4009 times
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Iconeditor

Post by bbadmin »

The installer should have created a file called CustomIcons.svg in folder %APPDATA%\Helios\TextPad\9. To workaround that, create the file yourself containing these lines:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><svg width="32" height="32">
<svg id="blank" width="32" height="32" version="1.1" viewBox="0 0 32 32" x="0" y="0" xmlns="http://www.w3.org/2000/svg">
<rect width="32" height="32" style="stroke:black;fill:none" />
</svg></svg>
Will look into the reason this was not created automatically.
MrSpock
Posts: 14
Joined: Thu Mar 02, 2023 6:25 pm

Re: Iconeditor

Post by MrSpock »

OK, a second install and the file will be created.
Now it is possible to import a svg-file but is nothing to see. The imported svg-file shows an arrow but it is white (see attachment).
In the explorer-preview appears "Some items have been blocked so that the sender cannot identify your computer."
Attachments
Capture_2023-04-03_0001.png
Capture_2023-04-03_0001.png (15.72 KiB) Viewed 3992 times
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Iconeditor

Post by bbadmin »

I don't understand the "sender cannot identify your computer" issue.

Here's a SVG you can try. It draws a red down arrow.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<svg width="32" height="32" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
 <polygon transform="matrix(1.6 0 0 1.6 .026 0)"
 points="11 0 9 0 9 16.172 2.929 10.101 1.515 11.515 10 20 10.707 19.293 18.485 11.515 17.071 10.101 11 16.172" fill="#ff0000"/>
</svg>
MrSpock
Posts: 14
Joined: Thu Mar 02, 2023 6:25 pm

Re: Iconeditor

Post by MrSpock »

Good, the example works. But a *.png which was "converted" with Inkscape into a *.svg does not work.
In my opinion it was not a good decision to use *.svg. After all I have read about it, there is hardly a format that is less regulated than for example *.png.
Please show me how to convert the attachment into a textpad compliant icon.
Attachments
Autoit_hilfe.png
Autoit_hilfe.png (2.73 KiB) Viewed 3969 times
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Iconeditor

Post by bbadmin »

It doesn't really make sense to convert a raster image to SVG, even if it's possible. All Inkscape does is to embed the PNG data with a special tag which TextPad does not recognise. It supports 16x16 bitmaps for backwards compatibility, but now uses SVG so that the icons scale well for high resolution displays. I'll forward an enhancement request for handling embedded PNG data.
Post Reply