Arch: Revised preference ui files, remove WindowColor

Follow-up PR of #11940.

* The new ui layout follows that of the Draft preferences.
* The ConversionFast checkbox enables/disables the 3  preferences listed below it.
* The WindowColor preference was removed. It is not a per-object, or even a per-file setting. The fix in #11940 would change windows in existing projects when they are recomputed. It is therefore better to keep the V0.21 solution where the glass is colored according to the preferences and the rest of the window receives a color based on its ShapeColor. Users who want to apply specific colors can use a multi-material.
This commit is contained in:
Roy-043
2024-01-19 10:05:15 +01:00
parent 62bd9b5e4a
commit e76d1fbb51
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