xyl0n / iris-light

A light version of the Iris Gtk theme. Aims to be clean, simple and bold.
GNU General Public License v3.0
168 stars 9 forks source link

Distorted Window Title in Focused Windows #15

Closed jdelacroix closed 10 years ago

jdelacroix commented 10 years ago

I attached a screenshot of the gnome-terminal window (as an example), which has a distorted title whenever it is focused. Unfocused windows do not have a distorted title. I tested several different fonts, but the problem persists.

GTK+ 3.10.6 on Gentoo/AMD64.

Fantastic theme! Thank you.

screenshot from 2014-01-28 11 35 38

jdelacroix commented 10 years ago

In metacity-1/metacity-theme-3.xml, I trimmed down the <draw_ops name="title_focused">...</draw_ops> section to:

<draw_ops name="title_focused">
        <title version="< 3.1"
               x="(0 `max` ((width - title_width) / 2))"
               y="(0 `max` ((height - title_height) / 2)) + 1"
               color="C_title_focused" />
        <title version=">= 3.1"
               x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
               y="(0 `max` ((height - title_height) / 2)) + 1"
               ellipsize_width="width"
               color="C_title_focused_hilight_dark" />
</draw_ops>

This is what the focused window title looks like now:

screenshot from 2014-01-28 14 17 48

xyl0n commented 10 years ago

@jdelacroix This was being caused by a shadow appearing under the title. Strangely, it was not affecting me, but I have added your patch into the latest commit. You probably want to download the theme again. If the issue has stopped, then I'll close the bug.

jdelacroix commented 10 years ago

@xyl0n, I downloaded the theme again and it works perfectly. Thank you!