Learning Ext JS 3

Themes installation and "Look and Feel" configuration Más videos

Descripción del tema

By default, the Ext JS components are displayed in light blue, which is a nice color but maybe not everyone likes it; this is why there are many different styles where you can choose from, install them and change the appearance of the components.

Resources

For this chapter you need to download the resources which are at the top right of the screen, you need to unzip the file and copy the HTML to the folder "installation" that we have created in previous chapters. Don't forget that this folder is found inside of the Web Server folder that you have installed at the beginning of this course.

Default Style

When we execute the HTML, the one we have downloaded, in the browser (Firefox, IE, etc) a light blue window will appear; this is the style that the Ext components have by default. Default Ext JS theme

Installation of the themes

With the library you have previously downloaded there's another theme in gray (ext/resources/css/xtheme-gray.css), you need to import this file to the HTML document that we have been working on, adding it after the file "ext-all.css" like this:
<link rel="stylesheet" type="text/css" href="../ext-2.2/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../ext-2.2/resources/css/xtheme-gray.css" />
Ext JS gray theme When you update the example page you can see that the color of the window has changed, now it is in gray.

Download and install themes from users

The user community of Ext have created many more themes, you can download them from the official site. Once you have download a theme that you like unzip the file; there's going to be two folders, one is called "css" and the other one is called "images". To install this theme you need to copy the content of the folder "css" and "images" to the folder where the framework Ext is, in ext-2.2/resources/css and ext-2.2/resources/images respectively. After you have copied the folder you need to import the style to the HTML like this:
<link rel="stylesheet" type="text/css" href="../ext-2.2/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../ext-2.2/resources/css/xtheme-slickness.css" />
This is how you install the new theme, update the page and you will see that the appearance of the window has changed. Ext JS black theme

Te gustaría recibir más tutoriales como este en tu correo?

Este tutorial pertenece al curso Learning Ext JS 3, te recomiendo revises el resto de los tutoriales ya que están en secuencia de menor a mayor complejidad.

Si deseas recibir más tutoriales como este en tu correo te recomiendo registrarte al curso, si ya eres miembro solo identifícate y registrate al curso, si no eres miembro te puedes registrar gratuitamente!

Si no gustas registrarte en este momento no es necesario! Aún así puedes recibir los nuevos tutoriales en tu correo! Jamás te enviaremos Spam y puedes cancelar tu suscripción en cualquier momento.

¿Olvidaste tu contraseña?

5Comentarios

  • Avatar-6 Eric 01/02/2011

    Hey thanks, i'm just beginning with extjs and i was wondering how to do :-)

    • Avatar-7 Crysfel 01/02/2011

      You're welcome!

      • Avatar-10 Senthil 02/12/2011

        Crysfel, I am new to sencha touch,your tutorial is excellent, I started reading chapter by chapter :-)

        • Avatar-10 Rigo 24/04/2013

          Crysfel, I have done tha apparience change from blue windows to gray windows like you said, but, there are more styles like red or green? how can i do my own style?

          • Avatar-5 JOSE RUIZ 07/05/2015

            la direccion donde se descargan los temas ya no esta disponible, tienes otra direccion de donde pueda obtener los theme

            Instructor del curso

            Crysfel3

            Autor: Crysfel Villa

            Software engineer with more than 7 years of experience in web development.

            Descarga Código Fuente Ver Demostración

            Regístrate a este curso

            Este tutorial pertenece al curso Learning Ext JS 3, revisa todos los tutoriales que tenemos en este mismo curso ya que están en secuencia y van de lo más sencillo a lo más complicado.

            Tendrás acceso a descargar los videos, códigos y material adicional.

            Podrás resolver los ejercicios incluidos en el curso así como los Quizzes.

            Llevarás un registro de tu avance.