调小窗口
parent
e153bd4673
commit
e200e72942
Binary file not shown.
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
@ -16,7 +16,7 @@ class Sidebar extends Component {
|
||||||
.list {
|
.list {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-right: 1px solid var(--color-grey-2);
|
border-right: 1px solid var(--color-grey-1);
|
||||||
color: var(--color-dark-1);
|
color: var(--color-dark-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,10 @@ gi.require_version('Gtk', '3.0')
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
class Window(Gtk.Window):
|
class Window(Gtk.Window):
|
||||||
def __init__(self, title = 'Untitled window', width = 800, height = 480):
|
def __init__(self, title = 'Untitled window', width = 760, height = 480):
|
||||||
Gtk.Window.__init__(self, title = title)
|
Gtk.Window.__init__(self, title = title)
|
||||||
self.set_default_size(width, height)
|
self.set_default_size(width, height)
|
||||||
|
self.resize(width, height)
|
||||||
|
|
||||||
|
|
||||||
def toggle_visible(self, icon):
|
def toggle_visible(self, icon):
|
||||||
|
|
Loading…
Reference in New Issue