HotXLS Docs

Classic theme persistence

Retain an unchanged native custom theme

The finite Classic XLS profile retains the complete admitted custom Theme package when its modeled twelve-color state remains unchanged

The complete-package profile covers version 0 and the separately observed native version 202300; the latter is a finite compatibility qualification and does not make arbitrary nonzero versions or header-only version 202300 sources admissible

The retained source includes font and format schemes that the twelve-color model does not reconstruct; a native theme with custom fonts also survives when all twelve modeled colors have default RGB values

Opening through a stream, releasing that stream, editing unrelated cells, repeated saving and reopening keep independently owned theme bytes

This profile adds package persistence and bounded physical continuation handling; it does not add a public theme-font editor or qualify arbitrary theme rendering

Color edits and source identity

StateSave behavior
Admitted retained package with unchanged RGB and system selectorsEmit the complete source-owned logical Theme body unchanged
Ordinary retained package with a changed modeled slot or selectorRefuse before destination publication rather than replacing unmodeled fonts or format data
Source admitted by the existing strict chart-theme contractKeep its separately qualified typed-accent edit behavior and original proof constraints
Fresh workbook with custom modeled colorsWrite a real custom theme ZIP package with version 0 through the existing color-model path

A system-color selector can change while the last RGB value remains equal; source identity therefore checks both the effective stored color and its selector state

The final save check also catches a color-model change made during a progress callback; refused stream saves retain existing bytes, extent and position

Restoring the admitted model state permits a normal retry; existing failed-open semantics remain separate from this save-publication contract

Theme-specific physical records

Supported large Theme data uses the real ContinueFrt12 record family with its validated twelve-byte future-record header, rather than treating a Theme continuation as an ordinary Continue record

The output path accounts for actual physical headers and bounded continuation payloads in the globals size and later worksheet offsets

Source aggregation checks a 16 MiB logical-body quota and a maximum of 4096 physical Theme records before appending the next input record; each physical body is at most 8224 bytes, and continuation data is at most 8212 bytes after its twelve-byte header

Decoded package content and source ownership receive separate checks; the parser's single-record lookahead retains its separate BIFF unsigned sixteen-bit length bound

These are admission and framing controls, not a claim that all parser temporaries or total process memory fit within the logical-body quota

Worksheet copies keep the destination owner

Same-workbook copies keep their existing workbook theme, while cross-workbook copies use the destination workbook's theme owner

Theme packages are not borrowed from a worksheet or transferred from its source workbook; releasing that source workbook does not invalidate the destination theme

The grouped worksheet-copy profile separately governs drawing geometry, explicit colors, embedded images and text-run font migration

Retention and chart qualification are separate

Preserving a valid source theme package does not grant the strict source identity needed by qualified automatic Classic chart layout

Unknown native font or format schemes remain outside that chart proof even when their complete package survives ordinary save and reopen

Malformed or ambiguous source ownership must not become a generated default merely because the current RGB values resemble the default palette

Representative acceptance

Finite controls cover ordinary retained custom fonts and colors, a font-only default-color source, a real native large Theme with physical continuations, fresh custom colors and edit-refusal retry

Actual Excel checks use normal opening, separate saving and normal reopening with owned process identity; complete Theme-body and physical-record comparisons remain distinct from those selected native font/color observations

Final release qualification records its actual source domain, focused checks, continuation sizes, earlier native source bridges and any additional native execution

Remaining theme and rendering work

Arbitrary retained-theme color-scheme rewriting, unrepresented package topology, general font fallback and complete theme-driven chart or drawing layout remain separate work

Retained unknown font/format XML proves byte persistence, not support for editing or rendering every stored scheme element

Other Classic drawing, chart and storage contracts retain their own finite profiles and resource limits