Skip to content

Commit b697657

Browse files
committed
Fix cross marker visibility: update colors and properties for improved contrast on white backgrounds
1 parent c15d78d commit b697657

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

datalab/config.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,24 @@ def reset():
508508
"selected_curve_symbol/alpha": 0.3,
509509
"selected_curve_symbol/size": 5,
510510
"marker/curve/text/textcolor": "black",
511-
"marker/cross/text/textcolor": "black",
511+
# Cross marker style (shown when pressing Alt key on plot)
512+
"marker/cross/symbol/marker": "Cross",
513+
"marker/cross/symbol/edgecolor": MAIN_FG_COLOR,
514+
"marker/cross/symbol/facecolor": "#ff0000",
515+
"marker/cross/symbol/alpha": 1.0,
516+
"marker/cross/symbol/size": 8,
517+
"marker/cross/text/font/family": "default",
518+
"marker/cross/text/font/size": 8,
519+
"marker/cross/text/font/bold": False,
520+
"marker/cross/text/font/italic": False,
521+
"marker/cross/text/textcolor": "#000000",
522+
"marker/cross/text/background_color": "#ffffff",
512523
"marker/cross/text/background_alpha": 0.7,
524+
"marker/cross/line/style": "DashLine",
525+
"marker/cross/line/color": "#A11818",
526+
"marker/cross/line/width": 1.0,
527+
"marker/cross/markerstyle": "Cross",
528+
"marker/cross/spacing": 7,
513529
# Cursor line and symbol style
514530
"marker/cursor/line/style": "SolidLine",
515531
"marker/cursor/line/color": "#A11818",

doc/release_notes/release_1.00.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
### 🛠️ Bug Fixes since version 1.0.2 ###
66

7-
**Annotation visibility:**
7+
**Marker visibility:**
88

9+
* Fixed cross marker (shown when pressing Alt key on plot) colors inherited from PlotPy being too pale on white background, and other marker properties explicitly configured for better contrast
910
* Fixed default annotation colors inherited from PlotPy being too pale on white background - segment and drag shape annotations now use brighter green (`#00ff55`) for better visibility
1011

1112
**Macro panel layout:**

0 commit comments

Comments
 (0)