diff --git a/ui/dev/harness.html b/ui/dev/harness.html index e7073d2..cbab2cc 100644 --- a/ui/dev/harness.html +++ b/ui/dev/harness.html @@ -91,7 +91,9 @@
-
ours — focused panel (is-active): selected + cursor
+
ours — focused pane (top) vs unfocused pane (bottom)
+ @@ -107,9 +109,30 @@ - + - + + +
..——
Documents—3/29/2007 12:00 AM
Documents—3/29/2007 12:00 AM
report.pdf27 KB3/23/2007 12:00 AM
notes.txt4 KB3/13/2007 12:00 AM
notes.txt4 KB3/13/2007 12:00 AM
+ + + + + + + + + + + + + + + + + + +
NameSizeModified
..——
Documents—3/29/2007 12:00 AM
report.pdf27 KB3/23/2007 12:00 AM
notes.txt4 KB3/13/2007 12:00 AM
diff --git a/ui/src/app/file-panel/file-panel.html b/ui/src/app/file-panel/file-panel.html index 31b2c96..d1098cf 100644 --- a/ui/src/app/file-panel/file-panel.html +++ b/ui/src/app/file-panel/file-panel.html @@ -279,7 +279,7 @@ (click)="rowClick($event, i)" (dblclick)="openAt(i)" (contextmenu)="rowContextMenu($event, i)" - [class.highlighted]="isSelected(entry)" + [class.highlighted]="isSelected(entry) || i === panel().cursor()" [class.is-cursor]="i === panel().cursor() && isActive()" > diff --git a/ui/src/styles.css b/ui/src/styles.css index 55ae84e..0fab48e 100644 --- a/ui/src/styles.css +++ b/ui/src/styles.css @@ -639,19 +639,24 @@ body { border-color: var(--w7-li-bd-hl); } - /* Selection in the FOCUSED panel. 7.css's tr.highlighted is Win7's *inactive* - selection — a near-white wash that is almost invisible when it is the - panel you are actually working in. Win7 drew the focused pane's selection - as the stronger Aero band, which is what --w7-el-grad-h/-bd-h already are - (and the dark palette restates them, so this recolours for free). */ + /* Pane-focus model (commander convention, matching Win7 Explorer): + the CURSOR ROW always carries the selection band in BOTH panels — + tr.highlighted covers "selected via Space" AND "cursor row" (the template + ORs them). What changes with pane focus is the band's strength, never + whether it exists: + - focused pane -> strong Aero band (below) + - unfocused pane -> 7.css's own tr.highlighted, which IS Win7's + inactive-selection wash — faint by design, not a bug. + The dotted focus rectangle is NOT the focus signal; it is layered on top + of the band in the focused pane only, the way Win7 drew the keyboard + focus rect over the selected item. */ .win7 table.is-active > tbody > tr.highlighted { background: var(--w7-el-grad-h); border-color: var(--w7-el-bd-h); } - /* The keyboard cursor: one dotted focus rectangle around the ROW, the way - Win7 drew a focused-but-unselected item. Applying this per cell (tr > *) - draws a dotted box around every cell instead — visibly wrong. */ + /* One dotted rectangle around the ROW; per cell (tr > *) draws a dotted box + around every cell instead — visibly wrong. */ .win7 table > tbody > tr.is-cursor { outline: 1px dotted var(--w7-el-c); outline-offset: -1px;