Using the Moblin Theme

The Moblin theme provides a consistent and customizable look and feel for Gnome. It is recommended that all applications for Moblin use the Moblin theme, and customize it as needed.

The Tic-Tac-Toe Sample
We have developed a sample application, Tic Tac Toe, which can be downloaded here.

This sample:

  • is intended as a sample application to demonstrate the use of Moblin themes
  • demonstrates the use of various GTK widgets, such as buttons, labels, dialogs, check boxes, menu items, text entry, and images
  • shows how to customize standard widgets
  • demonstrates the using the Hildon program and using D-Bus services

Before continuing it is strongly suggested that readers be at least familiar with the following:

Installing, Uninstalling and Launching the Application
This sample application requires autotools (automake) to install. Because the application is written in Python, you don't have to compile it.

To install the application on the Moblin platform, type the following command from the sample's source directory on the target:

# make install

To uninstall the application, change into the application's source directory, and type the following command:

# make uninstall

To launch the application from the command line, type the following command:

# theme_demo

Basic Usage
The sample application is a game of 3x3 Tic-Tac-Toe. The settings dialog pops up when the user starts the application. The dialog prompts for the username and the desired difficulty level. Both of these fields are optional.

The Reset button resets the scores. This brings the number of wins and losses to zero. A confirmation dialog will pop up before resetting the score.

The New button is used to start a new game. If the new button is pressed during a game, a new game is started, but the scores won't be affected.

Settings
The Settings dialog can be accessed using the menu. The username in the settings appears in the welcome label. There are two difficulty levels, easy and hard.

  • In the easy level, the user has a chance to win.
  • In the hard level, the user can draw with the computer or lose but cannot win. The default difficulty level is easy.
The Moblin Theme Guide
If you would like more information regarding the Gnome Theme, you may refer to the document, Moblin Theme Guide, available on the moblin-wiki.  This document reviews the relevant subsystems available for theming and establishes a set of Moblin theming assumptions, guidelines, and rules. It also reviews and makes recommendations on how these subsystems should be used to meet Moblin theming guidelines, reviews the tools available to do so, and walks through some HOWTOs for theme creation and modification.