By customizing the stylesheet (CSS), I would like to assign a custom background image to certain elements of the darktable interface.
According to Gtk – 3.0: CSS Overview, this is possible.
I also see that “\lib\gdk-pixbuf-2.0\2.10.0\loaders” contains .dlls for many image formats.
I created a .png (
) to change the appearance of a button, and I’ve tried everything I can think of:
- changing the directory
- changing the image extension (.jpg, .png)
- using different images
- using ‘background’ instead of ‘background-image’
- restarting after each change
- using MSYS2 MINGW64 → GTK Inspector and analyzing the element
but nothing seems to work.
I adapted the code to see if it would display an image with something as outrageous as this (image included in the distribution):
#module-header {
background-image: url('../pixmaps/splashscreen-02.jpg');
}
But it didn’t work for me either.
The distribution’s stylesheets mostly make calls like:
#iop-panel-icon-ashift {
background-image: url('../pixmaps/plugins/darkroom/ashift.svg');
}
In this case, GTK Inspector does show ‘url("data:image/png;base64, …’
(not .svg).
My environment is Windows 10.
So here are the questions for the darktable experts:
- Does darktable allow me to do what I want?
- If so, what am I doing wrong?
