From 1d8a1955dd719846e51596b573ee5a6e2bcbcf5a Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Tue, 2 Sep 2014 21:15:00 +0400 Subject: Add .xpm support for via libXpm. * Adds a new flag with_xpm to enable compilation with xpm support * Adds a module XPMFile only exporting readXPMFile which almost mirrors Graphics.X11.Xlib.Misc.readBitmapFile * During loadBitmap a file is first tried with readBitmapFile and if it fails with readXPMFile --- readme.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 5814d0c..f8ad0db 100644 --- a/readme.md +++ b/readme.md @@ -152,6 +152,10 @@ Otherwise, you'll need to install them yourself. : Support for other timezones. Enables the DateZone plugin. Requires [timezone-olson] and [timezone-series] package. +`with_xpm` +: Support for xpm image file format. This will allow loading .xpm files in ``. + Requires the [libXpm] C library. + `all_extensions` : Enables all the extensions above. @@ -1495,3 +1499,4 @@ Copyright © 2007-2010 Andrea Rossato [alsa-mixer]: http://hackage.haskell.org/package/alsa-mixer [timezone-olson]: http://hackage.haskell.org/package/timezone-olson [timezone-series]: http://hackage.haskell.org/package/timezone-series +[libXpm]: http://cgit.freedesktop.org/xorg/lib/libXpm -- cgit v1.2.3 From 8512afbb2c3be1897101da0b23edb258715475e6 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Thu, 4 Sep 2014 11:27:26 +0400 Subject: Mention XPM support in readme.md when is introduced --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index f8ad0db..7a0116b 100644 --- a/readme.md +++ b/readme.md @@ -199,7 +199,8 @@ For the output template: - `string` will print `string` with `#FF0000` color (red). -- `` will insert the given bitmap. +- `` will insert the given bitmap. XPM image + format is also supported when compiled with `--flags="with_xpm"`. - `````` will execute given command when clicked with specified buttons. If not specified, button is equal to 1 @@ -486,7 +487,8 @@ form: -which will produce the expected result. +which will produce the expected result. Accepted image formats are XBM +and XPM (when `with_xpm` flag is enabled). It's also possible to use action directives of the form: -- cgit v1.2.3