Skip to content

Commit

Permalink
Make less ugly on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Jul 26, 2024
1 parent bc1213f commit ee5fccb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def __init__(self, path=None, is_desktop_window=False):
self.scroll_area = QScrollArea(self)
self.scroll_area.setWidgetResizable(True)
self.container = QWidget()
palette = self.container.palette()
palette.setColor(self.container.backgroundRole(), Qt.GlobalColor.white)
self.container.setPalette(palette)
self.scroll_area.setWidget(self.container)
self.layout.addWidget(self.scroll_area)
self.layout.setContentsMargins(0, 0, 0, 0)
Expand Down Expand Up @@ -810,6 +813,8 @@ def open(self, event):

if __name__ == "__main__":
app = QApplication(sys.argv)
if sys.platform == "win32":
app.setStyle("Fusion")
app.open_windows = {}
app.desktop_settings_file = ".DS_Spatial"
app.trash_name = "Trash"
Expand Down

0 comments on commit ee5fccb

Please sign in to comment.