Draft: updates related to transparency to alpha change

This commit is contained in:
Roy-043
2025-01-21 18:17:49 +01:00
committed by Yorik van Havre
parent dd4c462199
commit 2ad98aa84b
7 changed files with 25 additions and 30 deletions

View File

@@ -194,7 +194,7 @@ class AnnotationStyleEditor(gui_base.GuiCommandSimplest):
if hasattr(vobj, attr):
try:
if vobj.getTypeIdOfProperty(attr) == "App::PropertyColor":
value = value & 0xFFFFFF00
value = value | 0x000000FF
setattr(vobj, attr, value)
except:
pass

View File

@@ -314,7 +314,7 @@ class AddToConstruction(gui_base.GuiCommandNeedsSelection):
if not hasattr(Gui, "draftToolBar"):
return
col = params.get_param("constructioncolor") & 0xFFFFFF00
col = params.get_param("constructioncolor") | 0x000000FF
# Get the construction group or create it if it doesn't exist
grp = self.doc.getObject("Draft_Construction")