mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
change UIConfig to use accessor/setter methods like RCConfig so that ParameterChanged methods can actually be emitted; add variable (over a small range) background shading for all TimeAxisViewItems
This commit is contained in:
parent
eed0201c07
commit
96eee9e7a1
40 changed files with 365 additions and 251 deletions
|
|
@ -112,7 +112,7 @@ ShuttleControl::on_size_allocate (Gtk::Allocation& alloc)
|
|||
|
||||
//background
|
||||
pattern = cairo_pattern_create_linear (0, 0, 0, alloc.get_height());
|
||||
uint32_t col = ARDOUR_UI::config()->canvasvar_Shuttle.get();
|
||||
uint32_t col = ARDOUR_UI::config()->get_canvasvar_Shuttle();
|
||||
int r,b,g,a;
|
||||
UINT_TO_RGBA(col, &r, &g, &b, &a);
|
||||
cairo_pattern_add_color_stop_rgb (pattern, 0.0, r/400.0, g/400.0, b/400.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue