Add a colour for music-locked meters.
This commit is contained in:
@@ -91,8 +91,13 @@ Editor::draw_metric_marks (const Metrics& metrics)
|
||||
|
||||
if ((ms = dynamic_cast<const MeterSection*>(*i)) != 0) {
|
||||
snprintf (buf, sizeof(buf), "%g/%g", ms->divisions_per_bar(), ms->note_divisor ());
|
||||
metric_marks.push_back (new MeterMarker (*this, *meter_group, UIConfiguration::instance().color ("meter marker"), buf,
|
||||
*(const_cast<MeterSection*>(ms))));
|
||||
if (ms->position_lock_style() == MusicTime) {
|
||||
metric_marks.push_back (new MeterMarker (*this, *meter_group, UIConfiguration::instance().color ("meter marker music"), buf,
|
||||
*(const_cast<MeterSection*>(ms))));
|
||||
} else {
|
||||
metric_marks.push_back (new MeterMarker (*this, *meter_group, UIConfiguration::instance().color ("meter marker"), buf,
|
||||
*(const_cast<MeterSection*>(ms))));
|
||||
}
|
||||
} else if ((ts = dynamic_cast<const TempoSection*>(*i)) != 0) {
|
||||
if (UIConfiguration::instance().get_allow_non_quarter_pulse()) {
|
||||
snprintf (buf, sizeof (buf), "%.3f/%.0f", ts->beats_per_minute(), ts->note_type());
|
||||
|
||||
@@ -240,6 +240,7 @@
|
||||
<ColorAlias name="meter bar" alias="color 7"/>
|
||||
<ColorAlias name="meter color BBC" alias="color 8"/>
|
||||
<ColorAlias name="meter marker" alias="color 19"/>
|
||||
<ColorAlias name="meter marker music" alias="color 5"/>
|
||||
<ColorAlias name="meterbridge label: fill" alias="color 34"/>
|
||||
<ColorAlias name="meterbridge label: fill active" alias="color 46"/>
|
||||
<ColorAlias name="meterbridge label: led" alias="color 9"/>
|
||||
|
||||
@@ -240,6 +240,7 @@
|
||||
<ColorAlias name="meter bar" alias="color 7"/>
|
||||
<ColorAlias name="meter color BBC" alias="color 8"/>
|
||||
<ColorAlias name="meter marker" alias="color 19"/>
|
||||
<ColorAlias name="meter marker music" alias="color 5"/>
|
||||
<ColorAlias name="meterbridge label: fill" alias="color 81"/>
|
||||
<ColorAlias name="meterbridge label: fill active" alias="color 48"/>
|
||||
<ColorAlias name="meterbridge label: led" alias="meter color8"/>
|
||||
|
||||
@@ -240,6 +240,7 @@
|
||||
<ColorAlias name="meter bar" alias="color 7"/>
|
||||
<ColorAlias name="meter color BBC" alias="color 8"/>
|
||||
<ColorAlias name="meter marker" alias="color 19"/>
|
||||
<ColorAlias name="meter marker music" alias="color 5"/>
|
||||
<ColorAlias name="meterbridge label: fill" alias="color 34"/>
|
||||
<ColorAlias name="meterbridge label: fill active" alias="color 46"/>
|
||||
<ColorAlias name="meterbridge label: led" alias="color 9"/>
|
||||
|
||||
@@ -240,6 +240,7 @@
|
||||
<ColorAlias name="meter bar" alias="color 7"/>
|
||||
<ColorAlias name="meter color BBC" alias="color 8"/>
|
||||
<ColorAlias name="meter marker" alias="color 19"/>
|
||||
<ColorAlias name="meter marker music" alias="color 5"/>
|
||||
<ColorAlias name="meterbridge label: fill" alias="color 34"/>
|
||||
<ColorAlias name="meterbridge label: fill active" alias="color 46"/>
|
||||
<ColorAlias name="meterbridge label: led" alias="color 9"/>
|
||||
|
||||
@@ -245,6 +245,7 @@
|
||||
<ColorAlias name="meter bar" alias="color 67"/>
|
||||
<ColorAlias name="meter color BBC" alias="color 1"/>
|
||||
<ColorAlias name="meter marker" alias="color 108"/>
|
||||
<ColorAlias name="meter marker music" alias="color 5"/>
|
||||
<ColorAlias name="meterbridge label: fill" alias="color 42"/>
|
||||
<ColorAlias name="meterbridge label: fill active" alias="color 1"/>
|
||||
<ColorAlias name="meterbridge label: led" alias="color 9"/>
|
||||
|
||||
Reference in New Issue
Block a user