mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Use Kirigami.Units.cornerRadius in most radius values
This takes the place of using smallSpacing for the most part.
This commit is contained in:
parent
eb9509ce68
commit
1702354d3f
14 changed files with 16 additions and 16 deletions
|
|
@ -64,7 +64,7 @@ Item {
|
|||
id: rectBackground
|
||||
anchors.fill: parent
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ Item {
|
|||
id: rectBackground
|
||||
anchors.fill: parent
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Item {
|
|||
anchors.centerIn: parent
|
||||
width: img.width
|
||||
height: img.height
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ Item {
|
|||
anchors.bottomMargin: -1
|
||||
|
||||
color: Qt.darker(Kirigami.Theme.backgroundColor, 1.3)
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
}
|
||||
|
||||
// card
|
||||
|
|
@ -78,7 +78,7 @@ Item {
|
|||
anchors.top: parent.top
|
||||
|
||||
color: (root.tapEnabled && mouseArea.pressed) ? Qt.darker(Kirigami.Theme.backgroundColor, 1.1) : Kirigami.Theme.backgroundColor
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
implicitHeight: contentParent.implicitHeight
|
||||
|
||||
// clip
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ Item {
|
|||
dropDelegateIsWidget &&
|
||||
pageModel.canAddDelegate(dropPosition.pageRow, dropPosition.pageColumn, dropDelegate)
|
||||
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
color: Qt.rgba(255, 255, 255, 0.3)
|
||||
|
||||
x: dropPosition.pageColumn * folio.HomeScreenState.pageCellWidth
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ Item {
|
|||
Rectangle {
|
||||
id: loader
|
||||
color: Qt.rgba(255, 255, 255, 0.3)
|
||||
radius: Kirigami.Units.largeSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||
Layout.minimumWidth: folio.FolioSettings.delegateIconSize
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ AbstractDelegate {
|
|||
// background for folder creation animation
|
||||
Rectangle {
|
||||
id: rect
|
||||
radius: Kirigami.Units.largeSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
color: Qt.rgba(255, 255, 255, 0.3)
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Item {
|
|||
|
||||
Rectangle {
|
||||
id: rect
|
||||
radius: Kirigami.Units.largeSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
color: Qt.rgba(255, 255, 255, 0.3)
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ Folio.WidgetContainer {
|
|||
anchors.fill: parent
|
||||
visible: root.widget && !root.widget.applet
|
||||
color: Qt.rgba(255, 255, 255, 0.3)
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ Item {
|
|||
id: resizeOutline
|
||||
color: 'transparent'
|
||||
border.color: 'white'
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
border.width: 1
|
||||
|
||||
anchors.fill: handleContainer
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ MouseArea {
|
|||
id: background
|
||||
color: Qt.rgba(255, 255, 255, 0.3)
|
||||
visible: delegate.containsMouse
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ Item {
|
|||
anchors.fill: parent
|
||||
anchors.margins: Kirigami.Units.smallSpacing
|
||||
color: Qt.rgba(255, 255, 255, 0.2)
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
opacity: delegate.dragFolderAnimationProgress
|
||||
}
|
||||
|
||||
|
|
@ -311,7 +311,7 @@ Item {
|
|||
anchors.fill: parent
|
||||
anchors.margins: Kirigami.Units.smallSpacing
|
||||
color: Qt.rgba(255, 255, 255, 0.2)
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
|
||||
transform: Scale {
|
||||
origin.x: rect.width / 2
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ RowLayout {
|
|||
}
|
||||
|
||||
background: Rectangle {
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
border.color: {
|
||||
if (amPmToggle.enabled && (amPmToggle.visualFocus || amPmToggle.hovered || amPmToggle.down)) {
|
||||
return Kirigami.Theme.focusColor
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ Item {
|
|||
id: buttonRect
|
||||
width: root.width
|
||||
height: iconSize * 2.2
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
radius: Kirigami.Units.cornerRadius
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
opacity: mouseArea.containsPress ? 1 : 0.6
|
||||
border {
|
||||
|
|
|
|||
Loading…
Reference in a new issue