diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2010-12-05 17:03:37 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2010-12-05 17:03:37 +0000 |
commit | 35daa32e80713e0162bc296d56ec846ae0342ffd (patch) | |
tree | 05ee63d2807501796265b3b2437d5d294fbc9b73 | |
parent | bd39b8f0d7671dc66feec0a714a916de61f31ee3 (diff) | |
download | netsurf-35daa32e80713e0162bc296d56ec846ae0342ffd.tar.gz netsurf-35daa32e80713e0162bc296d56ec846ae0342ffd.tar.bz2 |
Change styles used for plotting local history to make it more obvious what the current page is, along with other minor improvements.
svn path=/trunk/netsurf/; revision=11008
-rw-r--r-- | desktop/history_core.c | 5 | ||||
-rw-r--r-- | desktop/plot_style.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c index 7b7f72a38..06b2cc797 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -616,14 +616,14 @@ bool history_redraw_entry(struct history *history, size_t char_offset; int actual_x; struct history_entry *child; - colour c = entry == history->current ? 0x0000ff : 0x333333; + colour c = entry == history->current ? 0xff0000 : 0x333333; int tailsize = 5; int xoffset = x - x0; int yoffset = y - y0; plot_style_t pstyle_history_rect = { .stroke_type = PLOT_OP_TYPE_SOLID, .stroke_colour = c, - .stroke_width = entry == history->current ? 2 : 1, + .stroke_width = entry == history->current ? 3 : 1, }; plot_font_style_t fstyle = *plot_style_font; @@ -649,6 +649,7 @@ bool history_redraw_entry(struct history *history, fstyle.background = 0xffffff; fstyle.foreground = c; + fstyle.weight = entry == history->current ? 900 : 400; if (!plot.text(entry->x + xoffset, entry->y + HEIGHT + 12 + yoffset, entry->page.title, char_offset, &fstyle)) diff --git a/desktop/plot_style.c b/desktop/plot_style.c index 94e52ca00..504609e65 100644 --- a/desktop/plot_style.c +++ b/desktop/plot_style.c @@ -134,13 +134,14 @@ plot_style_t *plot_style_stroke_lightwbasec = &plot_style_stroke_lightwbasec_sta static plot_style_t plot_style_stroke_history_static = { .stroke_type = PLOT_OP_TYPE_SOLID, .stroke_colour = 0x333333, + .stroke_width = 2, }; plot_style_t *plot_style_stroke_history = &plot_style_stroke_history_static; /* Generic font style */ static const plot_font_style_t plot_style_font_static = { .family = PLOT_FONT_FAMILY_SANS_SERIF, - .size = 10 * FONT_SIZE_SCALE, + .size = 8 * FONT_SIZE_SCALE, .weight = 400, .flags = FONTF_NONE, .background = 0xffffff, |