Book Image

jQuery UI Themes Beginner's Guide

By : Adam Boduch
Book Image

jQuery UI Themes Beginner's Guide

By: Adam Boduch

Overview of this book

<p>Web applications today generally use at least some JavaScript to enhance the look and feel of the user interface. The jQuery UI toolkit gives web developers a set of widgets as well as a framework for developing and applying themes.</p> <p><em>jQuery UI Themes: Beginner's Guide</em> is for web developers who want to design professional-looking applications that are resilient to change. It is a step-by-step guide that goes beyond showing how to switch themes in a user interface built with jQuery UI and offers developers a practical guide to designing their own themes and gives them insight as to how themes work.</p> <p><em>jQuery UI Themes Beginner's Guide</em> starts with themes in general and why they're important in web applications today. We gradually move forward, covering jQuery UI basics, eventually aiming for a full understanding of the theme framework. The ThemeRoller application is a powerful tool – allowing developers to easily adjust theme settings. In addition to seeing how the ThemeRoller works, we take a more in-depth look at the CSS framework internals allowing readers to develop the ability to adjust themes in ways the ThemeRoller cannot. This includes everything from special effects to theming custom widgets. There is no limit to what your theme can change.</p> <p>Once you've read this book, you'll no only be well-versed in theming jargon, you'll also be able to take one look at any jQuery UI application and understand why and how it looks the way it does.</p>
Table of Contents (17 chapters)
jQuery UI Themes Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action - changing the corner radius


You've probably noticed that all the sample widgets in the ThemeRoller application have rounded corners. This is a nice visual enhancement; most desktop environments have widgets with rounded corners. Straight corners can get boring after a while.

Something we can define in jQuery UI themes is the roundness of widget corners. That is, we can change the corner radius:

  1. Continuing with our theme design, expand the Corner Radius section.

  2. Change the value of the Corners field to 8px:

What just happened?

We've used the ThemeRoller to increase the roundness of our widget corners. The change may seem rather drastic - we've doubled the corner radius setting from 4px to 8px. The change, however, isn't overly sensational. Here is what the sample accordion widget looked like before the change was made:

Here is what the sample accordion widget looks like after the change:

We can see that the corners of both the accordion header sections and the accordion content...