You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 an ID component, but when the new palette is created by qdarkstyle.utils.scss.create_custom_qss(), it is not given an ID before calling create_images(). I am not sure what the ID 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 of pyqt.)
qdarkstyle/utils/__main__.py:60:12: E1120: No value for argument 'palette' in function call (no-value-for-parameter)
This is a call to the run_process function from the QSSFileHandler class. I have no idea what the palette should be, so I don't know how to fix this issue.
qdarkstyle/utils/scss.py:218:17: E1123: Unexpected keyword argument 'qss_filepath' in function call (unexpected-keyword-arg)
qdarkstyle/utils/scss.py:218:17: E1123: Unexpected keyword argument 'main_scss_filepath' in function call (unexpected-keyword-arg)
qdarkstyle/utils/scss.py:218:17: E1123: Unexpected keyword argument 'variables_scss_filepath' in function call (unexpected-keyword-arg)
This is a call to create_qss() which only takes a palette 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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: