diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-16 05:59:55 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-16 05:59:55 -0500 |
| commit | b126dafca9f8424907904619e2b3d2d0d78d1635 (patch) | |
| tree | 372eff36cf8666e0fa319615753e351323f108e3 /scripts/theme-studio/styles.css | |
| parent | d27783bd9ed5441f71762c0a4ac863bc0443ac16 (diff) | |
| download | dotemacs-b126dafca9f8424907904619e2b3d2d0d78d1635.tar.gz dotemacs-b126dafca9f8424907904619e2b3d2d0d78d1635.zip | |
feat(theme-studio): mark per-face setting boxes that differ from default
A non-default height looks identical to the default in the size input, so a stray 1.1 hides in plain sight. I added a small gold corner flag on any per-face setting cell (fg, bg, style, inherit, size, box) whose value differs from the face's seed default. A pure faceBoxNonDefaults helper computes the per-box flags. buildPkgTable resolves fg/bg to hex before comparing, so a palette-name-vs-hex difference doesn't read as a change.
Diffstat (limited to 'scripts/theme-studio/styles.css')
| -rw-r--r-- | scripts/theme-studio/styles.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/theme-studio/styles.css b/scripts/theme-studio/styles.css index 47f58aca6..9c8b5aac9 100644 --- a/scripts/theme-studio/styles.css +++ b/scripts/theme-studio/styles.css @@ -23,6 +23,11 @@ .stylecluster .sbtn{margin:0} table.leg th:hover{color:#e8bd30} select.chip{appearance:none;border:1px solid #00000060;border-radius:5px;padding:5px 10px;font:bold 14px monospace;width:160px;cursor:pointer} + /* Non-default marker: a small gold corner flag on a per-face setting cell whose + value differs from the face's default. The size box looks identical default + or not, so the flag is the only at-a-glance cue that a value was changed. */ + td.nd{position:relative} + td.nd::after{content:'';position:absolute;top:0;right:0;width:0;height:0;border-top:8px solid #e8bd30;border-left:8px solid transparent;pointer-events:none} .cstep{display:inline-flex;align-items:center;gap:4px} .cstepbtn{width:22px;height:28px;padding:0;border:1px solid #3a3a3a;border-radius:4px;background:#1f1c19;color:#e8bd30;font:bold 14px monospace;cursor:pointer} .cstepbtn:disabled{opacity:.28;cursor:default;color:#8f8977} |
