#I Pywal-ed godot
23 messages · Page 1 of 1 (latest)
heres the script btw
it kind of sucks that godot does not automatically update when i change the theme
have to restart godot for the theme changes
this also works for godot 4 btw
just change the settings file path to settings-4
to use it, first, run pywal
then you can run this python script
more samples
:D
Thx for that. I've tried with some wallpapers and it's works great (even if you forgot the #!/bin/python at the beginning of the script ;p)
I always get a dark base color
top one actually looks sick wtf
I updated that on the repo
Forgot to update it here
https://github.com/Quicksilver151/CustomTools/tree/master/wal
I've made a slight modification as the background color tends to be black in the majority of the cases, using the colorsys python lib.
first ```python
import colorsys
then modify the script as follow
# grabs 2 main colors
background_colors = lines[17].split(";")[0].lstrip("\"Colour14=\"").rstrip("\" ").split(",")
foreground_colors = lines[11].split(";")[0].lstrip("\"Colour8=\"").rstrip("\" ").split(",")
bg_color_line = "interface/theme/base_color = Color("
fg_color_line = "interface/theme/accent_color = Color("
bg_color = []
fg_color = []
for i in range(3):
bg_color.append( (int(background_colors[i])+BG_OFFSET)/256 )
fg_color.append( (int(foreground_colors[i])+BG_OFFSET)/256 )
converted_bg = colorsys.rgb_to_hsv(bg_color[0], bg_color[1], bg_color[2])
bg_color = colorsys.hsv_to_rgb(converted_bg[0], converted_bg[1], converted_bg[2] / 5.0)
for i in range(3):
bg_color_line += (str(bg_color[i])+", ")
fg_color_line += (str(fg_color[i])+", ")
bg_color_line += "1)\n"
fg_color_line += "1)\n"
just converted the "ANSI Blue" color to HSV, lower the value by dividing it (arbitrarily by 5) and convert back to RGB.
It used to be almost fully black
That's why I added color offset
Also I prefer it that way honestly
Also
I'm rewriting my pywal stuff with rust
oh ok
id learn rust but the syntax is confusing asf to me
lmao
that was exactly the situation i was at last year
but then i binged tutorials last december and now i know my way around rust code
ironically I started learning it a while after I said that, not rly all that sure where to start,I just made a thing that automatically generates keywords from an array
Lmaaooo
Nice
I recommend the article, "half hour to learn rust" by fasterthanlime