Use logos from manjaro-icons package
parent
ccc92c9814
commit
1ea3837f4f
Binary file not shown.
Before Width: | Height: | Size: 399 B |
|
@ -5,5 +5,5 @@ Categories=GNOME;GTK;System;
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
Name=Manjaro Hello
|
Name=Manjaro Hello
|
||||||
Exec=/usr/bin/manjaro-hello.py
|
Exec=/usr/bin/manjaro-hello.py
|
||||||
Icon=/usr/share/manjaro-hello/data/img/manjaro-hello.png
|
Icon=/usr/share/icons/manjaro.png
|
||||||
Comment=The Manjaro Hello utility.
|
Comment=The Manjaro Hello utility.
|
||||||
|
|
|
@ -46,7 +46,7 @@ class ManjaroHello():
|
||||||
self.config_path = os.path.expanduser("~") + "/.config/"
|
self.config_path = os.path.expanduser("~") + "/.config/"
|
||||||
self.preferences_path = self.config_path + self.app + ".json"
|
self.preferences_path = self.config_path + self.app + ".json"
|
||||||
self.autostart_path = self.config_path + "autostart/" + self.app + ".desktop"
|
self.autostart_path = self.config_path + "autostart/" + self.app + ".desktop"
|
||||||
self.logo_path = self.data_path + "img/manjaro-hello.png"
|
self.logo_path = "/usr/share/icons/manjaro.png"
|
||||||
|
|
||||||
# Load preferences
|
# Load preferences
|
||||||
self.preferences = self.get_preferences()
|
self.preferences = self.get_preferences()
|
||||||
|
@ -61,9 +61,10 @@ class ManjaroHello():
|
||||||
self.window = self.builder.get_object("window")
|
self.window = self.builder.get_object("window")
|
||||||
|
|
||||||
# Load logos
|
# Load logos
|
||||||
|
logo = GdkPixbuf.Pixbuf.new_from_file_at_scale(self.logo_path, 75, 75, False)
|
||||||
self.window.set_icon_from_file(self.logo_path)
|
self.window.set_icon_from_file(self.logo_path)
|
||||||
self.builder.get_object("manjaroicon").set_from_file(self.logo_path)
|
self.builder.get_object("manjaroicon").set_from_pixbuf(logo)
|
||||||
self.builder.get_object("aboutdialog").set_logo(GdkPixbuf.Pixbuf.new_from_file(self.logo_path))
|
self.builder.get_object("aboutdialog").set_logo(logo)
|
||||||
|
|
||||||
# Init translation
|
# Init translation
|
||||||
self.default_locale = "en_US"
|
self.default_locale = "en_US"
|
||||||
|
|
Loading…
Reference in New Issue