cover: Use Adw.ViewStack
This commit is contained in:
@@ -13,11 +13,12 @@ template $Cover: Adw.Bin {
|
|||||||
maximum-size: bind _picture.width-request;
|
maximum-size: bind _picture.width-request;
|
||||||
tightening-threshold: bind _picture.width-request;
|
tightening-threshold: bind _picture.width-request;
|
||||||
|
|
||||||
child: Stack {
|
child: Adw.ViewStack {
|
||||||
visible-child-name: bind $_get_stack_child(template.paintable) as <string>;
|
visible-child-name: bind $_get_stack_child(template.paintable) as <string>;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
enable-transitions: true;
|
||||||
|
|
||||||
StackPage {
|
Adw.ViewStackPage {
|
||||||
name: "cover";
|
name: "cover";
|
||||||
|
|
||||||
child: Picture _picture {
|
child: Picture _picture {
|
||||||
@@ -28,7 +29,7 @@ template $Cover: Adw.Bin {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
StackPage {
|
Adw.ViewStackPage {
|
||||||
name: "icon";
|
name: "icon";
|
||||||
|
|
||||||
child: Image {
|
child: Image {
|
||||||
|
|||||||
Reference in New Issue
Block a user