Merge pull request #12038 from Roy-043/Arch-Revised-preference-ui-files-remove-WindowColor

Arch: Revised preference ui files, remove WindowColor
This commit is contained in:
Roy-043
2024-01-31 10:05:42 +01:00
committed by GitHub
4 changed files with 866 additions and 1285 deletions

View File

@@ -84,7 +84,7 @@ def getDefaultColor(objectType):
c = params.get_param("constructioncolor")
transparency = 0.80
else:
c = params.get_param_arch("WindowColor")
c = params.get_param_view("DefaultShapeColor")
r, g, b, _ = Draft.get_rgba_tuple(c)
return (r, g, b, transparency)

View File

@@ -1174,9 +1174,7 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
typeidx = (i*5)+1
if typeidx < len(obj.WindowParts):
typ = obj.WindowParts[typeidx]
if typ == WindowPartTypes[0]: # "Frame"
ccol = ArchCommands.getDefaultColor("")
elif typ == WindowPartTypes[2]: # "Glass panel"
if typ == WindowPartTypes[2]: # "Glass panel"
ccol = ArchCommands.getDefaultColor("WindowGlass")
if not ccol:
ccol = base

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff