Open juliangilbey opened 2 years ago
Hey, @juliangilbey we need to update this function for creating custom palettes, it is totally out of date after the last big update we have. I'll be working on it, for now, I've just raised a NonImplementedError.
I was looking at issue #298 and have submitted a patch for it. Unfortunately, though, the test still fails, because
qdarkstyle.utils.images.create_images()
requires the palette passed to it to have anID
component, but when the new palette is created byqdarkstyle.utils.scss.create_custom_qss()
, it is not given anID
before callingcreate_images()
. I am not sure what theID
should be, so I'm a little wary of trying to patch it myself.I did follow the code a little further and stumbled on another issue. So I then decided to run pylint over the whole package, and found four errors in the
utils
section, so at least they're localised. (All of the other errors reported were false positives due to pylint not being able to identify the contents ofpyqt
.)This is a call to the
run_process
function from theQSSFileHandler
class. I have no idea what the palette should be, so I don't know how to fix this issue.This is a call to
create_qss()
which only takes apalette
argument, and then defines its own filepaths. Perhaps the intention is that these parameters should override the defaults defined in the current body of the function?