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
There is sometimes the Problem, HEX colors cannot be parsed by jgmenu-gtktheme.py.
Here my personal quick fix for the issue. However, the foreground color seems to still have problems.
fromreimportsearchdefrgb2hex(line):
""" check if string is in rgb format otherwise treat as hex """ifsearch("rgb", line):
""" convert rgb values to a 6-digit hex string """s=line.split("rgb(")
rgb=s[-1].replace(");", "").split(",")
r=hex(int(rgb[0]))[2:]
g=hex(int(rgb[1]))[2:]
b=hex(int(rgb[2]))[2:]
return"{}{}{}".format(fmt(r), fmt(g), fmt(b))
else:
returnline.replace("#", "")
Hope, the code block in the comment helps.
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/usr/lib/jgmenu/jgmenu-gtktheme.py", line 111, in <module>
main()
File "/usr/lib/jgmenu/jgmenu-gtktheme.py", line 94, in main
setconfig("color_sel_bg", rgb2hex(line))
^^^^^^^^^^^^^
File "/usr/lib/jgmenu/jgmenu-gtktheme.py", line 41, in rgb2hex
r = hex(int(rgb[0]))[2:]
^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '@define-color theme_selected_bg_color rgba(189'
There is sometimes the Problem, HEX colors cannot be parsed by jgmenu-gtktheme.py.
Here my personal quick fix for the issue. However, the foreground color seems to still have problems.
Hope, the code block in the comment helps.
The text was updated successfully, but these errors were encountered: