- Seperate icons. Fixes #103
This commit is contained in:
parent
5f0d0d9779
commit
63a9b31317
3 changed files with 4 additions and 3 deletions
BIN
discover-overlay-tray.png
Normal file
BIN
discover-overlay-tray.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 KiB |
|
|
@ -96,14 +96,15 @@ class Discover:
|
|||
from gi.repository import AppIndicator3
|
||||
self.ind = AppIndicator3.Indicator.new(
|
||||
"discover_overlay",
|
||||
"discover-overlay",
|
||||
"discover-overlay-tray",
|
||||
AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
|
||||
self.ind.set_status(AppIndicator3.IndicatorStatus.ACTIVE)
|
||||
self.ind.set_menu(menu)
|
||||
except (ImportError, ValueError) as exception:
|
||||
# Create System Tray
|
||||
logging.info("Falling back to Systray : %s", exception)
|
||||
self.tray = Gtk.StatusIcon.new_from_icon_name("discover-overlay")
|
||||
self.tray = Gtk.StatusIcon.new_from_icon_name(
|
||||
"discover-overlay-tray")
|
||||
self.tray.connect('popup-menu', self.show_menu)
|
||||
|
||||
def make_menu(self):
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -22,7 +22,7 @@ setup(
|
|||
'discover_overlay_conf.desktop',
|
||||
'discover_overlay_close.desktop'
|
||||
]),
|
||||
('share/icons', ['discover-overlay.png'])
|
||||
('share/icons', ['discover-overlay.png', 'discover-overlay-tray.png'])
|
||||
],
|
||||
install_requires=[
|
||||
'PyGObject>=3.22',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue