It appears transparent-bg-hint needs to be set with
g_object_set_data(), not as a style property (which is what your gtkrc
change does).
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>
-Scott
On Wed, Oct 27, 2010 at 11:06 AM, Anton Vayvod <ava...@chromium.org> wrote:
From the same file it looks like the hint is only supported by Mozilla's own paint code - in moz_gtk_entry_paint().They also install the property honors-transparent-bg-hint themselves in moz_gtk_init().That means I'll have to do similar thing with gtk sources we use for Chrome OS, does it? Or should I try to reimplement textfield in views?chromium-os-dev: I only found ebuild file for gtk that fetches the source and some patches that are probably being applied to it before compiling. There's nothing like gtk package I could work on using cros_workon, right?
Sorry, I'm not too familiar with how Mozilla works. I am certain that
they don't need to patch GTK though, since they run on normal Linux
systems. I believe the moz_gtk_entry_paint() stuff is used for
drawing things that look GTK entry fields in web contents, which I
guess is not what you want to implement. Sorry for the bad lead.
> Or should I try to reimplement textfield in views?
I think that is a much larger task than you would anticipate. People
have talked about reusing WebKit's text fields. I think that's
probably a better long-term solution.
If I were asked me to fix this, I would probably look into just
changing the entry edge color to match the background color. I'm
certain it's possible to make a text field that doesn't have an ugly
white border as that's how it looks on ordinary Linux systems.
From reading
https://bugzilla.gnome.org/show_bug.cgi?id=534611
it appears the entry field has a square window, so there is no way to
make the edges transparent, and also that the base[NORMAL] or
bg[NORMAL] colors control the color used to fill in the corners.
. Communicate to the theme engine these widgets should be rendered
differently (you could do this by setting a property the theme engine
looks for, or modifying the rc file).
. Do all the painting yourself.
-Scott
-Scott
I think you could manually control the shape of the window, like we do
with the find bar.
I'm addressing exactly the problem with textfields on login screen, so my background is gradient. I'd be glad to change textfield background to something darker at least to make the artifact less noticeable.
Well, actually not, it's only mentioned by Kan there for a couple of times and there's a reference to me trying to fix this.On Sun, Oct 31, 2010 at 3:35 PM, Anton Vayvod <ava...@chromium.org> wrote:
It's number 8 in the list of http://code.google.com/p/chromium-os/issues/detail?id=8101On Sat, Oct 30, 2010 at 6:17 AM, oshima <osh...@chromium.org> wrote:
I discuss this with xiyuan and the best, short-term solution seems to be disable gtk's border on this textfield andwe draw the border instead. There may be better way, but since this will be replaced with domui in near future,we believe this is good enough for beta.
On Sun, Oct 31, 2010 at 3:46 PM, Anton Vayvod <ava...@chromium.org> wrote:Well, actually not, it's only mentioned by Kan there for a couple of times and there's a reference to me trying to fix this.On Sun, Oct 31, 2010 at 3:35 PM, Anton Vayvod <ava...@chromium.org> wrote:
It's number 8 in the list of http://code.google.com/p/chromium-os/issues/detail?id=8101On Sat, Oct 30, 2010 at 6:17 AM, oshima <osh...@chromium.org> wrote:
I discuss this with xiyuan and the best, short-term solution seems to be disable gtk's border on this textfield andwe draw the border instead. There may be better way, but since this will be replaced with domui in near future,we believe this is good enough for beta.I guess this can be done in gtk_view_entry expose event handler, right? I see that even if I don't call gtk_entry expose handler there at all, the whole area is still filled with the same white color.Changing gtk_view_entry could break some other textfields on Linux though, which I'd like to avoid.