master
parent
712d321bf3
commit
afa39b5026
|
@ -37,14 +37,14 @@ class SonistWindow(Gtk.Window):
|
||||||
self.css_provider = None
|
self.css_provider = None
|
||||||
self.set_default_style()
|
self.set_default_style()
|
||||||
|
|
||||||
self.set_decorated(False)
|
self.set_position(Gtk.WindowPosition.CENTER)
|
||||||
|
self.set_decorated(False) # 隐藏系统标题栏
|
||||||
self.set_name('SonistWindow')
|
self.set_name('SonistWindow')
|
||||||
self.set_title('Sonist')
|
self.set_title('Sonist')
|
||||||
self.set_default_size(320, 384)
|
self.set_default_size(320, 384)
|
||||||
self.set_resizable(False)
|
self.set_resizable(False)
|
||||||
self.set_wmclass('Sonist', 'Sonist')
|
self.set_wmclass('Sonist', 'Sonist')
|
||||||
|
|
||||||
self.set_opacity(0.9)
|
|
||||||
self.set_background_image(image_dict['disk'])
|
self.set_background_image(image_dict['disk'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue