Commit c3835b9a authored by Devin Lin's avatar Devin Lin 🎨
Browse files

components: Use consistent documentation

parent 4df3e970
Pipeline #194140 passed with stage
in 1 minute and 8 seconds
/*
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick 2.15
......
/*
* SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
* SPDX-License-Identifier: GPL-2.0-or-later
*/
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick 2.15
import QtFeedback 5.0
......@@ -10,6 +8,10 @@ import org.kde.plasma.private.mobileshell 1.0 as MobileShell
pragma Singleton
/**
* Singleton object for triggering vibrations in the shell.
*/
QtObject {
id: root
......
/*
* SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
* SPDX-License-Identifier: GPL-2.0-or-later
*/
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick 2.15
import QtFeedback 5.0
......
/*
* SPDX-FileCopyrightText: 2022 Yari Polla <skilvingr@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
// SPDX-FileCopyrightText: 2022 Yari Polla <skilvingr@gmail.com>
// SPDX-License-Identifier: LGPL-2.0-or-later
import QtQuick 2.15
......@@ -12,6 +9,7 @@ import org.kde.plasma.components 3.0 as PlasmaComponents
/**
* This is a simple marquee (flowing) label based on PlasmaComponents Label.
*/
PlasmaComponents.Label {
id: root
......
/*
* SPDX-FileCopyrightText: 2015 Marco Martin <notmart@gmail.com>
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
// SPDX-FileCopyrightText: 2015 Marco Martin <notmart@gmail.com>
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: LGPL-2.0-or-later
import QtQuick 2.12
import QtQuick.Layouts 1.1
......@@ -19,6 +16,7 @@ import org.kde.plasma.private.mobileshell 1.0 as MobileShell
/**
* Component that animates an app opening from a location.
*/
MouseArea { // use mousearea to ensure clicks don't go behind
id: root
visible: false
......
/*
* SPDX-FileCopyrightText: 2013 Canonical Ltd. <legal@canonical.com>
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
// SPDX-FileCopyrightText: 2013 Canonical Ltd. <legal@canonical.com>
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-3.0-only
import QtQuick 2.15
/**
* Component that is able to measure velocity based on position change events.
*/
QtObject {
id: root
......
......@@ -100,7 +100,7 @@ ContainmentLayoutManager.ItemContainer {
}
}
contentItem: MobileShell.ExtendedAbstractButton {
contentItem: MouseArea {
id: mouseArea
// grow/shrink animation
......@@ -187,7 +187,7 @@ ContainmentLayoutManager.ItemContainer {
// darken effect when hovered/pressed
layer {
enabled: mouseArea.pressed || mouseArea.hovered
enabled: mouseArea.pressed || mouseArea.containsMouse
effect: ColorOverlay {
color: Qt.rgba(0, 0, 0, 0.3)
}
......
......@@ -17,7 +17,7 @@ import org.kde.kquickcontrolsaddons 2.0
import org.kde.plasma.private.containmentlayoutmanager 1.0 as ContainmentLayoutManager
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
MobileShell.ExtendedAbstractButton {
MouseArea {
id: delegate
width: GridView.view.cellWidth
height: GridView.view.cellHeight
......@@ -129,7 +129,7 @@ MobileShell.ExtendedAbstractButton {
// darken effect when hovered/pressed
layer {
enabled: delegate.pressed || delegate.hovered
enabled: delegate.pressed || delegate.containsMouse
effect: ColorOverlay {
color: Qt.rgba(0, 0, 0, 0.3)
}
......
......@@ -18,7 +18,7 @@ import org.kde.kquickcontrolsaddons 2.0
import org.kde.plasma.private.containmentlayoutmanager 1.0 as ContainmentLayoutManager
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
MobileShell.ExtendedAbstractButton {
MouseArea {
id: delegate
property int reservedSpaceForLabel
property alias iconItem: icon
......@@ -45,7 +45,7 @@ MobileShell.ExtendedAbstractButton {
Rectangle {
anchors.fill: parent
color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.hovered ? Qt.rgba(255, 255, 255, 0.05) : "transparent")
color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.containsMouse ? Qt.rgba(255, 255, 255, 0.05) : "transparent")
Behavior on color {
ColorAnimation { duration: PlasmaCore.Units.shortDuration }
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment