Create your own icons for toolbars etc. with PureBasic

Share your advanced PureBasic knowledge/code with the community.
Little John
Addict
Addict
Posts: 3981
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Create your own icons for toolbars etc. with PureBasic

Post 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!
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
Oma
Enthusiast
Enthusiast
Posts: 312
Joined: Thu Jun 26, 2014 9:17 am
Location: Germany

Re: Create your own icons for toolbars etc. with PureBasic

Post 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 ...Image
Have a nice Sunday, Charly
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
Little John
Addict
Addict
Posts: 3981
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Create your own icons for toolbars etc. with PureBasic

Post 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.)
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
davido
Addict
Addict
Posts: 1841
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Create your own icons for toolbars etc. with PureBasic

Post 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.
DE AA EB
Oma
Enthusiast
Enthusiast
Posts: 312
Joined: Thu Jun 26, 2014 9:17 am
Location: Germany

Re: Create your own icons for toolbars etc. with PureBasic

Post by Oma »

Thank you again for your feedback and your kind words.
I also realized the 'creepy' appearance of some icons on Windows :cry: (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
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
Little John
Addict
Addict
Posts: 3981
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Create your own icons for toolbars etc. with PureBasic

Post 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".
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
RSBasic
Moderator
Moderator
Posts: 1119
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Create your own icons for toolbars etc. with PureBasic

Post by RSBasic »

The many icons are very good. Thank you Image
What are the license terms for use of icons?
ImageImageImageImage Image
Little John
Addict
Addict
Posts: 3981
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Create your own icons for toolbars etc. with PureBasic

Post 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.
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
davido
Addict
Addict
Posts: 1841
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Create your own icons for toolbars etc. with PureBasic

Post 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.
DE AA EB
User avatar
captain_skank
Enthusiast
Enthusiast
Posts: 597
Joined: Fri Oct 06, 2006 3:57 pm
Location: England

Re: Create your own icons for toolbars etc. with PureBasic

Post 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
davido
Addict
Addict
Posts: 1841
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Create your own icons for toolbars etc. with PureBasic

Post 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
DE AA EB
collectordave
Addict
Addict
Posts: 1221
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Create your own icons for toolbars etc. with PureBasic

Post by collectordave »

The post at http://www.purebasic.fr/english/viewtop ... 23#p487423 just updated.

regards

collectordave
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
collectordave
Addict
Addict
Posts: 1221
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Create your own icons for toolbars etc. with PureBasic

Post 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
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 1877
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Create your own icons for toolbars etc. with PureBasic

Post by Andre »

Will there be an updated package - containing the latest contributions / examples - in the near future? :wink:

Thank you a lot for your hard work! :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
collectordave
Addict
Addict
Posts: 1221
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Create your own icons for toolbars etc. with PureBasic

Post 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
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Post Reply