From afa39b5026d1228c35f802b7811d2e430c9c541d Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 29 Aug 2023 11:59:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/lib/sonist/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'])