-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Milestone
Description
I used this module to build the QT theme engine here https://github.com/KhamisiKibet/QT-PyQt-PySide-Custom-Widgets
Now am trying to add gradient themes but am getting this error:
Traceback (most recent call last):
File "E:\Spinn TV Tut\modern dashboard\main.py", line 68, in <module>
window = MainWindow()
File "E:\Spinn TV Tut\modern dashboard\main.py", line 53, in __init__
QAppSettings.updateAppSettings(self)
File "C:\Users\user\anaconda3\lib\site-packages\Custom_Widgets\Widgets.py", line 3048, in updateAppSettings
CompileStyleSheet.applyCompiledSass(self)
File "C:\Users\user\anaconda3\lib\site-packages\Custom_Widgets\Qss\SassCompiler.py", line 80, in applyCompiledSass
qtsass.compile_filename(main_sass_path, css_path)
File "C:\Users\user\anaconda3\lib\site-packages\qtsass\api.py", line 125, in compile_filename
css = compile(string, **kwargs)
File "C:\Users\user\anaconda3\lib\site-packages\qtsass\api.py", line 99, in compile
return qt_conform(sass.compile(**kwargs))
File "C:\Users\user\anaconda3\lib\site-packages\sass.py", line 738, in compile
raise CompileError(v)
sass.CompileError: Error: Invalid CSS after "...gradient(spread": expected expression (e.g. 1px, bold), was ":reflect, x1:0, y1:"
on line 15:39 of defaultStyle
from line 5:9 of stdin
>> background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:1
--------------------------------------^
[Finished in 1.5s]My SCSS
background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(56, 28, 70, 255), stop:0.522727 rgba(22, 27, 30, 255), stop:1 rgba(36, 33, 100, 255));