launcher: not full rounding + better anim
This commit is contained in:
parent
58615b809e
commit
8da5acdb3d
6 changed files with 21 additions and 8 deletions
|
|
@ -27,13 +27,26 @@ StyledListView {
|
||||||
orientation: Qt.Vertical
|
orientation: Qt.Vertical
|
||||||
implicitHeight: (Config.launcher.sizes.itemHeight + spacing) * Math.min(Config.launcher.maxShown, count) - spacing
|
implicitHeight: (Config.launcher.sizes.itemHeight + spacing) * Math.min(Config.launcher.maxShown, count) - spacing
|
||||||
|
|
||||||
highlightMoveDuration: Appearance.anim.durations.normal
|
preferredHighlightBegin: 0
|
||||||
highlightResizeDuration: 0
|
preferredHighlightEnd: height
|
||||||
|
highlightRangeMode: ListView.ApplyRange
|
||||||
|
|
||||||
|
highlightFollowsCurrentItem: false
|
||||||
highlight: StyledRect {
|
highlight: StyledRect {
|
||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.normal
|
||||||
color: Colours.palette.m3onSurface
|
color: Colours.palette.m3onSurface
|
||||||
opacity: 0.08
|
opacity: 0.08
|
||||||
|
|
||||||
|
y: root.currentItem?.y ?? 0
|
||||||
|
implicitWidth: root.width
|
||||||
|
implicitHeight: root.currentItem?.implicitHeight ?? 0
|
||||||
|
|
||||||
|
Behavior on y {
|
||||||
|
Anim {
|
||||||
|
duration: Appearance.anim.durations.expressiveDefaultSpatial
|
||||||
|
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state: {
|
state: {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Item {
|
||||||
anchors.right: parent?.right
|
anchors.right: parent?.right
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
root.modelData?.onClicked(root.list);
|
root.modelData?.onClicked(root.list);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ Item {
|
||||||
anchors.right: parent?.right
|
anchors.right: parent?.right
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
Apps.launch(root.modelData);
|
Apps.launch(root.modelData);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Item {
|
||||||
anchors.right: parent?.right
|
anchors.right: parent?.right
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
root.onClicked();
|
root.onClicked();
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Item {
|
||||||
anchors.right: parent?.right
|
anchors.right: parent?.right
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
root.modelData?.onClicked(root.list);
|
root.modelData?.onClicked(root.list);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Item {
|
||||||
anchors.right: parent?.right
|
anchors.right: parent?.right
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
root.modelData?.onClicked(root.list);
|
root.modelData?.onClicked(root.list);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue