[MGWT] Problème d'agrandissement du texte dans le label
Bonjour,
J'utilise mgwt qui est conçu pour faire des applications web-mobile.
En fait, je n'arrive pas à agrandir le texte dans un label.
Dans mon fichier AuthenticationPage.ui.xml, j'utilise entres-autres les deux lignes suivantes :
<ui:with field='res' type='example.resources.Resources'/>
<g:Label ui:field="labUsername" addStyleNames="{res.style.labels}">Username</g:Label>
L'interface 'Resources.java' est la suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
package example.resources;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.CssResource.NotStrict;
public interface Resources extends ClientBundle {
public static Resources R = GWT.create(Resources.class);
@NotStrict
@Source("mycss.css")
public Style style();
public interface Style extends CssResource {
@ClassName("labels")
String labels();
}
} |
mycss.css :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
.headerPan {
background-image:none;
background-color:blue !important;
height:40px;
border-bottom:1px solid black;
position : relative;
font-size:10.0 em;
}
.labels {
color:blue;
font-size:2em;
}
.textb {
color : yellow;
}
.button {
background-color:blue;
} |
Merci