-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README and improved build-script
- Loading branch information
Showing
6 changed files
with
39 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ | |
__status__ = "Prototype" | ||
|
||
# Imports. | ||
import configparser | ||
import datetime | ||
import signal | ||
import sys | ||
|
@@ -61,7 +60,7 @@ | |
QWidget, | ||
) | ||
|
||
from swiftguard.const import APP_PATH | ||
from swiftguard.const import APP_PATH, DARK, LIGHT | ||
# pylint: disable=unused-import | ||
# noinspection PyUnresolvedReferences | ||
from swiftguard.resources import resources_rc # noqa: F401 | ||
|
@@ -79,27 +78,6 @@ | |
LOG_COUNT = LogCount() | ||
LOGGER = create_logger(LOG_COUNT) | ||
|
||
# Resource paths. | ||
LIGHT = { | ||
"checkmark": ":/resources/light/checkmark.svg", | ||
"usb-connection": ":/resources/light/usb-connection.svg", | ||
"shield-check": ":/resources/light/shield-check.svg", | ||
"shield-slash": ":/resources/light/shield-slash.svg", | ||
"shield-tamper": ":/resources/light/shield-tamper.svg", | ||
"app-icon": ":/resources/light/[email protected]", | ||
"app-logo": ":/resources/[email protected]", | ||
} | ||
|
||
DARK = { | ||
"checkmark": ":/resources/dark/checkmark.svg", | ||
"usb-connection": ":/resources/dark/usb-connection.svg", | ||
"shield-check": ":/resources/dark/shield-check.svg", | ||
"shield-slash": ":/resources/dark/shield-slash.svg", | ||
"shield-tamper": ":/resources/dark/shield-tamper.svg", | ||
"app-icon": ":/resources/dark/[email protected]", | ||
"app-logo": ":/resources/[email protected]", | ||
} | ||
|
||
|
||
class CustomDialog(QDialog): | ||
""" | ||
|
@@ -399,9 +377,6 @@ class TrayApp: | |
:ivar resources: The resource paths for icons and images based on | ||
the current theme. | ||
:type resources: dict | ||
:ivar config: The application configuration loaded from the | ||
configuration file. | ||
:type config: configparser.ConfigParser | ||
:ivar start_devices_count: A Counter object to keep track of | ||
initially connected USB devices. | ||
:type start_devices_count: collections.Counter | ||
|
@@ -669,7 +644,7 @@ def whitelist_update(self, device_menu, checked): | |
config_write(self.config) | ||
|
||
# Signal the worker, that the whitelist was updated. | ||
self.worker.updated_whitelist() | ||
self.worker.update() | ||
|
||
return | ||
|
||
|
@@ -689,7 +664,7 @@ def whitelist_update(self, device_menu, checked): | |
config_write(self.config) | ||
|
||
# Signal the worker, that the whitelist was updated. | ||
self.worker.updated_whitelist() | ||
self.worker.update() | ||
|
||
return | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,24 @@ | |
re.compile(".+ID\s(?P<id>\w+:\w+)"), # noqa: W605 | ||
re.compile("0x([0-9a-z]{4})"), | ||
] | ||
|
||
# Resource paths. | ||
LIGHT = { | ||
"checkmark": ":/resources/light/checkmark.svg", | ||
"usb-connection": ":/resources/light/usb-connection.svg", | ||
"shield-check": ":/resources/light/shield-check.svg", | ||
"shield-slash": ":/resources/light/shield-slash.svg", | ||
"shield-tamper": ":/resources/light/shield-tamper.svg", | ||
"app-icon": ":/resources/light/[email protected]", | ||
"app-logo": ":/resources/[email protected]", | ||
} | ||
|
||
DARK = { | ||
"checkmark": ":/resources/dark/checkmark.svg", | ||
"usb-connection": ":/resources/dark/usb-connection.svg", | ||
"shield-check": ":/resources/dark/shield-check.svg", | ||
"shield-slash": ":/resources/dark/shield-slash.svg", | ||
"shield-tamper": ":/resources/dark/shield-tamper.svg", | ||
"app-icon": ":/resources/dark/[email protected]", | ||
"app-logo": ":/resources/[email protected]", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters