forked from Shinonome/dots-hyprland
booru: style changes, tag button dont add space at beginning
This commit is contained in:
@@ -97,18 +97,32 @@ Item {
|
||||
|
||||
spacing: 10
|
||||
model: ScriptModel {
|
||||
values: Booru.responses
|
||||
values: {
|
||||
console.log(JSON.stringify(Booru.responses))
|
||||
return Booru.responses
|
||||
}
|
||||
}
|
||||
delegate: BooruResponse {
|
||||
responseData: modelData
|
||||
responseData: {
|
||||
console.log("Data at index " + index + ": " + JSON.stringify(modelData))
|
||||
return modelData
|
||||
}
|
||||
tagInputField: root.inputField
|
||||
}
|
||||
}
|
||||
|
||||
Item { // Placeholder when list is empty
|
||||
visible: Booru.responses.length === 0
|
||||
opacity: Booru.responses.length === 0 ? 1 : 0
|
||||
visible: opacity > 0
|
||||
anchors.fill: parent
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: Appearance.animation.elementDecel.duration
|
||||
easing.type: Appearance.animation.elementDecel.type
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.centerIn: parent
|
||||
spacing: 5
|
||||
|
||||
Reference in New Issue
Block a user