-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework domains widget #235
base: main
Are you sure you want to change the base?
Conversation
7ac6e9b
to
15c3e12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically both of Pylint checks and Black formatting style are enforced here? If that is the case, it might be better to update Python specific Coding Style Guidelines as well. There is a brief line there with a link to PEP8.
|
||
self.widget_icon = Gtk.StatusIcon() | ||
self.widget_icon.set_from_icon_name('qubes-devices') | ||
self.widget_icon.connect('button-press-event', self.show_menu) | ||
self.widget_icon.set_from_icon_name("qubes-devices") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you are at it, it might be a good opportunity to take a loot at issue #9208 as well. Workaround should be as easy and saving the qubes-devices
svg file as a 256x256 svg. Or maybe providing the icon as PNG files of different sizes as well. I do not have i3wm installed and could not verify the outcome myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot reproduce this issue because I don't really see what's wrong. For me, the domain or device widget tray icon is exactly the same than other icons even if I increase the bar size.
Yes, but it's not yet enforced in guidelines. It's up to @marmarek but for now we have several other places to blacken first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
gi.require_version("Gtk", "3.0") # isort:skip | ||
from gi.repository import Gio, Gtk, GObject, GLib, GdkPixbuf # isort:skip | ||
from gi.repository import Gio, Gtk, GLib, GdkPixbuf # isort:skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't move import gi away from this, it makes it more confusing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? This dependency is not required anymore, how should I remove it?
""" | ||
raise NotImplementedError("Subclasses must implement this method.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use the abc.abstractmethod annotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to retry, I think there were some complain about mypy at first.
Yes I'm aware of this but I was waiting on current refactor before fighting with margins. |
It fixes QubesOS/qubes-issues#7754.