[Help] Code changes in order to add an icon

Yes, that’s it!

As I think you used default “plus” and “minus” icons, I would highly suggest to duplicate these icons and use new names so that they can be themed independently of regular “plus” and “minus” ones.

Would that make sense to you and do you agree?

What should be the icon name?
  • brush_increase_icon
  • brush_size_increase_icon
  • increase_icon

0 voters

XD

Well, I think we can close the poll choosing:

  • brush_size_increase_icon
  • brush_size_decrease_icon

Thanks!

I have almost finished the icons but, meanwhile, I found these 3 ones that haven’t been themed and I don’t know if they can be: inside Options panel:

Are “Apply”, “Cancel” and “OK” icons themeable?

EDIT - resize screenshot as it was too big…

maybe gtk-apply, gtk-cancel and gtk-ok

1 Like

BINGO!

The theme it’s almost finished :smiley:
Thanks!

2 Likes

Hi @rodolforg,

Using Synfig in a personal project found these icons that haven’t been added to my “modern icon theme”. I was digging into the code and the useful links you gave me about Adwaita old icons but none works… any idea on what are their names and if they are “themeable”?:

Thanks!

EDIT - highlighted a wrong icon

Would they be gtk-convert, gtk-disconnect, gtk-yes, gtk-no, gtk-connect?

1 Like

Once again you were right, thanks!!

Along with monochrome icon sets, a new set of modern multicolor icons would be amazing. :grin: Just saying.

Hahaha, looks like a nice project for summer holidays…

Just to know, do you mean starting with “modern monochrome” as reference or whole new color icons with modern style?

1 Like

Some notes to myself:

List of icons:

gtk-quit → application-exit
gtk-convert
gtk-connect
gtk-disconnect
gtk-yes
gtk-no
gtk-zoom-in → zoom-in
gtk-zoom-out → zoom-out
gtk-zoom-fit → zoom-fit-best
gtk-zoom-100 → zoom-original
gtk-properties → document-properties
gtk-cut → edit-cut
gtk-copy → edit-copy
gtk-paste → edit-paste

dialog-error
dialog-warning
dialog-information
dialog-question

1 Like

From that nice list I haven’t located the following:

  • dialog-error
  • dialog-warning
  • dialog-question

Are they actually used in Synfig or might they don’t be used?

They may appear depending on Gtk theme.

I found a way to change these check marks, but via CSS:

menuitem > check {
  color: rgba(0,0,0,0);
  background-color: rgba(0,0,0,0);
  background-image: -gtk-icontheme("zoom-best-fit"); /* choose the icon name XD */
}

menuitem > check:checked {
  background-image: -gtk-icontheme("window-close"); /* choose the icon name XD */
}

Same for menuitem > radio selector.

1 Like

“Modern monochrome” iconpack as a reference can be a good idea as long as it can provide enough contrast of colors while switching theme from light to dark.

1 Like

I love it, so smart!
I need some time to experiment but It’s so nice

Thanks!