Actually, I just realized that while it looks fine on the Dark Mixxx 
theme, it looks terrible on all other themes becaues the Red/Blue signal 
colors have terrible contrast against the black bubble background which 
happens on e.g. Classic Mixxx. The only default scheme I can think of 
that should always yield good contrast on any theme is to take the 
BgColor of the waveform, take its inverse for the bubble/marker color, 
and then make the text on the bubble the inverse of the inverse (so just 
the BgColor). This has good contrast, but isn't very interesting color 
wise.


Russell Ryan wrote:
> Hi all,
>
> I just extended the waveform so that markers on the waveform can have 
> text annotated on them. The markers can be aligned top, center, or 
> bottom. The alignment, text color and marker background color can be 
> specified in the XML like so:
>
> <Visual>
> ...
>   <Mark>
>     <Control>cue_point</Control>
>     <Color>#000000</Color>
>     <Text>CUE</Text>
>     <TextColor>#0000ff</TextColor>
>     <Align>Center</Align>
>   </Mark>
>   <Mark>
>     <Control>loop_start_position</Control>
>     <Color>#000000</Color>
>     <Text>IN</Text>
>     <TextColor>#0000ff</TextColor>
>     <Align>Center</Align>
>   </Mark>
>   <Mark>
>     <Control>loop_end_position</Control>
>     <Color>#000000</Color>
>     <Text>OUT</Text>
>     <TextColor>#0000ff</TextColor>
>     <Align>Center</Align>
>   </Mark>
>  </Visual>
>
> If <TextColor> is not provided, then the <MarkerColor> of the <Visual> 
> element is used. Similarly, if <Color> is not provided, the inverse of 
> <BgColor> of the <Visual> tag is used.
>
> Here's a screenshot. I'm using the default QApplication font, and 8pt 
> font. The horizontal margin on each side of the text is one quarter of 
> the average glyph size of the font. The bubble around the text is 
> automatically sized correctly as per the layout prediction QFontMetrics 
> provides, so changing the font size is not an issue.
>
> Screenshots:
> http://web.mit.edu/rryan/Public/markers.png
> http://web.mit.edu/rryan/Public/markers-square.png
>
> I'd like feedback on what people think of this usability wise. In 
> particular, I tried to pick something that had suitable contrast. I 
> sidestepped the issue of text color by just making it the default color 
> of the deck the marker applies to. Phil has already mentioned that he 
> prefers square boxes to the rounded boxes in the first screenshot. If 
> anything, the background shape can be configurable. I prefer the rounded 
> boxes because the square seems a little jagged.
>
> Another issue I'd like thoughts on is how to deal with when markers are 
> overlapping. Automatically making them avoid each other will take a 
> little bit of work, and might obscure the waveform.
>
> Thoughts?
> RJ Ryan
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>   


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to