Skip to content

Commit

Permalink
Update mainwindow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Jul 19, 2022
1 parent d1e102a commit 34295a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bluesky/ui/qtgl/mainwindow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" Main window for the QTGL gui."""
import platform
import os

try:
from PyQt5.QtWidgets import QApplication as app
Expand Down Expand Up @@ -258,8 +257,8 @@ def nodesChanged(self, data):
btn.setText(hostname)
btn.setFlat(True)
btn.setStyleSheet('font-weight:bold')

btn.setIcon(QIcon(os.path.join(bs.settings.gfx_path, 'icons/addnode.svg')))
icon = bs.settings.resolve_path(bs.settings.gfx_path) / 'icons/addnode.svg'
btn.setIcon(QIcon(icon.as_posix()))
btn.setIconSize(QSize(24, 16))
btn.setLayoutDirection(Qt.LayoutDirection.RightToLeft)
btn.setMaximumHeight(16)
Expand Down

0 comments on commit 34295a2

Please sign in to comment.