adding a blurred rect for background but it's not doing what I want
This commit is contained in:
parent
478792913c
commit
1cac1e071a
1 changed files with 362 additions and 344 deletions
|
@ -7,6 +7,7 @@ import QtQuick.Layouts 1.2
|
|||
import QtQml.Models 2.12
|
||||
/* import QtMultimedia 5.15 */
|
||||
/* import QtAudioEngine 1.15 */
|
||||
import QtGraphicalEffects 1.15
|
||||
import org.kde.kirigami 2.13 as Kirigami
|
||||
import "./" as Presenter
|
||||
import org.presenter 1.0
|
||||
|
@ -20,6 +21,15 @@ Item {
|
|||
id: background
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
FastBlur {
|
||||
id: backgroundBlur
|
||||
source: background
|
||||
anchors.fill: parent
|
||||
radius: 82
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
anchors.fill: parent
|
||||
|
@ -164,9 +174,10 @@ Item {
|
|||
id: label
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.leftMargin: 5
|
||||
text: name
|
||||
elide: Text.ElideRight
|
||||
width: parent.width - trailing.width - 10
|
||||
width: parent.width - trailing.width - 15
|
||||
color: {
|
||||
if (selected ||
|
||||
mouseHandler.containsMouse || active)
|
||||
|
@ -180,8 +191,15 @@ Item {
|
|||
id: trailing
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.rightMargin: 5
|
||||
text: type
|
||||
color: Kirigami.Theme.disabledTextColor
|
||||
color: {
|
||||
if (selected ||
|
||||
mouseHandler.containsMouse || active)
|
||||
Kirigami.Theme.highlightedTextColor;
|
||||
else
|
||||
Kirigami.Theme.disabledTextColor;
|
||||
}
|
||||
}
|
||||
|
||||
onYChanged: serviceItemList.updateDrag(Math.round(y));
|
||||
|
@ -415,7 +433,7 @@ Item {
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
totalServiceItems = serviceItemList.count;
|
||||
print("THE TOTAL SERVICE ITEMS: " + totalServiceItems);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue