mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
no background for the icons
This commit is contained in:
parent
e46b55851d
commit
2ef0b5e15b
3 changed files with 27 additions and 21 deletions
|
|
@ -149,15 +149,15 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
}
|
}
|
||||||
//FIXME: export smallestReadableFont
|
//FIXME: export smallestReadableFont
|
||||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||||
color: model.ApplicationLocationRole == ApplicationListModel.Desktop ? "white" : theme.textColor
|
color: "white"//model.ApplicationLocationRole == ApplicationListModel.Desktop ? "white" : theme.textColor
|
||||||
|
|
||||||
layer.enabled: model.ApplicationLocationRole == ApplicationListModel.Desktop
|
layer.enabled: true//model.ApplicationLocationRole == ApplicationListModel.Desktop
|
||||||
layer.effect: DropShadow {
|
layer.effect: DropShadow {
|
||||||
horizontalOffset: 0
|
horizontalOffset: 0
|
||||||
verticalOffset: 2
|
verticalOffset: 2
|
||||||
radius: 8.0
|
radius: 8.0
|
||||||
samples: 16
|
samples: 16
|
||||||
color: Qt.rgba(0, 0, 0, 0.8)
|
color: Qt.rgba(0, 0, 0, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ Item {
|
||||||
property alias flow: applicationsFlow
|
property alias flow: applicationsFlow
|
||||||
|
|
||||||
implicitWidth: frame.implicitWidth
|
implicitWidth: frame.implicitWidth
|
||||||
implicitHeight: frame.implicitHeight
|
implicitHeight: Math.max(units.gridUnit*3, frame.implicitHeight)
|
||||||
|
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
id: metrics
|
id: metrics
|
||||||
|
|
@ -69,7 +69,7 @@ Item {
|
||||||
|
|
||||||
background: PlasmaCore.FrameSvgItem {
|
background: PlasmaCore.FrameSvgItem {
|
||||||
id: frameSvg
|
id: frameSvg
|
||||||
imagePath: "widgets/background"
|
//imagePath: "widgets/background"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,13 +139,14 @@ Item {
|
||||||
Flickable {
|
Flickable {
|
||||||
id: mainFlickable
|
id: mainFlickable
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
clip: true
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
topMargin: plasmoid.availableScreenRect.y
|
topMargin: plasmoid.availableScreenRect.y
|
||||||
bottomMargin: plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
bottomMargin: favoriteStrip.height//plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
||||||
}
|
}
|
||||||
|
|
||||||
bottomMargin: favoriteStrip.height
|
//bottomMargin: favoriteStrip.height
|
||||||
contentWidth: width
|
contentWidth: width
|
||||||
contentHeight: flickableContents.height
|
contentHeight: flickableContents.height
|
||||||
interactive: !plasmoid.editMode && !launcherDragManager.active
|
interactive: !plasmoid.editMode && !launcherDragManager.active
|
||||||
|
|
@ -172,14 +173,14 @@ Item {
|
||||||
Column {
|
Column {
|
||||||
id: flickableContents
|
id: flickableContents
|
||||||
width: mainFlickable.width
|
width: mainFlickable.width
|
||||||
spacing: Math.max(0, favoriteStrip.frame.height + favoriteStrip.anchors.bottomMargin - mainFlickable.contentY)
|
spacing: 0
|
||||||
|
|
||||||
DragDrop.DropArea {
|
DragDrop.DropArea {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
height: mainFlickable.height - favoriteStrip.frame.height //TODO: multiple widgets pages
|
height: mainFlickable.height //TODO: multiple widgets pages
|
||||||
|
|
||||||
onDragEnter: {
|
onDragEnter: {
|
||||||
event.accept(event.proposedAction);
|
event.accept(event.proposedAction);
|
||||||
|
|
@ -308,6 +309,23 @@ Item {
|
||||||
elementId: "down-arrow"
|
elementId: "down-arrow"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
bottom: favoriteStrip.top
|
||||||
|
leftMargin: units.gridUnit
|
||||||
|
rightMargin: units.gridUnit
|
||||||
|
}
|
||||||
|
height: 1
|
||||||
|
opacity: mainFlickable.contentY > 0 ? 0.6 : 0
|
||||||
|
Behavior on opacity {
|
||||||
|
OpacityAnimator {
|
||||||
|
duration: units.longDuration * 2
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Launcher.FavoriteStrip {
|
Launcher.FavoriteStrip {
|
||||||
id: favoriteStrip
|
id: favoriteStrip
|
||||||
anchors {
|
anchors {
|
||||||
|
|
@ -320,17 +338,5 @@ Item {
|
||||||
launcherGrid: launcher
|
launcherGrid: launcher
|
||||||
//y: Math.max(krunner.inputHeight, root.height - height - mainFlickable.contentY)
|
//y: Math.max(krunner.inputHeight, root.height - height - mainFlickable.contentY)
|
||||||
}
|
}
|
||||||
|
|
||||||
// KRunner {
|
|
||||||
// id: krunner
|
|
||||||
// z: 998
|
|
||||||
// height: plasmoid.availableScreenRect.height
|
|
||||||
// topPadding: plasmoid.availableScreenRect.y
|
|
||||||
// anchors {
|
|
||||||
// top: parent.top
|
|
||||||
// left: parent.left
|
|
||||||
// right: parent.right
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue