Hildon-Extras

(HeColorDialog)
(Widget Gallery)
Line 16: Line 16:
* ''(add yours here)''
* ''(add yours here)''
-
== Widget Gallery ==
+
==Widget Gallery==
-
 
+
-
[[Image:HeAboutDialog.png|thumb|The about dialog from MaePad]]
+
===HeAboutDialog===
===HeAboutDialog===
 +
 +
[[Image:HeAboutDialog.png|thumb|The about dialog from MaePad]]
The HeAboutDialog is a replacement for GtkAboutDialog and provides a finger-friendly, good-looking about dialog with optional buttons for:
The HeAboutDialog is a replacement for GtkAboutDialog and provides a finger-friendly, good-looking about dialog with optional buttons for:
Line 31: Line 31:
If you are writing a Python application, you might be interested in the Python port of HeAboutDialog: [http://repo.or.cz/w/gpodder.git/blob_plain/HEAD:/src/gpodder/gtkui/frmntl/about.py Download about.py]
If you are writing a Python application, you might be interested in the Python port of HeAboutDialog: [http://repo.or.cz/w/gpodder.git/blob_plain/HEAD:/src/gpodder/gtkui/frmntl/about.py Download about.py]
 +
 +
=== HeCheckButton ===
[[Image:HeCheckButton.png|thumb|An example check button]]
[[Image:HeCheckButton.png|thumb|An example check button]]
-
[[Image:HeFullscreenButton.png|thumb|The HeFullScreenButton]]
 
-
 
-
=== HeCheckButton ===
 
HeCheckButton is a check button with primary and secondary labels. The standard HildonCheckButton supports only one label.
HeCheckButton is a check button with primary and secondary labels. The standard HildonCheckButton supports only one label.
Line 42: Line 41:
=== HeFullscreenButton ===
=== HeFullscreenButton ===
-
HeFullscreenButton is a button to '''leave''' full screen mode. It is visible after the user touched the screen or pressed a key and it vanishes after 5 seconds of inactivity.
 
-
[[Image:HeSimpleColorDialog.png|thumb|The simple color dialog in action]]
+
[[Image:HeFullscreenButton.png|thumb|The HeFullScreenButton]]
 +
 
 +
HeFullscreenButton is a button to '''leave''' full screen mode. It is visible after the user touched the screen or pressed a key and it vanishes after 5 seconds of inactivity.
=== HeSimpleColorDialog ===
=== HeSimpleColorDialog ===
 +
 +
[[Image:HeSimpleColorDialog.png|thumb|The simple color dialog in action]]
This dialog provides a finger-friendly, limited list of colors (a Tango-ish color palette) for the user to choose from. Especially useful when the color selection does not have to be "that special shade of green" but rather "a nice green" (for example to colorize categories or items).
This dialog provides a finger-friendly, limited list of colors (a Tango-ish color palette) for the user to choose from. Especially useful when the color selection does not have to be "that special shade of green" but rather "a nice green" (for example to colorize categories or items).
Line 56: Line 58:
* MaePad uses it for coloring the text of checklist items and for the color in sketches ([http://repo.or.cz/w/maepad.git/blob/HEAD:/src/ui/callbacks.c src/ui/callbacks.c])
* MaePad uses it for coloring the text of checklist items and for the color in sketches ([http://repo.or.cz/w/maepad.git/blob/HEAD:/src/ui/callbacks.c src/ui/callbacks.c])
 +
 +
===HeColorDialog===
[[Image:HeColorDialog.png|thumb|The color dialog]]
[[Image:HeColorDialog.png|thumb|The color dialog]]
-
===HeColorDialog===
 
This dialog lets the user to select a color by selecting the intensity of the red, green, and blue channels. Also provides hex input/output of colours.
This dialog lets the user to select a color by selecting the intensity of the red, green, and blue channels. Also provides hex input/output of colours.
Line 65: Line 68:
=== HeFontDialog ===
=== HeFontDialog ===
-
Lets the user choose a font together with a font size. It also offers bold and italic styles.
 
-
[[Image:HeFontDialog.png]]
+
[[Image:HeFontDialog.png|thumb|The font dialog]]
 +
 
 +
Lets the user choose a font together with a font size. It also offers bold and italic styles.
=== HeColorButton ===
=== HeColorButton ===
-
On tapping the HeColorButton opens the HeColorDialog and lets the user select a color. This color is then displayed on the HeColorButton.
 
-
[[Image:HeColorButton.png]]
+
[[Image:HeColorButton.png|thumb|The color button]]
 +
 
 +
On tapping the HeColorButton opens the HeColorDialog and lets the user select a color. This color is then displayed on the HeColorButton.
=== HeFontButton ===
=== HeFontButton ===
 +
 +
[[Image:HeFontButton.png|thumb|The font button]]
 +
On tapping the HeFontButton displays a HeFontDialog that lets the user select a font. The selected font is then displayed on the HeFontButton.
On tapping the HeFontButton displays a HeFontDialog that lets the user select a font. The selected font is then displayed on the HeFontButton.
-
[[Image:HeFontButton.png]]
+
 

Revision as of 14:49, 19 July 2010

Hildon-Extras is a set of community-contributed widgets (that's GTK+ widgets, not Desktop widgets) and dialogs that can be used by application developers to provide a usable, well-balanced interface. Some of these widgets provide functionality that the "stock" Hildon widgets don't provide, and some dialogs are touch-friendly versions of existing dialogs in GTK+ and/or Hildon.

Contents

List of applications using Hildon-Extras

Widget Gallery

HeAboutDialog

The about dialog from MaePad

The HeAboutDialog is a replacement for GtkAboutDialog and provides a finger-friendly, good-looking about dialog with optional buttons for:

  • Project website
  • Bug tracker ("Enter new bug")
  • Donations page

There is a wrapper that can be used by Qt-based applications for this dialog in QtHeWrapper.

If you are writing a Python application, you might be interested in the Python port of HeAboutDialog: Download about.py

HeCheckButton

An example check button

HeCheckButton is a check button with primary and secondary labels. The standard HildonCheckButton supports only one label.

This button can be very handy for developers who would like to provide some description about the functionality of a check box.

HeFullscreenButton

The HeFullScreenButton

HeFullscreenButton is a button to leave full screen mode. It is visible after the user touched the screen or pressed a key and it vanishes after 5 seconds of inactivity.

HeSimpleColorDialog

The simple color dialog in action

This dialog provides a finger-friendly, limited list of colors (a Tango-ish color palette) for the user to choose from. Especially useful when the color selection does not have to be "that special shade of green" but rather "a nice green" (for example to colorize categories or items).

There is also the possibility of an advanced mode for this dialog. This presents an additional "Advanced" button above "Select". When clicked, it presents the user with a regular HeColorDialog to pick an exact colour.

Example code and use cases:

  • MaePad uses it for coloring the text of checklist items and for the color in sketches (src/ui/callbacks.c)

HeColorDialog

The color dialog

This dialog lets the user to select a color by selecting the intensity of the red, green, and blue channels. Also provides hex input/output of colours.

It may come in handy when a developer wants his/her users to be able to pick an exact shade of an exact colour in a finger-friendly way.

HeFontDialog

The font dialog

Lets the user choose a font together with a font size. It also offers bold and italic styles.

HeColorButton

The color button

On tapping the HeColorButton opens the HeColorDialog and lets the user select a color. This color is then displayed on the HeColorButton.

HeFontButton

The font button

On tapping the HeFontButton displays a HeFontDialog that lets the user select a font. The selected font is then displayed on the HeFontButton.