Cell widgets and GSS

186 views
Skip to first unread message

Julien Dramaix

unread,
Oct 29, 2014, 8:50:34 AM10/29/14
to google-web-tool...@googlegroups.com
Now that GSS will be shipped in GWT 2.7 as an experimental feature, I'm wondering if we shouldn't provide GSS files for all existing CssResource interfaces present in GWT. The idea is to keep the associated .css files and use them by default but also to provide GSS files in order that people can use GSS to style their widgets.

Let take the cell widgets (CelTable, CellList...) as example. If you want to override default style, you do something like:

public interface TableResources extends CellTable.Resources {
    interface Style extends CellTable.Style {
    }

    @Override
    @Source({ CellTable.Style.DEFAULT_CSS, "css/table.css"})
    Style cellTableStyle();
}

In this case, it's impossible to use GSS because you cannot mix .css and .gss files on the same resource. So the only mean to use GSS is to first convert manually the default css file to gss and include it in your application or start from scratch.

So I would like that GWT provides these gss files that user can use in their @Source annotations in order to override the default style.

What do you guys think ?

Julien

Goktug Gokdogan

unread,
Oct 29, 2014, 1:49:48 PM10/29/14
to google-web-toolkit-contributors
The original idea to make the GSS default was to ship .gss files next to .css files and let the generator automatically use the file with the gss extension.
We can probably ship the gss files but I think it is optional at this point.


Julien

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D6To8pLn%3D0EmgLRQdByrx_m0-CURafkr7FhZRMwxGXbqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Julien Dramaix

unread,
Oct 30, 2014, 10:51:42 AM10/30/14
to google-web-toolkit-contributors
If GSS was the default, we would have shipped only .gss files.
What I want is to provide the .gss files for people using GSS and want to override some style class of cell widgets. We have this case at Arcbees where css guys want to use their existing mixins to style CellTable.



Daniel Kurka

unread,
Oct 30, 2014, 1:19:59 PM10/30/14
to google-web-tool...@googlegroups.com
I think we should not provide these files as of yet. If someone wants to make the transition right now they can easily use the converter with these files and convert them to gss themselves.
I think we want to make that transition once GSS is default (or about to be default) inside of Google as a testing ground.

-Daniel


For more options, visit https://groups.google.com/d/optout.



--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Julien Dramaix

unread,
Oct 30, 2014, 1:54:08 PM10/30/14
to google-web-tool...@googlegroups.com
ok. I will do that in an external third party library

Goktug Gokdogan

unread,
Oct 30, 2014, 2:02:23 PM10/30/14
to google-web-toolkit-contributors
On Thu, Oct 30, 2014 at 7:51 AM, Julien Dramaix <julien....@gmail.com> wrote:
If GSS was the default, we would have shipped only .gss files.

That's not true. We will still have a release where GSS is default and css is supported but deprecated that requires css files to be there.
 
Reply all
Reply to author
Forward
0 new messages