Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working - Windows 10 - Gimp 2.8.16 #7

Open
praveenbm5 opened this issue Dec 31, 2016 · 6 comments
Open

Not Working - Windows 10 - Gimp 2.8.16 #7

praveenbm5 opened this issue Dec 31, 2016 · 6 comments

Comments

@praveenbm5
Copy link

All icons appear black.

I copied the theme to C:\Users\Username\.gimp-2.8\themes and changed the preferences to use this theme.

Screenshot -

gimp-hidpi

@praveenbm5 praveenbm5 changed the title Now Working - Windows 10 - Gimp 2.8.16 Not Working - Windows 10 - Gimp 2.8.16 Dec 31, 2016
@jedireza
Copy link
Owner

jedireza commented Jan 2, 2017

Thanks for opening an issue. Looks like there's an issue with paths on Windows. A PR is welcomed.

@ghost
Copy link

ghost commented Jan 13, 2017

I don't know much about theming Gimp but noticed that all the themes I had were using png images and this one uses svg. I copied one of the png's from another theme into the image folder of this one and edited the imagerc and that image showed up with all the others still being blank. That was on Windows 10; however, on Ubuntu 16.04, this theme works as is.

@bartvanandel
Copy link

bartvanandel commented Feb 8, 2017

Yes this is due to missing support for vector icons in the Windows build of GIMP. According to the 2.9.4 Release Notes (I know, different version):

Vector icons are an experimental feature, available after using the --enable-vector-icons build configure option.

I don't know whether it is possible to extract the build configuration options from the executable (gimp-console-2.8.exe --version --verbose doesn't do the job), but I guess this option either was not enabled during build, or is not supported for Windows at this moment. Note that I've never created a Windows build of Gimp, so I'm not going to fix Gimp.

As a workaround, I've batch-converted the .svg files to .png and modified the imagerc file accordingly by globally replacing ".svg" with ".png". Batch conversion is pretty easy when using the svg2png npm package. When npm is already installed, you can do this from a Windows command prompt (adapt path to your needs):

npm i -g svg2png
cd "%HOMEPATH%\.gimp-2.8\themes\gimp-hidpi\images"
for %f in (*.svg) do svg2png -w 32 -h 32 -o %~nf.png %f

@jedireza
Copy link
Owner

jedireza commented Feb 8, 2017

Thanks for adding these details @bartvanandel

@johndevedu
Copy link

Thanks @bartvanandel! Mine were a bit too small, so I changed a couple of the parameters like this:
for %f in (*.svg) do svg2png -w 64 -h 64 -o %~nf.png %f

Basically, changed the 32 to 64 for width and height.

@tobia
Copy link

tobia commented Jul 4, 2017

If you don't have Node installed, you can use Inkscape:

cd .gimp-2.8\themes\gimp-hidpi\images
for %f in (*.svg) do @"\Program Files\Inkscape\inkscape.com" -f %f -e %~nf.png -w 32 -h 32 -y 0.0

Adjust the size (32) to fit your display resolution.

Remember to open imagerc and replace all .svg with .png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants