Make Layer Lock Icon clearer. (SOLVED)

Post questions on how to use or achieve an effect in Inkscape.
User avatar
ianp5a
Posts: 106
Joined: Thu Sep 02, 2010 1:30 am

Make Layer Lock Icon clearer. (SOLVED)

Postby ianp5a » Wed Aug 27, 2014 7:13 am

The Lock icon next to each layer is so small I cant see the difference between locked an unlocked.
There is just a 1 pixel gap difference between the 2 modes.
Selection_034.jpg
Selection_034.jpg (13.09 KiB) Viewed 5595 times


Is there a way to make it bigger? If not where can I find the Icon so that I can edit it? Thanks.

Kubuntu 14.4, Inkscape 0.48, Monitor 1200x1600
Last edited by ianp5a on Sat Oct 04, 2014 12:55 am, edited 1 time in total.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Make Layer Lock Icon clearer

Postby Lazur » Wed Aug 27, 2014 8:10 am


User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Make Layer Lock Icon clearer

Postby Maestral » Wed Aug 27, 2014 9:07 pm

Although your signature shows Inkscape 0.48 this is how it looks on my 0.48.5 r10040 (Win7).
Image
It`s the first time I see these lock icons while icons file should be in .../Inkscape/share/icons/icons.svg

Off topic:
Apropos Lazur`s links...
Did anybody managed to edit that gtkrc file and if so would you be willing to share it here? I`d like to give it a try but in my version gtkrc does not contain "fg-color" nor "nbg-color".
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

User avatar
ianp5a
Posts: 106
Joined: Thu Sep 02, 2010 1:30 am

Re: Make Layer Lock Icon clearer

Postby ianp5a » Thu Aug 28, 2014 5:07 pm

Yes the Windows Icons look like that. But on Kubuntu they are as I have shown. Thanks I shall look at the icons.svg.

User avatar
ianp5a
Posts: 106
Joined: Thu Sep 02, 2010 1:30 am

No luck yet!

Postby ianp5a » Sun Aug 31, 2014 8:04 pm

There is no folder at .../Inkscape/share/icons/icons.svg on my PC on Kubuntu 14.04
Further research yeilded: /usr/share/inkscape/icons/ and icons.svg. But they are different from the ones in use by inkscape.

Can anybody help me?

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Make Layer Lock Icon clearer

Postby Maestral » Sun Aug 31, 2014 11:55 pm

On windows you have an option to allow app custom cursors, icons... etc.
Perhaps you have something like this disabled?

Sorry, haven`t used linux in a while and am not sure if this is quite appropriate parallel/comparison but hope it helps.
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

rich2005
Posts: 55
Joined: Fri Mar 30, 2012 9:06 pm

Re: No luck yet!

Postby rich2005 » Mon Sep 01, 2014 8:03 pm

ianp5a wrote:There is no folder at .../Inkscape/share/icons/icons.svg on my PC on Kubuntu 14.04
Further research yeilded: /usr/share/inkscape/icons/ and icons.svg. But they are different from the ones in use by inkscape.

Can anybody help me?


This drove me potty yesterday.
Using PClinuxOS KDE 32 bit & Inkscape 0.48.5 r10040

Changing the icons does work (but not for the layer lock icon). This all-in-one screenshot http://i.imgur.com/UEt6pzt.jpg

1. copy (say) the tango_icons.svg file from /usr/share/inkscape/icons to ~/.config/inkscape/icons
Had to make the icons directory, then renamed tango_icons.svg to icons.svg

2. The tango icons are used in place of the default.

3. Makes no difference to the layer lock / un-lock icons. Tried editing in inkscape, tried editing as text. The icons remain as original.

but

Looking at the icons in the layers dialog and the tango icons they are different anyway, so conclusion is inkscape not using these icons from the icons.svg file, at least in linux.

I did try other things, just working in /usr/share/inkscape/icons directory. Those lock icons are very stubborn.

Are they encoded into Inkscape somehow? Are they in some other resource file?

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Make Layer Lock Icon clearer

Postby tylerdurden » Mon Sep 01, 2014 11:41 pm

My quick trip down the rabbit-hole via Lazur's tip lead to this post on the dev board: https://bugs.launchpad.net/inkscape/+bug/929397

In the above, the lock icons are described as being set by the GTK theme under the inkscape-decoration id.
The icons themselves are designed for 12x12 px (AFAIU this smaller size was originally intended as size for all icons of the type 'inkscape-decoration' - e.g. also the toggle buttons to lock/unlock and hide/unhide layers).


I will chase this a bit later, but wanted to share that bit so others may pursue too.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Make Layer Lock Icon clearer

Postby tylerdurden » Tue Sep 02, 2014 12:24 am

PS: changing the value of inkscape-decoration works in Windows, my Mint-17 is offline so I will have to test later.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

TStedl
Posts: 1
Joined: Wed Oct 01, 2014 11:05 pm

Re: Make Layer Lock Icon clearer

Postby TStedl » Thu Oct 02, 2014 1:46 am

The problem icons are from the Oxygen icon set. Inkscape uses system icons where possible, and Oxygen includes the lock and unlock icons, so Inkscape uses them.

It looks like this default behavior is set in the icons.cpp source file in Inkscape. It should be possible to set Inkscape to *not* use the system icons, and recompile the application, but I haven't tried that.

Instead, I changed the lock and unlock icons used by Oxygen. Those icons are an epic fail on the part of Oxygen. It's as if a traffic light had only 1 light instead of 3, and the difference between go and stop was a change in the light's color from green to teal.

I've attached two sets of icons: Inkscape's and my own. Inkscape's is good, but too cartoonish to fit with the rest of Oxygen, and the lock/unlock icons are used in many places besides Inkscape. Mine are more in line with Oxygen's style, but I did not follow their guidelines, and the quality isn't to their usual standards (I'm not a graphics person). With my set, the unlock is different from lock in 3 ways: the shank is not above the padlock, the icon is tilted, and the padlock color is bronze instead of gold. The difference is now obvious, and doesn't require me to use a magnifying glass to determine whether a single pixel has changed color. (Like I said--an epic fail of the original Oxygen icons; hopefully someone on their team can pick up this idea and change these icons for everyone.)

To change the Oxygen icons, sudo copy the 16-pixel icons into /usr/share/icons/oxygen/16x16/status. Rename the originals, and rename the new ones to replace them: object-unlocked.png and object-locked.png. Do likewise for the 22x22, 32x32, and 48x48 folders. If there is an icon theme cache file in the /usr/share/icons/oxygen folder, delete it. Then reset the Oxygen icons. (In Kubuntu, go to System Settings -> Application Appearance -> Icons; pick a different icon theme and Apply it; then pick the Oxygen theme and Apply it.) The new icons should now appear in Inkscape, and everywhere else the system uses the lock/unlock icons.

Best,
-Todd
Attachments
inkscapeLockIcons.tar.gz
(6.96 KiB) Downloaded 225 times
padlockPublic.tar.gz
(47.63 KiB) Downloaded 224 times

User avatar
ianp5a
Posts: 106
Joined: Thu Sep 02, 2010 1:30 am

Re: Make Layer Lock Icon clearer

Postby ianp5a » Fri Oct 03, 2014 11:17 pm

Excellent. Solved. Thanks a lot.
1) Open as root: /usr/share/icons/oxygen/16x16/status/
2) Edit: object-unlocked.png (I made one lock green and the other red.)
3) Rename or delete the file /usr/share/icons/oxygen/icon-theme.cache
4) Go to System Settings -> Application Appearance -> Icons
5) Pick another theme. Click Apply, then pick Oxygen. Click Apply again!


Return to “Help with using Inkscape”