mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-21 07:41:51 +00:00
Refactor out a reusable DraggablePanel (#8111)
This commit is contained in:
parent
7a1bc6f6d7
commit
cbb5b96ade
3 changed files with 144 additions and 135 deletions
11
tools/lsp/ui/components/layout-helpers.slint
Normal file
11
tools/lsp/ui/components/layout-helpers.slint
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
||||
|
||||
export component SimpleColumn {
|
||||
in-out property <length> spacing;
|
||||
width: 100%;
|
||||
vl := VerticalLayout {
|
||||
spacing <=> root.spacing;
|
||||
@children
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue