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
|
id: rectBackground
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ Item {
|
||||||
id: rectBackground
|
id: rectBackground
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ Item {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: img.width
|
width: img.width
|
||||||
height: img.height
|
height: img.height
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ Item {
|
||||||
anchors.bottomMargin: -1
|
anchors.bottomMargin: -1
|
||||||
|
|
||||||
color: Qt.darker(Kirigami.Theme.backgroundColor, 1.3)
|
color: Qt.darker(Kirigami.Theme.backgroundColor, 1.3)
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
// card
|
// card
|
||||||
|
|
@ -78,7 +78,7 @@ Item {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
||||||
color: (root.tapEnabled && mouseArea.pressed) ? Qt.darker(Kirigami.Theme.backgroundColor, 1.1) : Kirigami.Theme.backgroundColor
|
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
|
implicitHeight: contentParent.implicitHeight
|
||||||
|
|
||||||
// clip
|
// clip
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ Item {
|
||||||
dropDelegateIsWidget &&
|
dropDelegateIsWidget &&
|
||||||
pageModel.canAddDelegate(dropPosition.pageRow, dropPosition.pageColumn, dropDelegate)
|
pageModel.canAddDelegate(dropPosition.pageRow, dropPosition.pageColumn, dropDelegate)
|
||||||
|
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: Qt.rgba(255, 255, 255, 0.3)
|
color: Qt.rgba(255, 255, 255, 0.3)
|
||||||
|
|
||||||
x: dropPosition.pageColumn * folio.HomeScreenState.pageCellWidth
|
x: dropPosition.pageColumn * folio.HomeScreenState.pageCellWidth
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: loader
|
id: loader
|
||||||
color: Qt.rgba(255, 255, 255, 0.3)
|
color: Qt.rgba(255, 255, 255, 0.3)
|
||||||
radius: Kirigami.Units.largeSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||||
Layout.minimumWidth: folio.FolioSettings.delegateIconSize
|
Layout.minimumWidth: folio.FolioSettings.delegateIconSize
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ AbstractDelegate {
|
||||||
// background for folder creation animation
|
// background for folder creation animation
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: rect
|
id: rect
|
||||||
radius: Kirigami.Units.largeSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: Qt.rgba(255, 255, 255, 0.3)
|
color: Qt.rgba(255, 255, 255, 0.3)
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Item {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: rect
|
id: rect
|
||||||
radius: Kirigami.Units.largeSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: Qt.rgba(255, 255, 255, 0.3)
|
color: Qt.rgba(255, 255, 255, 0.3)
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ Folio.WidgetContainer {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: root.widget && !root.widget.applet
|
visible: root.widget && !root.widget.applet
|
||||||
color: Qt.rgba(255, 255, 255, 0.3)
|
color: Qt.rgba(255, 255, 255, 0.3)
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ Item {
|
||||||
id: resizeOutline
|
id: resizeOutline
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
border.color: 'white'
|
border.color: 'white'
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
||||||
anchors.fill: handleContainer
|
anchors.fill: handleContainer
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ MouseArea {
|
||||||
id: background
|
id: background
|
||||||
color: Qt.rgba(255, 255, 255, 0.3)
|
color: Qt.rgba(255, 255, 255, 0.3)
|
||||||
visible: delegate.containsMouse
|
visible: delegate.containsMouse
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Kirigami.Units.smallSpacing
|
anchors.margins: Kirigami.Units.smallSpacing
|
||||||
color: Qt.rgba(255, 255, 255, 0.2)
|
color: Qt.rgba(255, 255, 255, 0.2)
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
opacity: delegate.dragFolderAnimationProgress
|
opacity: delegate.dragFolderAnimationProgress
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -311,7 +311,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Kirigami.Units.smallSpacing
|
anchors.margins: Kirigami.Units.smallSpacing
|
||||||
color: Qt.rgba(255, 255, 255, 0.2)
|
color: Qt.rgba(255, 255, 255, 0.2)
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
|
|
||||||
transform: Scale {
|
transform: Scale {
|
||||||
origin.x: rect.width / 2
|
origin.x: rect.width / 2
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ RowLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
border.color: {
|
border.color: {
|
||||||
if (amPmToggle.enabled && (amPmToggle.visualFocus || amPmToggle.hovered || amPmToggle.down)) {
|
if (amPmToggle.enabled && (amPmToggle.visualFocus || amPmToggle.hovered || amPmToggle.down)) {
|
||||||
return Kirigami.Theme.focusColor
|
return Kirigami.Theme.focusColor
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ Item {
|
||||||
id: buttonRect
|
id: buttonRect
|
||||||
width: root.width
|
width: root.width
|
||||||
height: iconSize * 2.2
|
height: iconSize * 2.2
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
opacity: mouseArea.containsPress ? 1 : 0.6
|
opacity: mouseArea.containsPress ? 1 : 0.6
|
||||||
border {
|
border {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue