调小窗口

master
yutent 2023-08-09 20:20:39 +08:00
parent e153bd4673
commit e200e72942
3 changed files with 3 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -16,7 +16,7 @@ class Sidebar extends Component {
.list {
width: 200px;
height: 100%;
border-right: 1px solid var(--color-grey-2);
border-right: 1px solid var(--color-grey-1);
color: var(--color-dark-1);
}

View File

@ -7,9 +7,10 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
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)
self.set_default_size(width, height)
self.resize(width, height)
def toggle_visible(self, icon):