summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-01 21:58:50 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-01 21:58:50 +0200
commitcd33dab67005a1be2988ef784e3c2b50c7bd8349 (patch)
tree8e87cf246fa51c7fca1bf0c04e9295e06281be07 /plugins
parent9f8308c9f02a2552e1695449f69ff360f1177f5b (diff)
gtkui: changed seekpos colors
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddbseekbar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/gtkui/ddbseekbar.c b/plugins/gtkui/ddbseekbar.c
index 2ccba921..1ae43234 100644
--- a/plugins/gtkui/ddbseekbar.c
+++ b/plugins/gtkui/ddbseekbar.c
@@ -346,7 +346,7 @@ seekbar_draw (GtkWidget *widget, cairo_t *cr) {
int sc = time-hr*3600-mn*60;
snprintf (s, sizeof (s), "%02d:%02d:%02d", hr, mn, sc);
- cairo_set_source_rgba (cr, 0, 0, 0, 0.5);
+ cairo_set_source_rgba (cr, clr_selection.red/65535.f, clr_selection.green/65535.f, clr_selection.blue/65535.f, 0.7f);
cairo_save (cr);
cairo_set_font_size (cr, 20);
@@ -357,11 +357,13 @@ seekbar_draw (GtkWidget *widget, cairo_t *cr) {
self->textwidth = ex.width + 20;
}
- clearlooks_rounded_rectangle (cr, ax + aw/2 - self->textwidth/2, ay+4, self->textwidth, ah-8, 4, 0xff);
+ clearlooks_rounded_rectangle (cr, ax + aw/2 - self->textwidth/2, ay+4, self->textwidth, ah-8, 3, 0xff);
cairo_fill (cr);
cairo_move_to (cr, self->textpos, ay+ah/2+ex.height/2);
- cairo_set_source_rgb (cr, 1, 1, 1);
+ GdkColor clr;
+ gtkui_get_listview_selected_text_color (&clr);
+ cairo_set_source_rgb (cr, clr.red/65535.f, clr.green/65535.f, clr.blue/65535.f);
cairo_show_text (cr, s);
cairo_restore (cr);
}