Persist material editor column widths in preferences

MaterialBrowserWidth / MaterialPreviewWidth in preferences.ini, saved
from the live splitter positions on shutdown and restored (clamped to
the splitter ranges) at startup.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-05 15:54:06 +08:00
parent 42fd355c53
commit de94decf64
4 changed files with 38 additions and 2 deletions
+2
View File
@@ -28,6 +28,8 @@ struct AppPreferences {
std::string ocioView;
std::string ocioColorSpace;
std::string ocioLook;
float materialBrowserWidth = 220.0f; ///< Material Editor left-column width
float materialPreviewWidth = 320.0f; ///< Material Editor right-column width
};
class Application {