1786048673
This commit is contained in:
24
ui/components/text_icon_button.slint
Normal file
24
ui/components/text_icon_button.slint
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import {
|
||||
IconButton,
|
||||
MaterialText
|
||||
} from "../material.slint";
|
||||
|
||||
export component TextIconButton {
|
||||
in property <image> icon <=> button.icon;
|
||||
in property <string> text <=> label.text;
|
||||
|
||||
VerticalLayout {
|
||||
HorizontalLayout {
|
||||
alignment: center;
|
||||
|
||||
button := IconButton {}
|
||||
}
|
||||
|
||||
label := MaterialText {
|
||||
horizontal_alignment: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user