diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-19 10:26:05 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-19 10:26:05 -0400 |
| commit | e5b08b7471e19f1b29836d7a7facec7af0abe98b (patch) | |
| tree | 95e76360c6f2ded800f610813a79bcee3725f05d /scripts/theme-studio/app-util.js | |
| parent | ed9834284a1d4fb3903808a5b74d11d4f36f0930 (diff) | |
| download | dotemacs-e5b08b7471e19f1b29836d7a7facec7af0abe98b.tar.gz dotemacs-e5b08b7471e19f1b29836d7a7facec7af0abe98b.zip | |
refactor(theme-studio): unify the face CSS builders in app-core
syntaxStyle, uiCss, and ofs each assembled the same color/background/weight/style/text-decoration/box-shadow string by hand, differing only in how they resolved fg/bg and whether they added a font-size. I promoted one faceCss(face, fg, bg, opts) plus cssWeight, boxCss, and a faceDecoration helper into app-core (all pure, no DOM), and reduced the three builders to thin wrappers that resolve fg/bg and call it. styleEx and paintUI now use the promoted cssWeight/boxCss too. udeco keeps its own untrimmed decoration form, so it stays in app.js.
Diffstat (limited to 'scripts/theme-studio/app-util.js')
0 files changed, 0 insertions, 0 deletions
