def set_dark_bg_color(self): if editorpersistance.prefs.theme == appconsts.LIGHT_THEME: return global BG_COLOR if editorpersistance.prefs.theme == appconsts.FLOWBLADE_THEME_GRAY or editorpersistance.prefs.theme == appconsts.FLOWBLADE_THEME_NEUTRAL: r, g, b, a = gui.unpack_gdk_color(gui.get_light_gray_light_color()) if editorpersistance.prefs.theme == appconsts.FLOWBLADE_THEME_NEUTRAL: r, g, b, a = gui.unpack_gdk_color( gui.get_light_neutral_color()) BG_COLOR = (r, g, b) else: r, g, b, a = gui.unpack_gdk_color(gui.get_bg_color()) BG_COLOR = guiutils.get_multiplied_color((r, g, b), 1.25)
def draw_emboss(self, cr, rect, color): # Emboss, corner points left = rect[0] + 1.5 up = rect[1] + 1.5 right = left + rect[2] - 2.0 down = up + rect[3] - 2.0 # Draw lines color_tuple = gui.unpack_gdk_color(color) light_color = guiutils.get_multiplied_color(color_tuple, LIGHT_MULTILPLIER) cr.set_source_rgb(*light_color) cr.move_to(left, down) cr.line_to(left, up) cr.stroke() cr.move_to(left, up) cr.line_to(right, up) cr.stroke() dark_color = guiutils.get_multiplied_color(color_tuple, DARK_MULTIPLIER) cr.set_source_rgb(*dark_color) cr.move_to(right, up) cr.line_to(right, down) cr.stroke() cr.move_to(right, down) cr.line_to(left, down) cr.stroke()
def set_dark_bg_color(self): if editorpersistance.prefs.theme == appconsts.LIGHT_THEME: return r, g, b, a = gui.unpack_gdk_color(gui.get_bg_color()) global BG_COLOR BG_COLOR = guiutils.get_multiplied_color((r, g, b), 1.25)
def set_dark_bg_color(self): if editorpersistance.prefs.theme == appconsts.LIGHT_THEME: return r, g, b, a = gui.unpack_gdk_color(gui.get_bg_color()) global BG_COLOR BG_COLOR = guiutils.get_multiplied_color((r, g, b), 1.25)
def set_dark_bg_color(self): if editorpersistance.prefs.dark_theme == False: return r, g, b, a = gui.unpack_gdk_color(gui.get_bg_color()) global BG_COLOR BG_COLOR = guiutils.get_multiplied_color((r, g, b), 1.25)
def set_dark_bg_color(self): if editorpersistance.prefs.dark_theme == False: return r, g, b, a = gui.unpack_gdk_color(gui.get_bg_color()) global BG_COLOR BG_COLOR = guiutils.get_multiplied_color((r, g, b), 1.25)