Skip to content

Commit

Permalink
set app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeyg56 committed Feb 13, 2023
1 parent d170d07 commit 12a2cda
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions auto_cpufreq/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

gi.require_version("Gtk", "3.0")

from gi.repository import Gtk, GLib, Gdk, Gio
from gi.repository import Gtk, GLib, Gdk, Gio, GdkPixbuf

import os
import sys
Expand All @@ -22,13 +22,8 @@ def __init__(self):
self.set_border_width(10)
self.set_resizable(False)
self.load_css()

settings = Gtk.Settings.get_default()
# Theme
theme = os.environ.get("GTK_THEME")
# if theme is not None:
# settings.set_property("gtk-theme-name", theme)

pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filename="/usr/local/share/auto-cpufreq/images/icon.png", width=500, height=500, preserve_aspect_ratio=True)
self.set_icon(pixbuf)
self.build()

def main(self):
Expand Down

0 comments on commit 12a2cda

Please sign in to comment.