gotcha

Author Topic: Icons name.  (Read 1768 times)

January 07, 2018, 01:26:44 AM
Read 1768 times

Teto

  • Jr. Member

  • Offline
  • ***

  • 29
Hi,

It's my first message here  :wave: but i use Inkscape since a long time. By the way version 0.92.2 is fantastic, many improvements and new features that I was waiting for a long time. Just terrific. Anyway, here's my problem:
I picked up a dark theme that I like, and few icons that fit the theme. But others are just desatured versions of standard icons and it's ugly. So I started to draw mine.

But, for few icons the names are wrong so I have a "replacement" icon instead. The list (for the moment):
-toggle_snap_bbox
-toggle_snap_nodes
-toggle-snap-others
I tried many variants without success. Is it a bug, or I just didn't have the chance to find the names?

Many thanks if someone can help me.  :)
« Last Edit: January 07, 2018, 10:52:50 AM by Teto »
  • 0.92.2
  • Windows 7

January 07, 2018, 02:47:28 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome Teto!

How were you able to change the Inkscape theme on Windows, without changing the entire Windows theme?  I didn't think it was possible -- did you learn a trick?

I don't understand your question about icon names.  Do you mean that to change the icons, you're simply substituting another image, by giving it the same name as the original icon?

I'm not sure which icons you're referring to, by the names you gave.  But what I think they are, some of them are in Inkscape/share/icons/icons.svg

Oh yes, I see.  All three of the names you gave, at least in version 0.92.2, are all the same icon.  See my screenshot -- are those the ones you're asking about?

Object Properties indicates this label for that icon:  #toggle_snap_global 
Is that what you're asking?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 07, 2018, 03:57:47 AM
Reply #2

Teto

  • Jr. Member

  • Offline
  • ***

  • 29
The trick: As the UI of inkscape is made with gtk, you just have to change the way it is shown, how the elements are shown to be more specific. I've found this one: http://www.inkscapeforum.com/viewtopic.php?t=10499 and it works very well. By the way, the trick is explained somewhere on inkscape.org but I don't remember where.

For the second part of your answer, yes I'm talking about these icons.  :) BUT, if you open icons.svg and check the icons, you can see that there actually are specific icons for each icon you're showing, not just one for all. Hence my question.
  • 0.92.2
  • Windows 7

January 07, 2018, 10:39:44 AM
Reply #3

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
The 'id' attribute is the one that is used by Inkscape, not the inkscape:label. So be sure to set the id correctly for your group.

Anyway, Brynn is right. It's the same icon for all of them, which has the id "snap".
Search for 'INKSCAPE_ICON("snap")' in https://gitlab.com/inkscape/inkscape/blob/0.92.x/src/widgets/toolbox.cpp to see for yourself.

January 07, 2018, 10:52:36 AM
Reply #4

Teto

  • Jr. Member

  • Offline
  • ***

  • 29
Oh, many thanks, I tried to search in the source, but failed.

So, OK, same icon for all. But, as icons already exist, could be great to have a specific icon for boundingbox, paths and others.

Anyway, problem solved. Thanks again.  :bow1:
  • 0.92.2
  • Windows 7

January 07, 2018, 07:12:02 PM
Reply #5

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
You're welcome :)

For making feature requests, please visit: https://bugs.launchpad.net/inkscape
I'm not sure if maybe that was intentional, so it looks a bit less confusing - it's already confusing as hell... But I didn't checkout the icons you mention, so they might even be so good as to reduce confusion. If you have an idea for cleaning up the snap bar beyond this, that could be helpful, too.

January 08, 2018, 12:30:56 PM
Reply #6

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Glad you got the icons sorted out.

Fwiw, I would make that icon substantially different from all the others.  Something like a big square button or switch or something, so that it's clear that it's a master switch for the ones below.  Being so much like all the others is what I think makes it confusing.  Either that, or put a strong border around each grouping of snap controls.  Or maybe even both - border and master switch/button.

If you make a feature request, will you post the link here?  I'll be glad to add comments.

Regarding changing the interface, you must mean this message:  http://www.inkscapeforum.com/viewtopic.php?t=10499#p50773.  So if I understand, someone made that icon set and something called "gtkrc", which together can create that specific theme.

But there aren't any other themes available, right?  It's a choice of one or the other, unless someone makes more.  Right?

I was trying to look at the gtkrc file, just out of curiosity, to find out what it would take to make more themes.  But it's a substantial page full of code.  First I looked at the one attached to that message.  But following the instructions given there, when I look at inkscape/etc/gtk-2.0, there is no gtkrc file there.  Of course I'm looking at 0.92.2, and who knows which version was used when that dark theme was offered.

Eventually I found a pre-installed gtkrc file.  (That message is a bit confusing -- I was trying to find all those directories, and it was only when I got to the end of the lists, that I realized you only need to find the one for your operating system.)

Anyway, the 2 gtkrc files are only vaguely similar.  Even without knowing the code, I've found occassionally that I can make simple changes to codes, and get the result I want.  But in this case, there are very few similarities.  I think it would take an expert to make other themes.

I don't know if I ever got around to it, but I hope someday Inkscape can have a simple way to make and change themes or skins.  I might have made a feature request.....  Ah, indeed I did -  https://bugs.launchpad.net/inkscape/+bug/963576
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 09, 2018, 11:20:05 AM
Reply #7

Teto

  • Jr. Member

  • Offline
  • ***

  • 29
Many questions, I'll answer in no particular order.  :-D

OK for the link if I make a different request about icons.

Quote (selected)
But there aren't any other themes available, right?  It's a choice of one or the other, unless someone makes more.  Right?
-> Right and wrong.
-> Right and wrong, again.
It's little complicated, I'll try to be specific. Years ago, for an old version of Inkscape, there were the same type of questions about themes. After reading a fairly amount of posts about gtk themes, I discover that many of themes for other programs made with gtk are pretty compatibles. And I tried many of them from a repository I don't remember, with, well, mixed results. But some of them were pretty good. And most of the time the only thing to do was changing the file gtkrc (if I remember correctly, few of them needed to change more things, I didn't try them). But to be fair the only ones that worked well were the simple and dark ones.

I didn't check, but I'm pretty sure that a "gtkrc maker" exists somewhere, as many (many) gtk themes exist.

So yes, for the moment there's no many themes specifically designed for Inkscape. But I won't be surprised that if you try themes designed for other programs (like The Gimp), they'll work.

Yes, tools for designing our own themes would be great. But I think also that other tasks are more urgent, like a node-based tool for filters, and a script language to let the writing of plug-ins easier.  :-D

Edit: But at least a dark and light one available via options... And now I'm thinking of this, maybe I did the research for The Gimp.
« Last Edit: January 09, 2018, 01:13:48 PM by Teto »
  • 0.92.2
  • Windows 7

January 10, 2018, 09:10:27 AM
Reply #8

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, thanks for explaining about themes.

and a script language to let the writing of plug-ins easier.

Oh, are you the same person who wrote this, which I just happen to stumble on:  https://inkscape.org/en/~fsmMLK/%E2%98%85inkscapemadeeasy ?

But I think also that other tasks are more urgent, like a node-based tool for filters....

For myself, if I compare the need for theme changer with the need for better filter editor - I think more users would find a theme changer useful, than users who would find a filter editor useful.

Unless you mean that making a theme changer would be so hard to do, that the energy to create it should be diverted to something else?

Personally, I think a recently proposed Inkscape 1.0 should include a theme changer.  But I also suspect I would be alone with that idea (were it to come up on the mailing list, for example).
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 10, 2018, 09:56:03 AM
Reply #9

Teto

  • Jr. Member

  • Offline
  • ***

  • 29
Oh, are you the same person who wrote this, which I just happen to stumble on
Nope, but it's cool, I'll check it out. :-)

I won't comment the rest, because I don't know. But these tasks are huge ones anyway, I don't think we'll see them for v1.00. And I prefer the actual program without bugs (well... most of them), without crashes and an increased speed when you want to export in big size (like 8K) or with complicated filters. And a good anti-aliasing.
  • 0.92.2
  • Windows 7

January 10, 2018, 10:25:37 AM
Reply #10

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Thanks for your comments - always happy when I learn new things :D
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann