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 modelled twelve-colour state remains unchanged

The complete-package profile takes in 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-colour model does not reconstruct; a native theme with custom fonts also survives when all twelve modelled colours have default RGB values

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

This profile adds package persistence and bounded physical continuation handling; it adds neither a public theme-font editor nor a qualification of arbitrary theme rendering

Colour edits and source identity

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

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

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

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

Theme-specific physical records

Supported large Theme data takes 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 the 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 the twelve-byte header

Decoded package content and source ownership receive separate checks; the parser's single-record lookahead keeps 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 inside the logical-body quota

Worksheet copies keep the destination owner

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

Theme packages are neither borrowed from a worksheet nor 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 colours, embedded images and text-run font migration

Retention and chart qualification are separate

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

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

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

Representative acceptance

Finite controls cover ordinary retained custom fonts and colours, a font-only default-colour source, a real native large Theme with physical continuations, fresh custom colours 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/colour observations

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

Remaining theme and rendering work

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

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

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