Skip to content

Commit d3fff02

Browse files
committed
fixup! fixup! Update _colorize.py
1 parent 4d32658 commit d3fff02

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

Lib/_colorize.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ class LiveProfiler(ThemeSection):
277277
sorted_header_fg: int = CursesColors.BLACK
278278
sorted_header_bg: int = CursesColors.CYAN
279279

280-
# Normal header colors (non-sorted columns)
281-
normal_header_fg: int = CursesColors.WHITE
282-
normal_header_bg: int = CursesColors.BLUE
280+
# Normal header colors (non-sorted columns) - use reverse video style
281+
normal_header_fg: int = CursesColors.BLACK
282+
normal_header_bg: int = CursesColors.WHITE
283283

284284
# Data row colors
285285
samples_fg: int = CursesColors.CYAN
@@ -300,19 +300,19 @@ class LiveProfiler(ThemeSection):
300300

301301

302302
LiveProfilerLight = LiveProfiler(
303-
# Header colors
303+
# Header colors - use black for better contrast on light bg
304304
title_fg=CursesColors.BLUE,
305305
title_bg=CursesColors.DEFAULT,
306306

307-
# Status display colors
307+
# Status display colors - darker colors for light backgrounds
308308
pid_fg=CursesColors.BLUE,
309-
uptime_fg=CursesColors.GREEN,
310-
time_fg=CursesColors.RED, # Use red instead of yellow for better visibility on light bg
311-
interval_fg=CursesColors.MAGENTA,
309+
uptime_fg=CursesColors.BLACK,
310+
time_fg=CursesColors.BLACK,
311+
interval_fg=CursesColors.BLUE,
312312

313313
# Thread view colors
314-
thread_all_fg=CursesColors.GREEN,
315-
thread_single_fg=CursesColors.MAGENTA,
314+
thread_all_fg=CursesColors.BLACK,
315+
thread_single_fg=CursesColors.BLUE,
316316

317317
# Progress bar colors
318318
bar_good_fg=CursesColors.GREEN,
@@ -321,27 +321,27 @@ class LiveProfiler(ThemeSection):
321321
# Stats colors
322322
on_gil_fg=CursesColors.GREEN,
323323
off_gil_fg=CursesColors.RED,
324-
waiting_gil_fg=CursesColors.RED, # Use red instead of yellow for visibility
325-
gc_fg=CursesColors.MAGENTA,
324+
waiting_gil_fg=CursesColors.RED,
325+
gc_fg=CursesColors.BLUE,
326326

327327
# Function display colors
328328
func_total_fg=CursesColors.BLUE,
329-
func_exec_fg=CursesColors.GREEN,
330-
func_stack_fg=CursesColors.RED, # Use red instead of yellow
331-
func_shown_fg=CursesColors.MAGENTA,
329+
func_exec_fg=CursesColors.BLACK,
330+
func_stack_fg=CursesColors.BLACK,
331+
func_shown_fg=CursesColors.BLUE,
332332

333333
# Table header colors (for sorted column highlight)
334334
sorted_header_fg=CursesColors.WHITE,
335-
sorted_header_bg=CursesColors.MAGENTA,
335+
sorted_header_bg=CursesColors.BLUE,
336336

337337
# Normal header colors (non-sorted columns)
338338
normal_header_fg=CursesColors.WHITE,
339-
normal_header_bg=CursesColors.BLUE,
339+
normal_header_bg=CursesColors.BLACK,
340340

341-
# Data row colors
342-
samples_fg=CursesColors.BLUE,
343-
file_fg=CursesColors.GREEN,
344-
func_fg=CursesColors.MAGENTA, # Use magenta instead of yellow
341+
# Data row colors - use dark colors readable on white
342+
samples_fg=CursesColors.BLACK,
343+
file_fg=CursesColors.BLACK,
344+
func_fg=CursesColors.BLUE, # Blue is more readable than magenta on light bg
345345

346346
# Trend indicator colors
347347
trend_up_fg=CursesColors.GREEN,

0 commit comments

Comments
 (0)