Skip to content

Commit 1362e2a

Browse files
committed
Fix annotation visibility: update default annotation colors to brighter green for improved contrast on white backgrounds
(cherry picked from commit c15d78d)
1 parent 26ca699 commit 1362e2a

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

datalab/config.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,48 @@ def reset():
541541
"marker/cursor/sel_text/textcolor": "#440909",
542542
"marker/cursor/sel_text/background_color": "#ffffff",
543543
"marker/cursor/sel_text/background_alpha": 0.7,
544+
# Default annotation text style for segments:
545+
"shape/segment/line/style": "SolidLine",
546+
"shape/segment/line/color": "#00ff55",
547+
"shape/segment/line/width": 1.0,
548+
"shape/segment/sel_line/style": "SolidLine",
549+
"shape/segment/sel_line/color": "#00ff55",
550+
"shape/segment/sel_line/width": 2.0,
551+
"shape/segment/fill/style": "NoBrush",
552+
"shape/segment/sel_fill/style": "NoBrush",
553+
"shape/segment/symbol/marker": "XCross",
554+
"shape/segment/symbol/size": 9,
555+
"shape/segment/symbol/edgecolor": "#00ff55",
556+
"shape/segment/symbol/facecolor": "#00ff55",
557+
"shape/segment/symbol/alpha": 1.0,
558+
"shape/segment/sel_symbol/marker": "XCross",
559+
"shape/segment/sel_symbol/size": 12,
560+
"shape/segment/sel_symbol/edgecolor": "#00ff55",
561+
"shape/segment/sel_symbol/facecolor": "#00ff55",
562+
"shape/segment/sel_symbol/alpha": 0.7,
563+
# Default style for drag shapes: (global annotations style)
564+
"shape/drag/line/style": "SolidLine",
565+
"shape/drag/line/color": "#00ff55",
566+
"shape/drag/line/width": 1.0,
567+
"shape/drag/fill/style": "SolidPattern",
568+
"shape/drag/fill/color": MAIN_BG_COLOR,
569+
"shape/drag/fill/alpha": 0.1,
570+
"shape/drag/symbol/marker": "Rect",
571+
"shape/drag/symbol/size": 3,
572+
"shape/drag/symbol/edgecolor": "#00ff55",
573+
"shape/drag/symbol/facecolor": "#00ff55",
574+
"shape/drag/symbol/alpha": 1.0,
575+
"shape/drag/sel_line/style": "SolidLine",
576+
"shape/drag/sel_line/color": "#00ff55",
577+
"shape/drag/sel_line/width": 2.0,
578+
"shape/drag/sel_fill/style": "SolidPattern",
579+
"shape/drag/sel_fill/color": MAIN_BG_COLOR,
580+
"shape/drag/sel_fill/alpha": 0.1,
581+
"shape/drag/sel_symbol/marker": "Rect",
582+
"shape/drag/sel_symbol/size": 7,
583+
"shape/drag/sel_symbol/edgecolor": "#00ff55",
584+
"shape/drag/sel_symbol/facecolor": "#00ff00",
585+
"shape/drag/sel_symbol/alpha": 0.7,
544586
},
545587
"results": {
546588
# Annotated shape style for result shapes:

doc/release_notes/release_1.00.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

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

7+
**Annotation visibility:**
8+
9+
* 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
10+
711
**Macro panel layout:**
812

913
* Fixed macro console taking excessive vertical space on first open - the script editor now properly gets 70% of space and console 30% by default, ensuring comfortable editing without manual resizing

0 commit comments

Comments
 (0)