diff --git a/usr/lib/sonist/window.py b/usr/lib/sonist/window.py index 36fc275..e8668ab 100644 --- a/usr/lib/sonist/window.py +++ b/usr/lib/sonist/window.py @@ -37,14 +37,14 @@ class SonistWindow(Gtk.Window): self.css_provider = None self.set_default_style() - self.set_decorated(False) + self.set_position(Gtk.WindowPosition.CENTER) + self.set_decorated(False) # 隐藏系统标题栏 self.set_name('SonistWindow') self.set_title('Sonist') self.set_default_size(320, 384) self.set_resizable(False) self.set_wmclass('Sonist', 'Sonist') - self.set_opacity(0.9) self.set_background_image(image_dict['disk'])