From cc8a41e09db8ad0b0666a30832d4b510b71ab5c4 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Tue, 12 Jun 2007 20:55:53 +0000 Subject: added svg-icon --- icons/portato-icon.svg | 143 ++++++++++++++++++++++++++++++++++++++++++++++ portato/constants.py | 3 +- portato/gui/qt/windows.py | 2 +- portato_gtk.desktop | 2 +- portato_qt.desktop | 2 +- setup.py | 2 +- 6 files changed, 149 insertions(+), 5 deletions(-) create mode 100644 icons/portato-icon.svg diff --git a/icons/portato-icon.svg b/icons/portato-icon.svg new file mode 100644 index 0000000..1a47c05 --- /dev/null +++ b/icons/portato-icon.svg @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/portato/constants.py b/portato/constants.py index 126d5c8..bbd5d83 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -18,7 +18,8 @@ PLUGIN_DIR = "plugins/" VERSION = 9999 ICON_DIR = "icons/" -APP_ICON = ICON_DIR+"/portato-icon.png" +APP_ICON = ICON_DIR+"/portato-icon.svg" +APP_ICON_PNG = ICON_DIR+"/portato-icon.png" FRONTENDS = ["gtk" ,"qt"] STD_FRONTEND = "gtk" diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py index d79e1bd..639b42b 100644 --- a/portato/gui/qt/windows.py +++ b/portato/gui/qt/windows.py @@ -725,7 +725,7 @@ class MainWindow (Window): def build_systray (self): if self.cfg.get_boolean("systray_opt", self.cfg.const["gui_sec"]): - self.systray = Qt.QSystemTrayIcon(Qt.QIcon(APP_ICON), self) + self.systray = Qt.QSystemTrayIcon(Qt.QIcon(APP_ICON_PNG), self) # use this until Qt supports proper SVG images in the systray self.trayIconMenu = Qt.QMenu(self) self.trayIconMenu.addAction(self.quitAction) self.systray.setContextMenu(self.trayIconMenu) diff --git a/portato_gtk.desktop b/portato_gtk.desktop index 8930966..aa064b4 100644 --- a/portato_gtk.desktop +++ b/portato_gtk.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=Portato (Gtk) -Icon=portato-icon.png +Icon=portato-icon.svg Exec=gksu -D "Portato (GTK)" -u root portato gtk StartupNotify=true Type=Application diff --git a/portato_qt.desktop b/portato_qt.desktop index 2626233..6c15d3f 100644 --- a/portato_qt.desktop +++ b/portato_qt.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=Portato (Qt) -Icon=portato-icon.png +Icon=portato-icon.svg Exec=kdesu -t --nonewdcop -c portato qt StartupNotify=true Type=Application diff --git a/setup.py b/setup.py index 5c96f9e..627eeb1 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from portato.constants import VERSION, DATA_DIR, FRONTENDS, ICON_DIR packages = ["portato", "portato.gui", "portato.plugins", "portato.backend", "portato.backend.portage"] ext_modules = [] -data_files = [(ICON_DIR, ["icons/portato-icon.png"])] +data_files = [(ICON_DIR, ["icons/portato-icon.png", "icons/portato-icon.svg"]])] cmdclass = {} if "gtk" in FRONTENDS: -- cgit v1.2.3