commit/galaxy-central: jgoecks: Trackster: use user preferences when drawing summary tree.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/c784699c544a/ changeset: r5493:c784699c544a user: jgoecks date: 2011-05-02 20:43:09 summary: Trackster: use user preferences when drawing summary tree. affected #: 1 file (62 bytes) --- a/static/scripts/trackster.js Mon May 02 13:59:49 2011 -0400 +++ b/static/scripts/trackster.js Mon May 02 14:43:09 2011 -0400 @@ -2391,7 +2391,7 @@ this.container_div.find(".yaxislabel").remove(); var max_label = $("<div />").addClass('yaxislabel'); max_label.text( result.max ); - max_label.css({ position: "absolute", top: "22px", left: "10px" }); + max_label.css({ position: "absolute", top: "22px", left: "10px", color: this.prefs.label_color }); max_label.prependTo(this.container_div); // Create canvas var canvas = this.view.canvas_manager.new_canvas(); @@ -2850,14 +2850,14 @@ if (!y) { continue; } var y_px = y / max * height if (y !== 0 && y_px < 1) { y_px = 1; } - - ctx.fillStyle = "black"; + + ctx.fillStyle = this.prefs.block_color; ctx.fillRect( x, base_y - y_px, delta_x_px, y_px ); // Draw number count if it can fit the number with some padding, otherwise things clump up var text_padding_req_x = 4; if (this.prefs.show_counts && (ctx.measureText(y).width + text_padding_req_x) < delta_x_px) { - ctx.fillStyle = "#666"; + ctx.fillStyle = this.prefs.label_color; ctx.textAlign = "center"; ctx.fillText(y, x + (delta_x_px/2), 10); } Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket