Summary: | Oxygen decoration doesn't apply custom gradient rule to libreoffice | ||
---|---|---|---|
Product: | [Plasma] Oxygen | Reporter: | Benjamin M <alvanx> |
Component: | win deco | Assignee: | Hugo Pereira Da Costa <hugo.pereira.da.costa> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hugo.pereira.da.costa, jurial_munkey |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Benjamin M
2011-06-15 09:46:47 UTC
Hi Benjamin, i'll investigate tomorrow. For kde 4.7 though, I want to point out I attempted to add "automatic" detection from the decoration whether it should draw the gradient or not (basically based on whether a flag is set by the widget style, when you use oxygen for Qt apps, and oxygen-gtk for Gtk apps, including libreoffice). Will keep you posted. Hey, great to hear! That sounds exciting. From my experience, this is due to the fact that the upper/lower case of LibreOffice classname is quite "random" at startup, depending on which application you run, and whether you pass it an argument or not ... From my testing, using "(l|L)ibre(o|O)ffice" as a regular expression works in all cases. Can you confirm ? And if yes, well, simply close the bug :) Hugo I tried your suggested fix and unfortunately, it didn't work. I did notice a pattern though: Any document that I opened (out of six or so), no matter the file type, ignored the window gradient settings. But when I created a new document from within LO writer, that window respected the settings (could this have to do with the title?). So I think you are on the right track! Well, but opening from within LO writer, but from a template again produces the bug. I was having this exact same issue. Putting "(l|L)ibre(o|O)ffice*" [without quotes] as the window class solved it for me. However, it didn't work when I put "(l|L)ibre(o|O)ffice-writer" or any other combination. Only "(l|L)ibre(o|O)ffice*" by itself, as a separate rule, worked. KDE 4.6.2, Kubuntu 11.04 ok. So the full issue seems to be about reg-exp and the fancy names for libreoffice. Besides, for kde4.7 you can set the decoration background painting so that it obeys some hint set by the style, and in the case of oxygen-gtk (or any other style in fact), this would default to "flat" for libreoffice. So: closing this bug as fixed. |