Skip to content
  • Christian Hergert's avatar
    gd-two-lines-renderer: use Pango alpha attribute · e1bf1d4e
    Christian Hergert authored and Michael Catanzaro's avatar Michael Catanzaro committed
    This code was previously trying to alter the color of the second
    line by manipulating the foreground color. As Epiphany requires
    GTK+ 3.22, we can rely on the Pango alpha attr working correctly
    and therefore do not need this fallback.
    
    The problem with the code previously is that it would not
    respect the GTK_CELL_RENDERER_SELECTED state. It would draw the
    altered non-selected state with a dim-level on top of a
    selected row.
    
    By simply avoiding the foreground color altogether (and
    inheriting it from the PangoLayout state when rendering), we
    get the appropriate color and also blend into the selected row
    state properly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784431
    e1bf1d4e