fix(theme): eliminate QSS/CFG duplication (#51) #70
Reference in New Issue
Block a user
Delete Branch "fix/qss-duplication"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Resolves #51. Eliminates the manual QSS stylesheet duplication by making
src/Gui/Stylesheets/KindredCreate.qssthe single source of truth and generating the PreferencePacks copy at build time.Problem
Three copies of
KindredCreate.qssexisted and had diverged. Additionally, theresources/preferences/KindredCreate/KindredCreate.cfgcontained all the recent preference defaults (PRs #37, #38, #40, #47) but was never installed by CMake — those settings were applied to the wrong file and never reached users.Changes
Build system:
src/Gui/PreferencePacks/CMakeLists.txt— Addedconfigure_file()to copy QSS from Stylesheets to PreferencePacks build directory at build time. Install rule now uses the build directory copy.Preference defaults (cfg sync):
src/Gui/PreferencePacks/KindredCreate/KindredCreate.cfg— Merged all missing preference defaults from the deleted resources copy: Document (undo=50, autosave=5min, backup=3, license=Other), TreeView (PreSelection, SyncView, SyncSelection), NotificationArea, OutputWindow recording defaults, General (AutoloadModule=ZToolsWorkbench)Deleted files:
resources/preferences/KindredCreate/KindredCreate.cfg— unused, not installed by CMakeresources/preferences/KindredCreate/KindredCreate.qss— unused, not installed by CMakeresources/preferences/package.xml— orphaned metadata for removed directorysrc/Gui/PreferencePacks/KindredCreate/KindredCreate.qss— now generated at build timeDocumentation: