Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyoder committed Dec 25, 2024
1 parent f93d935 commit 199e077
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 9 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
nkms (0.1.1) unstable; urgency=medium

* Add logo
* Allow custom switch hotkeys

-- Nicholas Yoder <[email protected]> Mon, 0 Jan 2025 00:00:00 +0000
Expand Down
3 changes: 2 additions & 1 deletion debian/nkms.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
nkms usr/lib/python3/dist-packages/
etc/* etc/
usr/* usr/
README.md /usr/share/doc/nkms/
README.md /usr/share/doc/nkms/
logo/nkms.png /usr/share/icons/hicolor/48x48/apps/
1 change: 1 addition & 0 deletions etc/xdg/autostart/nkms.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Name=NKMS applet
Exec=/usr/bin/nkms-applet
Type=Application
NoDisplay=true
Icon=nkms
Binary file added logo/nkms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
172 changes: 172 additions & 0 deletions logo/nkms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions nkms/applet.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ def __init__(self):
sys.exit(1)

def initialize(self):
# TODO: load icon theme from qt5ctl settings file
QIcon.setThemeName('Papirus')
icon = QIcon.fromTheme("application-x-executable")
self.tray_icon = QSystemTrayIcon(icon, self)
self.tray_icon = QSystemTrayIcon(QIcon.fromTheme("nkms"), self)

self.tray_menu = QMenu()
show_action = self.tray_menu.addAction("Settings")
Expand Down
7 changes: 3 additions & 4 deletions nkms/core/settings_window.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from typing import Optional

from evdev.ecodes import ecodes

from PyQt6.QtCore import Qt, pyqtSignal
from PyQt6.QtGui import QKeyEvent, QKeySequence
from PyQt6.QtCore import pyqtSignal
from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import (
QWidget,
QPushButton,
Expand Down Expand Up @@ -37,6 +35,7 @@ def __init__(self):
self.waiting_for_keys = False

self.setWindowTitle("NKMS Settings")
self.setWindowIcon(QIcon.fromTheme("nkms"))
base_layout = QVBoxLayout()
mode_layout = QHBoxLayout()
mode_label = QLabel("Mode:")
Expand Down

0 comments on commit 199e077

Please sign in to comment.