#I Pywal-ed godot

23 messages · Page 1 of 1 (latest)

formal stump
#

i wonder if this counts as godot-related development

#

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

formal stump
#

more samples
:D

flint thicket
#

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

hasty cave
formal stump
flint thicket
#

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.

formal stump
flint thicket
#

oh ok

hasty cave
#

id learn rust but the syntax is confusing asf to me

formal stump
hasty cave
formal stump
#

Lmaaooo
Nice

formal stump