mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
add more controllable modifiers for region transparency
This commit is contained in:
parent
a494211e73
commit
b73477b250
2 changed files with 10 additions and 3 deletions
|
|
@ -499,6 +499,8 @@
|
||||||
<Modifier name="piano roll white" modifier="= alpha:0.4627"/>
|
<Modifier name="piano roll white" modifier="= alpha:0.4627"/>
|
||||||
<Modifier name="recording rect" modifier="= alpha:0.25"/>
|
<Modifier name="recording rect" modifier="= alpha:0.25"/>
|
||||||
<Modifier name="region base" modifier="= alpha:0.99"/>
|
<Modifier name="region base" modifier="= alpha:0.99"/>
|
||||||
|
<Modifier name="opaque region base" modifier="= alpha:0.99"/>
|
||||||
|
<Modifier name="transparent region base" modifier="= alpha:0.50"/>
|
||||||
<Modifier name="selected midi note" modifier="= alpha:0.7529"/>
|
<Modifier name="selected midi note" modifier="= alpha:0.7529"/>
|
||||||
<Modifier name="selection rect" modifier="= alpha:0.4666"/>
|
<Modifier name="selection rect" modifier="= alpha:0.4666"/>
|
||||||
<Modifier name="silence" modifier="= alpha:0.4784"/>
|
<Modifier name="silence" modifier="= alpha:0.4784"/>
|
||||||
|
|
|
||||||
|
|
@ -525,11 +525,16 @@ RegionView::set_colors ()
|
||||||
uint32_t
|
uint32_t
|
||||||
RegionView::get_fill_color () const
|
RegionView::get_fill_color () const
|
||||||
{
|
{
|
||||||
uint32_t f = TimeAxisViewItem::get_fill_color();
|
ArdourCanvas::Color f = TimeAxisViewItem::get_fill_color();
|
||||||
|
char const *modname;
|
||||||
|
|
||||||
if (_region->opaque()) {
|
if (_region->opaque()) {
|
||||||
f = UINT_RGBA_CHANGE_A (f, 255);
|
modname = "opaque region base";
|
||||||
|
} else {
|
||||||
|
modname = "transparent region base";
|
||||||
}
|
}
|
||||||
return f;
|
|
||||||
|
return HSV(f).mod (ARDOUR_UI::config()->modifier (modname)).color ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue