Page 14 of 18
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Sat Jun 11, 2016 12:57 pm
by Little John
walbus wrote:Very good work...
Thank you.
Current changes
- Added macros DrawCloud and DrawBalloon by davido.
- Added icons Rain Cloud and Cloud Storage by davido.
Thank you, davido!
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Sun Jul 10, 2016 6:27 am
by Oma
Hi!
Some new icons have been accumulated - too much to post the code here.
Some simple new flate ones, some are spatial updates of existing flat icons from me (Document icons) and John's magnifying glass.
For the new (more "designed")
document icons, 2 macros are delivered. One with
round corners and one with a style similar to the
writing-pad spatial-icon. Use the more pleasing design by commenting out the other "DocuSheet_Spatial()" macro.
The "Compare_Spatial" needed a little workaround for window, due to some inaccuracies on drawing. Nevertheless, they don't look quite the same.
The (more) flat set (maybe for Icon set 1):
- UnfoldDown
- UnfoldUp/Eject
- UnfoldLeft
- UnfoldRight
- FoldDown
- FoldUp
- FoldLeft
- FoldRight
- ArrowBowTop2Right
- ArrowBowRight2Bottom
- ArrowBowBottom2Left
- ArrowBowLeft2Top
- ArrowBowBottom2Right
- ArrowBowRight2Top
- ArrowBowTop2Left
- ArrowBowLeft2Bottom
- BracketRoundOpen
- BracketRoundClose
- BracketSquareOpen
- BracketSquareClose
- BracketAngleOpen
- BracketAngleClose
- BracketCurlyOpen
- BracketCurlyClose
- BracketHtml
- Site
- Compare
The more spatial ones (maybe for Icons set 2):
- ToClipboardSpatial
- FromClipboardSpatial
- CopySpatial
- PasteSpatial
- CutSpatial
- FindSpatial
- FindNextSpatial
- FindAndReplaceSpatial
- ZoomInSpatial
- ZoomOutSpatial
- NewDocumentSpatial
- EditDocumentSpatial
- ClearDocumentSpatial
- ImportDocumentSpatial
- ExportDocumentSpatial
- SaveDocumentSpatial
- CloseDocumentSpatial
- SortAscendingSpatial
- SortDescendingSpatial
- SortBlockAscendingSpatial
- SortBlockDescendingSpatial
- SiteSpatial
- CompareSpatial
Again a little preview until they're integrated ...

Have a nice Sunday, Charly
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Sun Jul 17, 2016 6:46 pm
by Little John
Hi Charly,
thank you so much for your recent contribution, which again contains excellent and IMHO professional looking icons!
Please excuse my delay in replying, I'm currently pretty busy.
I've just updated the icon collection:
- Added 3 color definitions by Oma.
- Added public utility procedure Color_Transparency() by Oma.
- Added 34 icon procedures by Oma.
- Small improvements of the iconbrowser GUI.
Oma wrote:For the new (more "designed") document icons, 2 macros are delivered. One with round corners and one with a style similar to the writing-pad spatial-icon. Use the more pleasing design by commenting out the other "DocuSheet_Spatial()" macro.
I like both styles.

And I wanted to show all icons concerned in both styles in the icon browser, and in the preview picture here on the forum.
So I renamed one of the
DocuSheet_Spatial() macros, and added an optional parameter to each of the 11 procedures concerned, so that one of the styles can be chosen at runtime. Is that OK with you?
Thanks again!
BTW: Your magnifying glass icons look very good on Linux (like on the picture in your previous post), but unfortunately they look somewhat "dirty" on Windows.

(I don't know the reason why.)
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Sun Jul 17, 2016 8:53 pm
by davido
@Oma,
Another large set of professional looking icons. Very nice.
The magnifying glass icons look the same on my MacBook as they do in the picture on your post.
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Tue Jul 19, 2016 8:12 pm
by Oma
Thank you again for your feedback and your kind words.
I also realized the 'creepy' appearance of some icons on Windows

(it's not PureBasics fault).
Maybe an individual improvement is possible here, but i'm sure they will never look the same as on Linux / Mac until the cairo-machine will be improved on Windows.
Little John wrote:So I renamed one of the DocuSheet_Spatial() macros ... Is that OK with you?
Of course and thanks for doing so.
I hope that autumn and winter let the time to fill the gaps in some icon-themes and optimize some of them for practical use. And create some matching counterparts in flat or spatial design.
Best regards, Charly
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Wed Jul 20, 2016 9:20 am
by Little John
Current changes
- The built-in command AddPathArc() now will only be replaced by a macro in PB versions <= 5.42, because the bug in question has been fixed in PB 5.50 (and will very probably be fixed in PB 5.43, too).
- Added file "example - create PNG file.pb".
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Wed Jul 20, 2016 10:34 am
by RSBasic
The many icons are very good. Thank you

What are the license terms for use of icons?
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Wed Jul 20, 2016 1:01 pm
by Little John
RSBasic wrote:What are the license terms for use of icons?
Good question.

I'll have to discuss it with all contributors.
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Wed Jul 20, 2016 8:08 pm
by davido
Hi Little John,
Licence what licence!
I've had so much help from members on this forum, I could never pay them back.
So any one who finds any of my icons useful; they are yours to do whatever you wish with 'em.
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Thu Aug 18, 2016 1:57 pm
by captain_skank
This is a really nice project and i'd like to thank everyone who has contributed.
A question though - is anyone using tools to 'draw' their icons or are they doing it by hand coding them ??
Cheers
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Thu Aug 18, 2016 8:32 pm
by davido
captain_skank wrote:
A question though - is anyone using tools to 'draw' their icons or are they doing it by hand coding them ??
Cheers
Thank you for your kind words.
I draw mine on a 32x32 matrix and then attempt to code them - trial and error, really.
These are two good attempts at making tools:
http://www.purebasic.fr/english/viewtop ... 23#p487423
http://www.purebasic.fr/english/viewtop ... 01#p486701
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Mon Oct 31, 2016 3:40 pm
by collectordave
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Tue Nov 08, 2016 10:26 am
by collectordave
Hi All
As I am doing a little programme to draw icons I needed a spanner so tried my hand at designing one here is the code as a procedure
Code: Select all
Procedure Spanner( x,y,Radius,Filled,Rotation=0)
InnerRadius = Radius * 0.15
OuterRadius = Radius * 0.3
y1 = y - (Radius * 0.73)
y2 = y + (Radius * 0.73)
SaveVectorState()
RotateCoordinates(x,y,Rotation)
AddPathCircle(x, y1, OuterRadius, 110, 245)
AddPathCircle(x, y1, InnerRadius, 150, 30,#PB_Path_CounterClockwise|#PB_Path_Connected )
AddPathCircle(x, y1, OuterRadius, 295, 70,#PB_Path_Connected)
AddPathCircle(x, y2, OuterRadius, 290, 65,#PB_Path_Connected)
AddPathCircle(x, y2, InnerRadius, 330, 210,#PB_Path_CounterClockwise|#PB_Path_Connected)
AddPathCircle(x, y2, OuterRadius, 115, 250,#PB_Path_Connected)
ClosePath()
RestoreVectorState()
If Filled = #True
FillPath()
Else
StrokePath(Radius * 0.01)
EndIf
EndProcedure
Hope it of some use
cd
Re: Create your own icons for toolbars etc. with PureBasic
Posted: Wed Feb 01, 2017 10:58 pm
by Andre
Will there be an updated package - containing the latest contributions / examples - in the near future?
Thank you a lot for your hard work!

Re: Create your own icons for toolbars etc. with PureBasic
Posted: Sat Feb 04, 2017 8:40 am
by collectordave
I am using the vectoricon designer from here
http://www.purebasic.fr/english/viewtop ... 12&t=65607 now. Just need to find a way to post the database of icons, thinking of using github but not sure yet.
I have also reproduced a lot of the icons allready just need to get my head round the vectorsource gradient bits to get the "spatial" icons in there.
Regards
cd