Upload files to 'UI'

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2020-12-17 06:33:55 +00:00
parent acc9501a24
commit 26d2187fa6

View file

@ -228,8 +228,8 @@ def image(layer, win ,path, x, y, width=0, height=0, fit="crop", cell=0):
win.images[cell][path] = "LOADING-IMAGE" win.images[cell][path] = "LOADING-IMAGE"
if win.imageload < 10: if win.imageload < 1: # This needs to be fixed. Because multithreading
win.imageload += 1 win.imageload += 1 # gives tons of errors when loading single images.
def loadimage(layer, win ,path, x, y, width, height, fit): def loadimage(layer, win ,path, x, y, width, height, fit):
# Loading the image into the cairo. # Loading the image into the cairo.
@ -253,6 +253,7 @@ def image(layer, win ,path, x, y, width=0, height=0, fit="crop", cell=0):
else: else:
load1 = GdkPixbuf.Pixbuf.new_from_file("settings/themes/"\ load1 = GdkPixbuf.Pixbuf.new_from_file("settings/themes/"\
+win.settings["Theme"]+"/icons/blender.png") +win.settings["Theme"]+"/icons/blender.png")
os.remove("/tmp/vcstudio_blender_thumbnail"+part+".png") os.remove("/tmp/vcstudio_blender_thumbnail"+part+".png")
@ -742,6 +743,7 @@ def text(outlayer, win, name, x, y, width, height, set_text="", parse=False, fil
if editable: if editable:
UI_color.set(layer, win, "node_blendfile") UI_color.set(layer, win, "node_blendfile")
if win.text[name]["cursor"][0] == win.text[name]["cursor"][1]: if win.text[name]["cursor"][0] == win.text[name]["cursor"][1]:
if win.blink:
layer.rectangle( layer.rectangle(
win.text[name]["cursor"][0]*12+5 +offsetX, win.text[name]["cursor"][0]*12+5 +offsetX,
5, 5,