Skip to content

Commit f4d022c

Browse files
authored
Better default position for classification overlay (#25)
1 parent 9370dd0 commit f4d022c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/overlay/imp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ impl VideoFilterImpl for EdgeImpulseOverlay {
525525
let text_x = if settings.text_position == "top-left"
526526
|| settings.text_position == "bottom-left"
527527
{
528-
10
528+
3
529529
} else if settings.text_position == "top-right"
530530
|| settings.text_position == "bottom-right"
531531
{
@@ -534,17 +534,17 @@ impl VideoFilterImpl for EdgeImpulseOverlay {
534534
let estimated_text_width = dynamic_font_size * (text.len() as i32) / 2;
535535
(frame.width() as i32 - estimated_text_width - 20).max(0)
536536
} else {
537-
10 // Default to left alignment
537+
3 // Default to left alignment
538538
};
539539
let text_y =
540540
if settings.text_position == "top-left" || settings.text_position == "top-right" {
541-
10
541+
3
542542
} else if settings.text_position == "bottom-left"
543543
|| settings.text_position == "bottom-right"
544544
{
545545
frame.height() as i32 - dynamic_font_size - 10
546546
} else {
547-
10 // Default to top
547+
3 // Default to top
548548
};
549549

550550
// Note: Color is no longer used for text background as we now use background_color from settings

0 commit comments

Comments
 (0)