ソースを参照

ngui: drop the checkmark on selected list rows

The selection background already marks the row; the extra check also
shifted the selected row's text out of line with the others.  Affects
every ngui_list_row user (disks, netmenu).

Co-Authored-By: Claude <noreply@anthropic.com>
Johannes Zellner 3 日 前
親
コミット
c6eac494e7
1 ファイル変更、0 行追加、8 行削除
  1. 0 8
      user/lib/ngui/ngui.c

+ 0 - 8
user/lib/ngui/ngui.c

@@ -1552,14 +1552,6 @@ static int ngui_list_row_common(struct ngui *ui, unsigned int id,
 	sub_fg = row->selected ? ui->theme.text : ui->theme.text_dim;
 	trail_fg = row->selected ? ui->theme.text : ui->theme.text_dim;
 
-	if (row->selected) {
-		int cy = r.y + r.h / 2;
-
-		ngui_line(ui, left, cy, left + 3, cy + 4, fg);
-		ngui_line(ui, left + 3, cy + 4, left + 11, cy - 5, fg);
-		left += 17;
-	}
-
 	if (row->trailing && row->trailing[0]) {
 		int tw = (int)ngui_text_width_ui(ui, row->trailing);