forked from cromer/pamac-classic
use own icons since using stock icons might create issues in KDE
This commit is contained in:
parent
8fdb07cc9e
commit
d702717dcc
@ -125,7 +125,7 @@ Categories=System;
|
||||
Exec=pamac-install %F
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=system-software-install
|
||||
Icon=/usr/share/pamac/icons/32x32/apps/pamac.png
|
||||
StartupNotify=true
|
||||
NoDisplay=true
|
||||
MimeType=application/x-xz-compressed-tar;
|
||||
|
@ -130,7 +130,7 @@ Comment[vi]=Thêm hoặc gỡ phần mềm cài đặt trên hệ thống
|
||||
Comment[zh_CN]=添加或删除系统中安装的软件
|
||||
Comment[zh_HK]=加入或移除系統上安裝的軟件
|
||||
Comment[zh_TW]=加入或移除系統上安裝的軟體
|
||||
Icon=system-software-install
|
||||
Icon=/usr/share/pamac/icons/32x32/apps/pamac.png
|
||||
Exec=pamac-manager
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
@ -126,7 +126,7 @@ Comment[vi]=Cập nhật phần mềm đã cài đặt trên hệ thống
|
||||
Comment[zh_CN]=更新本系统中安装的软件
|
||||
Comment[zh_HK]=更新系統中已安裝的軟件
|
||||
Comment[zh_TW]=更新系統中已安裝的軟體
|
||||
Icon=system-software-update
|
||||
Icon=/usr/share/pamac/icons/32x32/apps/pamac-updater.png
|
||||
Exec=pamac-updater
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
BIN
data/icons/16x16/apps/exit.png
Normal file
BIN
data/icons/16x16/apps/exit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 630 B |
BIN
data/icons/16x16/apps/pamac-updater.png
Normal file
BIN
data/icons/16x16/apps/pamac-updater.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 793 B |
BIN
data/icons/16x16/apps/pamac.png
Normal file
BIN
data/icons/16x16/apps/pamac.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 748 B |
BIN
data/icons/32x32/apps/pamac-updater.png
Normal file
BIN
data/icons/32x32/apps/pamac-updater.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
data/icons/32x32/apps/pamac.png
Normal file
BIN
data/icons/32x32/apps/pamac.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
@ -30,15 +30,15 @@ class Tray:
|
||||
|
||||
self.menu = Gtk.Menu()
|
||||
self.menuItem = Gtk.ImageMenuItem(_('Update Manager'))
|
||||
self.menuItem.set_image(Gtk.Image.new_from_pixbuf(Gtk.IconTheme.get_default().load_icon('system-software-update', 16, 0)))
|
||||
self.menuItem.set_from_file('/usr/share/pamac/icons/16x16/apps/pamac-updater.png')
|
||||
self.menuItem.connect('activate', self.execute_update, self.statusIcon)
|
||||
self.menu.append(self.menuItem)
|
||||
self.menuItem = Gtk.ImageMenuItem(_('Package Manager'))
|
||||
self.menuItem.set_image(Gtk.Image.new_from_pixbuf(Gtk.IconTheme.get_default().load_icon('system-software-install', 16, 0)))
|
||||
self.menuItem.set_from_file('/usr/share/pamac/icons/16x16/apps/pamac.png')
|
||||
self.menuItem.connect('activate', self.execute_manager, self.statusIcon)
|
||||
self.menu.append(self.menuItem)
|
||||
self.menuItem = Gtk.ImageMenuItem(_('Quit'))
|
||||
self.menuItem.set_image(Gtk.Image.new_from_stock('gtk-quit', Gtk.IconSize.MENU))
|
||||
self.menuItem.set_from_file('/usr/share/pamac/icons/16x16/apps/exit.png')
|
||||
self.menuItem.connect('activate', self.quit_tray, self.statusIcon)
|
||||
self.menu.append(self.menuItem)
|
||||
|
||||
@ -110,7 +110,7 @@ def set_icon(updates):
|
||||
tray.set_visible(True)
|
||||
sleep(2)
|
||||
if not common.pid_file_exists():
|
||||
Popen(['notify-send', '-i', 'system-software-update', '-u', 'normal', _('Update Manager'), info])
|
||||
Popen(['notify-send', '-i', '/usr/share/pamac/icons/32x32/apps/pamac-updater.png', '-u', 'normal', _('Update Manager'), info])
|
||||
else:
|
||||
icon = noupdate_icon
|
||||
info = noupdate_info
|
||||
|
Loading…
Reference in New Issue
Block a user