From 99112a2d7592dbc2aa94cdb129c70d87706e0f35 Mon Sep 17 00:00:00 2001 From: Bernard Gray Date: Wed, 24 Sep 2008 12:19:31 +0300 Subject: [PATCH] wpa_gui-qt4: add svg icon Introducing an original wpa_gui icon, in svg format, with Makefile for easy conversion to other icon formats. The icon is thanks to Bernard Gray. Signed-off-by: Bernard Gray Signed-off-by: Kel Modderman --- wpa_supplicant/wpa_gui-qt4/icons/Makefile | 23 ++ wpa_supplicant/wpa_gui-qt4/icons/README | 7 + wpa_supplicant/wpa_gui-qt4/icons/wpa_gui.svg | 299 +++++++++++++++++++ 3 files changed, 329 insertions(+) create mode 100644 wpa_supplicant/wpa_gui-qt4/icons/Makefile create mode 100644 wpa_supplicant/wpa_gui-qt4/icons/README create mode 100644 wpa_supplicant/wpa_gui-qt4/icons/wpa_gui.svg diff --git a/wpa_supplicant/wpa_gui-qt4/icons/Makefile b/wpa_supplicant/wpa_gui-qt4/icons/Makefile new file mode 100644 index 000000000..aa10107a7 --- /dev/null +++ b/wpa_supplicant/wpa_gui-qt4/icons/Makefile @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +NAME := wpa_gui +SVG := $(NAME).svg +SIZES := 16x16 22x22 32x32 48x48 64x64 128x128 +ICONS := $(addsuffix .png,$(SIZES)) +ICONS += $(addsuffix .xpm,16x16 32x32) + +all: $(ICONS) + +%.png: + mkdir -p hicolor/$(@:.png=)/apps/ + inkscape $(SVG) --without-gui \ + --export-width=$(word 1,$(subst x, ,$(@:.png=))) \ + --export-height=$(word 2,$(subst x, ,$(@:.png=))) \ + --export-png=hicolor/$(@:.png=)/apps/$(NAME).png + +%.xpm: + mkdir -p pixmaps/ + convert hicolor/$(@:.xpm=)/apps/$(NAME).png pixmaps/$@ + +clean: + $(RM) -r pixmaps hicolor diff --git a/wpa_supplicant/wpa_gui-qt4/icons/README b/wpa_supplicant/wpa_gui-qt4/icons/README new file mode 100644 index 000000000..1584eb51d --- /dev/null +++ b/wpa_supplicant/wpa_gui-qt4/icons/README @@ -0,0 +1,7 @@ +Copyright (c) 2008 Bernard Gray + +The wpa_gui icon is licensed under the GPL version 2. Alternatively, the icon +may be distributed under the terms of BSD license. + +To convert the svg icon to other formats, make sure inkscape and imagemagick +are installed and use `make' to create various sized png and xpm icons. diff --git a/wpa_supplicant/wpa_gui-qt4/icons/wpa_gui.svg b/wpa_supplicant/wpa_gui-qt4/icons/wpa_gui.svg new file mode 100644 index 000000000..dd04fc324 --- /dev/null +++ b/wpa_supplicant/wpa_gui-qt4/icons/wpa_gui.svg @@ -0,0 +1,299 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +