Desktop: narrow side panel polish (designer review)
- The engine row: the name and depth go under the row when they do not fit beside the evaluation (⚙ covered them in a 240 pt panel); alone, the name is centred. - Stacked: the notation part grows by the engine's lines and settings. - The toolbar wraps a group at a time, without a separator at a row's end. - A move's cell is at most 160 pt (the notation under the board). - The filters over the list cast their shadow to the left; the counter on a line of its own loses its leading dot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4ebb1bb683
commit
c17f5bc1cb
5 changed files with 150 additions and 51 deletions
|
|
@ -39,6 +39,9 @@ pub enum NotationCommand {
|
|||
|
||||
const ROW_H: f32 = 26.0;
|
||||
const NUM_W: f32 = 38.0;
|
||||
/// A move's cell is no wider than this: in a wide panel (the notation under the board)
|
||||
/// the two moves of a row stay together.
|
||||
const CELL_MAX: f32 = 160.0;
|
||||
/// Moves of an engine's better line shown under a marked move.
|
||||
const MARK_LINE_MOVES: usize = 6;
|
||||
|
||||
|
|
@ -136,7 +139,7 @@ impl Row {
|
|||
FontId::proportional(14.0),
|
||||
visuals.weak_text_color(),
|
||||
);
|
||||
let cell_w = (width - NUM_W) / 2.0;
|
||||
let cell_w = ((width - NUM_W) / 2.0).min(CELL_MAX);
|
||||
let cells = [(self.white, 0.0), (self.black, cell_w)];
|
||||
for (id, off) in cells {
|
||||
let cell =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue