Use dialog background colour for the port matrix.

git-svn-id: svn://localhost/ardour2/branches/3.0@5368 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-07-17 13:57:10 +00:00
parent 7eea227bcd
commit be40312e01
3 changed files with 13 additions and 11 deletions

View file

@ -36,7 +36,6 @@ PortMatrixBody::PortMatrixBody (PortMatrix* p)
_row_labels = new PortMatrixRowLabels (p, this); _row_labels = new PortMatrixRowLabels (p, this);
_grid = new PortMatrixGrid (p, this); _grid = new PortMatrixGrid (p, this);
modify_bg (Gtk::STATE_NORMAL, Gdk::Color ("#00000"));
add_events (Gdk::LEAVE_NOTIFY_MASK | Gdk::POINTER_MOTION_MASK); add_events (Gdk::LEAVE_NOTIFY_MASK | Gdk::POINTER_MOTION_MASK);
} }

View file

@ -110,3 +110,8 @@ PortMatrixComponent::dimensions ()
return std::make_pair (_width, _height); return std::make_pair (_width, _height);
} }
Gdk::Color
PortMatrixComponent::background_colour ()
{
return _matrix->get_style()->get_bg (Gtk::STATE_NORMAL);
}

View file

@ -88,13 +88,13 @@ protected:
} }
/** @return width of thin lines in the grid */ /** @return width of thin lines in the grid */
static uint32_t thin_grid_line_width () { static double thin_grid_line_width () {
return 1; return 0.5;
} }
/** @return width of thick lines in the grid */ /** @return width of thick lines in the grid */
static uint32_t thick_grid_line_width () { static double thick_grid_line_width () {
return 2; return 1;
} }
/** @return space around the connection indicator */ /** @return space around the connection indicator */
@ -111,12 +111,10 @@ protected:
return M_PI / 4; return M_PI / 4;
} }
/* XXX I guess these colours should come from a theme, or something */
/** @return background colour */ /** @return background colour */
static Gdk::Color background_colour () { Gdk::Color background_colour ();
return Gdk::Color ("#000000");
} /* XXX I guess these colours should come from a theme, or something */
/** @return text colour */ /** @return text colour */
static Gdk::Color text_colour () { static Gdk::Color text_colour () {
@ -125,7 +123,7 @@ protected:
/** @return grid line colour */ /** @return grid line colour */
static Gdk::Color grid_colour () { static Gdk::Color grid_colour () {
return Gdk::Color ("#333333"); return Gdk::Color ("#000000");
} }
/** @return colour of association blobs */ /** @return colour of association blobs */