Skip to content

Commit c1197bc

Browse files
committed
Implement feedback
1 parent 1df611c commit c1197bc

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ commands=flake8 src tests
100100
max_line_length = 120
101101

102102
[pylint.master]
103-
extension-pkg-whitelist=PyQt5
103+
extension-pkg-whitelist=PyQt6
104104
load-plugins=
105105

106106
[pylint.messages control]

src/vorta/tray_menu.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from PyQt6.QtGui import QColor, QIcon, QScreen
2+
from PyQt6.QtGui import QIcon
33
from PyQt6.QtWidgets import QApplication, QMenu, QSystemTrayIcon
44
from vorta.store.models import BackupProfileModel
55
from vorta.utils import get_asset
@@ -73,14 +73,6 @@ def build_menu(self):
7373
exit_action = menu.addAction(self.tr('Quit'))
7474
exit_action.triggered.connect(self.app.quit)
7575

76-
def is_taskbar_dark(self):
77-
app = QApplication.instance()
78-
long_color = QScreen.grabWindow(app.primaryScreen()).toImage().pixel(0, 0)
79-
int_color = int(long_color)
80-
return 150 > QColor.lightness(
81-
QColor.fromRgb(((int_color >> 16) & 0xFF), ((int_color >> 8) & 0xFF), (int_color & 0xFF))
82-
)
83-
8476
def set_tray_icon(self, active=False):
8577
"""
8678
Use white tray icon, when on Gnome or in dark mode. Otherwise use dark icon.

0 commit comments

Comments
 (0)