cleanup most numerical radius values
This commit is contained in:
@@ -124,12 +124,10 @@ Item {
|
||||
|
||||
VolumesTab {
|
||||
id: vol
|
||||
|
||||
}
|
||||
|
||||
DevicesTab {
|
||||
id: dev
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -139,12 +137,10 @@ Item {
|
||||
|
||||
ButtonGroup {
|
||||
id: sinks
|
||||
|
||||
}
|
||||
|
||||
ButtonGroup {
|
||||
id: sources
|
||||
|
||||
}
|
||||
|
||||
CustomText {
|
||||
@@ -210,7 +206,7 @@ Item {
|
||||
Layout.preferredHeight: 40
|
||||
Layout.preferredWidth: 40
|
||||
color: DynamicColors.palette.m3primary
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
MaterialIcon {
|
||||
anchors.alignWhenCentered: false
|
||||
@@ -284,7 +280,7 @@ Item {
|
||||
Layout.preferredHeight: 40
|
||||
Layout.preferredWidth: 40
|
||||
color: DynamicColors.palette.m3primary
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
MaterialIcon {
|
||||
anchors.alignWhenCentered: false
|
||||
@@ -372,7 +368,7 @@ Item {
|
||||
Layout.preferredHeight: 40
|
||||
Layout.preferredWidth: 40
|
||||
color: DynamicColors.palette.m3primary
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
MaterialIcon {
|
||||
id: icon
|
||||
@@ -383,7 +379,7 @@ Item {
|
||||
text: "volume_up"
|
||||
|
||||
StateLayer {
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
appBox.modelData.audio.muted = !appBox.modelData.audio.muted;
|
||||
|
||||
@@ -15,7 +15,7 @@ CustomRect {
|
||||
anchors.topMargin: 6
|
||||
color: DynamicColors.tPalette.m3surfaceContainer
|
||||
implicitWidth: 40
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
onClicked: {
|
||||
|
||||
@@ -18,7 +18,7 @@ Row {
|
||||
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2)
|
||||
implicitHeight: info.implicitHeight
|
||||
implicitWidth: info.implicitHeight
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
MaterialIcon {
|
||||
anchors.centerIn: parent
|
||||
|
||||
@@ -83,7 +83,7 @@ Item {
|
||||
anchors.top: parent.top
|
||||
color: DynamicColors.palette.m3primary
|
||||
implicitHeight: parent.implicitHeight * 2
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ Item {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: "transparent"
|
||||
implicitHeight: parent.height + 8 * 2
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
CustomRect {
|
||||
id: stateLayer
|
||||
@@ -204,7 +204,7 @@ Item {
|
||||
|
||||
color: tab.current ? DynamicColors.palette.m3primary : DynamicColors.palette.m3onSurface
|
||||
opacity: 0
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
transform: Translate {
|
||||
x: -ripple.width / 2
|
||||
|
||||
@@ -202,7 +202,7 @@ Item {
|
||||
anchors.margins: 4
|
||||
color: "white"
|
||||
opacity: root.selectedIcons.includes(filePath) ? 0.2 : 0.0
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
Behavior on opacity {
|
||||
Anim {
|
||||
@@ -262,7 +262,7 @@ Item {
|
||||
anchors.margins: 4
|
||||
color: "white"
|
||||
opacity: parent.containsMouse ? 0.1 : 0.0
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
Behavior on opacity {
|
||||
Anim {
|
||||
|
||||
@@ -50,7 +50,7 @@ Item {
|
||||
anchors.right: parent.right
|
||||
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainer, 2)
|
||||
implicitHeight: Math.max(searchIcon.implicitHeight, search.implicitHeight, clearIcon.implicitHeight)
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
MaterialIcon {
|
||||
id: searchIcon
|
||||
|
||||
@@ -23,7 +23,7 @@ Item {
|
||||
root.visibilities.launcher = false;
|
||||
}
|
||||
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -8,7 +8,7 @@ Item {
|
||||
|
||||
ClippingRectangle {
|
||||
anchors.fill: parent
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
Image {
|
||||
id: userImage
|
||||
|
||||
@@ -51,7 +51,7 @@ Item {
|
||||
anchors.fill: parent
|
||||
anchors.margins: root.padding
|
||||
color: "transparent"
|
||||
radius: 4
|
||||
radius: Appearance.rounding.smallest / 2
|
||||
|
||||
CustomListView {
|
||||
id: list
|
||||
@@ -126,7 +126,7 @@ Item {
|
||||
color: "transparent"
|
||||
implicitHeight: notif.implicitHeight
|
||||
implicitWidth: notif.implicitWidth
|
||||
radius: 4
|
||||
radius: Appearance.rounding.smallest / 2
|
||||
|
||||
Notification {
|
||||
id: notif
|
||||
|
||||
@@ -115,7 +115,7 @@ CustomRect {
|
||||
sourceComponent: ClippingRectangle {
|
||||
implicitHeight: Config.notifs.sizes.image
|
||||
implicitWidth: Config.notifs.sizes.image
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
@@ -142,7 +142,7 @@ CustomRect {
|
||||
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : root.modelData.urgency === NotificationUrgency.Low ? DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, 2) : DynamicColors.palette.m3secondaryContainer
|
||||
implicitHeight: root.hasImage ? Config.notifs.sizes.badge : Config.notifs.sizes.image
|
||||
implicitWidth: root.hasImage ? Config.notifs.sizes.badge : Config.notifs.sizes.image
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
Loader {
|
||||
id: icon
|
||||
@@ -312,7 +312,7 @@ CustomRect {
|
||||
}
|
||||
|
||||
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondaryContainer : DynamicColors.palette.m3onSurface
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
@@ -431,7 +431,7 @@ CustomRect {
|
||||
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3secondary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2)
|
||||
implicitHeight: actionText.height + 4 * 2
|
||||
implicitWidth: actionText.width + 8 * 2
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
@@ -439,7 +439,7 @@ CustomRect {
|
||||
}
|
||||
|
||||
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondary : DynamicColors.palette.m3onSurface
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
|
||||
CustomText {
|
||||
|
||||
@@ -19,7 +19,7 @@ Item {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
color: DynamicColors.tPalette.m3surfaceContainerLow
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
NotifDock {
|
||||
props: root.props
|
||||
|
||||
@@ -171,7 +171,7 @@ Item {
|
||||
font.pointSize: Math.round(18 * 1.2)
|
||||
icon: "clear_all"
|
||||
padding: 8
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
onClicked: clearTimer.start()
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ CustomRect {
|
||||
clip: true
|
||||
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainer, 2)
|
||||
implicitHeight: content.implicitHeight + 10 * 2
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
Component.onDestruction: {
|
||||
if (notifCount === 0 && expanded)
|
||||
@@ -100,7 +100,7 @@ CustomRect {
|
||||
CustomClippingRect {
|
||||
anchors.fill: parent
|
||||
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : root.urgency === NotificationUrgency.Low ? DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3) : DynamicColors.palette.m3secondaryContainer
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
Loader {
|
||||
anchors.centerIn: parent
|
||||
@@ -117,7 +117,7 @@ CustomRect {
|
||||
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : root.urgency === NotificationUrgency.Low ? DynamicColors.palette.m3surfaceContainerHigh : DynamicColors.palette.m3secondaryContainer
|
||||
implicitHeight: Config.notifs.sizes.badge
|
||||
implicitWidth: Config.notifs.sizes.badge
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
CustomIcon {
|
||||
anchors.centerIn: parent
|
||||
@@ -168,7 +168,7 @@ CustomRect {
|
||||
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3)
|
||||
implicitHeight: groupCount.implicitHeight + 10
|
||||
implicitWidth: expandBtn.implicitWidth + 7 * 2
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
|
||||
@@ -16,7 +16,7 @@ CustomRect {
|
||||
Layout.fillWidth: true
|
||||
color: DynamicColors.tPalette.m3surfaceContainer
|
||||
implicitHeight: layout.implicitHeight + 18 * 2
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
|
||||
@@ -11,7 +11,7 @@ CustomRect {
|
||||
clip: true
|
||||
color: DynamicColors.tPalette.m3surfaceContainer
|
||||
implicitHeight: layout.implicitHeight + (IdleInhibitor.enabled ? activeChip.implicitHeight + activeChip.anchors.topMargin : 0) + 18 * 2
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
Behavior on implicitHeight {
|
||||
Anim {
|
||||
@@ -33,7 +33,7 @@ CustomRect {
|
||||
color: IdleInhibitor.enabled ? DynamicColors.palette.m3secondary : DynamicColors.palette.m3secondaryContainer
|
||||
implicitHeight: icon.implicitHeight + 7 * 2
|
||||
implicitWidth: implicitHeight
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
MaterialIcon {
|
||||
id: icon
|
||||
@@ -102,7 +102,7 @@ CustomRect {
|
||||
color: DynamicColors.palette.m3primary
|
||||
implicitHeight: activeText.implicitHeight + 10 * 2
|
||||
implicitWidth: activeText.implicitWidth + 10 * 2
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
CustomText {
|
||||
id: activeText
|
||||
|
||||
@@ -82,7 +82,7 @@ Scope {
|
||||
implicitHeight: layout.childrenRect.height + 28
|
||||
implicitWidth: layout.childrenRect.width + 32
|
||||
opacity: 0
|
||||
radius: 24
|
||||
radius: Appearance.rounding.small * 2
|
||||
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
@@ -159,7 +159,7 @@ Scope {
|
||||
background: CustomRect {
|
||||
color: (polkitAgent.flow?.failed && passInput.text === "") ? DynamicColors.palette.m3error : DynamicColors.tPalette.m3surfaceVariant
|
||||
implicitHeight: 40
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
}
|
||||
|
||||
onAccepted: okButton.clicked()
|
||||
@@ -251,7 +251,7 @@ Scope {
|
||||
Layout.preferredWidth: 92
|
||||
bgColor: DynamicColors.palette.m3surfaceContainer
|
||||
enabled: true
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
text: "Details"
|
||||
textColor: DynamicColors.palette.m3onSurface
|
||||
|
||||
@@ -274,7 +274,7 @@ Scope {
|
||||
Layout.preferredWidth: 76
|
||||
bgColor: DynamicColors.palette.m3primary
|
||||
enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
text: "OK"
|
||||
textColor: DynamicColors.palette.m3onPrimary
|
||||
|
||||
@@ -293,7 +293,7 @@ Scope {
|
||||
Layout.preferredWidth: 76
|
||||
bgColor: DynamicColors.palette.m3surfaceContainer
|
||||
enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
text: "Cancel"
|
||||
textColor: DynamicColors.palette.m3onSurface
|
||||
|
||||
@@ -327,7 +327,6 @@ Scope {
|
||||
|
||||
PolkitAgent {
|
||||
id: polkitAgent
|
||||
|
||||
}
|
||||
|
||||
Variants {
|
||||
|
||||
@@ -86,7 +86,7 @@ StackView {
|
||||
color: modelData.isSeparator ? DynamicColors.palette.m3outlineVariant : "transparent"
|
||||
implicitHeight: modelData.isSeparator ? 1 : children.implicitHeight
|
||||
implicitWidth: root.biggestWidth
|
||||
radius: 4
|
||||
radius: Appearance.rounding.smallest / 2
|
||||
|
||||
Loader {
|
||||
id: children
|
||||
@@ -211,7 +211,7 @@ StackView {
|
||||
CustomRect {
|
||||
anchors.fill: parent
|
||||
color: DynamicColors.palette.m3secondaryContainer
|
||||
radius: 4
|
||||
radius: Appearance.rounding.smallest / 2
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
|
||||
@@ -37,7 +37,7 @@ Item {
|
||||
id: indicator
|
||||
|
||||
color: DynamicColors.palette.m3primary
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
state: profiles.current
|
||||
|
||||
states: [
|
||||
@@ -158,7 +158,7 @@ Item {
|
||||
}
|
||||
|
||||
color: profiles.current === parent.icon ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
||||
radius: 1000
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
|
||||
@@ -36,7 +36,7 @@ Item {
|
||||
Layout.preferredWidth: 320 + 10
|
||||
border.color: "white"
|
||||
border.width: 1
|
||||
radius: 8
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
Repeater {
|
||||
model: workspacePreview.modelData.toplevels
|
||||
@@ -65,7 +65,7 @@ Item {
|
||||
border.width: 1
|
||||
implicitHeight: preview.appPosition.height
|
||||
implicitWidth: preview.appPosition.width
|
||||
radius: 4
|
||||
radius: Appearance.rounding.smallest / 2
|
||||
x: preview.appPosition.x
|
||||
y: preview.appPosition.y - 3.4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user