Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to customise the segment's bounds #551

Open
vivekd95 opened this issue Oct 16, 2024 · 1 comment
Open

Way to customise the segment's bounds #551

vivekd95 opened this issue Oct 16, 2024 · 1 comment

Comments

@vivekd95
Copy link

Hi, @chrisn

As you can notice in the attached screenshot, that segment reveals its timestamp for both bounds (start time and end time). Could you let me know if we can update the background color and font color of this text? If so, please guide me through it. If not, I think this is a good option for the users. 

image

@vivekd95 vivekd95 changed the title Way to customising the segment's bounds Way to customise the segment's bounds Oct 16, 2024
@chrisn
Copy link
Member

chrisn commented Oct 19, 2024

One way to do this is to use the createSegmentMarker option and write your own custom marker code, which could be a modified version of DefaultSegmentMarker.

Alternately, we could add more options. At the moment, the color can't be changed (it's hard-coded here).

There is a bug here, though, which I'll fix. The marker timestamp font should be controlled by the existing fontFamily, fontSize, and fontStyle options, and these aren't being applied.

chrisn added a commit that referenced this issue Oct 19, 2024
The fontFamily, fontSize, and fontStyle options weren't
being used

See #551
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants