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

QLinear Gradient compilation error #61

Open
KhamisiKibet opened this issue Mar 16, 2022 · 0 comments
Open

QLinear Gradient compilation error #61

KhamisiKibet opened this issue Mar 16, 2022 · 0 comments

Comments

@KhamisiKibet
Copy link

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));
@dalthviz dalthviz added this to the v0.4.0 milestone Sep 5, 2022
@dalthviz dalthviz modified the milestones: v0.4.0, v0.3.3 Oct 6, 2022
@dalthviz dalthviz modified the milestones: v0.3.3, v0.4.0 Nov 16, 2022
@dalthviz dalthviz modified the milestones: v0.4.0, v0.4.1 Mar 21, 2023
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

2 participants