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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user