From ce27337298cb5078490e3ef8854d09c158fa5d8c Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Sun, 19 Dec 2021 18:12:19 +0000 Subject: [PATCH] Upload files to 'UI' --- UI/UI_color.py | 19 +++++++++++++++++-- UI/UI_elements.py | 15 +++++++++++++++ UI/UI_helpDialog.py | 19 +++++++++++++++++-- 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/UI/UI_color.py b/UI/UI_color.py index 680f6c2..527f000 100644 --- a/UI/UI_color.py +++ b/UI/UI_color.py @@ -1,5 +1,20 @@ -# THIS FILE IS A PART OF VCStudio -# PYTHON 3 +#################################### +# # +# COPYRIGHT NOTICE # +# # +# This file is a part of Victori- # +# ous Children Studio Organizer. # +# Or simply VCStudio. Copyright # +# of J.Y.Amihud. But don't be sad # +# because I released the entire # +# project under a GNU GPL license. # +# You may use Version 3 or later. # +# See www.gnu.org/licenses if your # +# copy has no License file. Please # +# note. Ones I used the GPL v2 for # +# it. It's no longer the case. # +# # +#################################### # This a console project manager. diff --git a/UI/UI_elements.py b/UI/UI_elements.py index 31cb8fc..6a2e4cc 100644 --- a/UI/UI_elements.py +++ b/UI/UI_elements.py @@ -195,6 +195,9 @@ def blur(surface, win, amount): # scaling down surface1 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'], win.current['h']) + + + slacedownlayer = cairo.Context(surface1) slacedownlayer.scale(1/amount, 1/amount) @@ -206,10 +209,22 @@ def blur(surface, win, amount): surface2 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'], win.current['h']) slaceuplayer = cairo.Context(surface2) + slaceuplayer.scale(amount, amount) + + slaceuplayer.set_source_surface(surface1, 0 , 0) + + # Pixelized Blur + if not "PixelBlur" in win.settings: + settings.write("PixelBlur", False) # Writing to file + win.settings = settings.load_all() + if win.settings["PixelBlur"]: + p = slaceuplayer.get_source() + p.set_filter(cairo.FILTER_NEAREST) + slaceuplayer.paint() return surface2 diff --git a/UI/UI_helpDialog.py b/UI/UI_helpDialog.py index a6bd8a2..0896886 100644 --- a/UI/UI_helpDialog.py +++ b/UI/UI_helpDialog.py @@ -1,5 +1,20 @@ -# THIS FILE IS A PART OF VCStudio -# PYTHON 3 +#################################### +# # +# COPYRIGHT NOTICE # +# # +# This file is a part of Victori- # +# ous Children Studio Organizer. # +# Or simply VCStudio. Copyright # +# of J.Y.Amihud. But don't be sad # +# because I released the entire # +# project under a GNU GPL license. # +# You may use Version 3 or later. # +# See www.gnu.org/licenses if your # +# copy has no License file. Please # +# note. Ones I used the GPL v2 for # +# it. It's no longer the case. # +# # +#################################### import os import datetime