cleanup most numerical radius values

This commit is contained in:
2026-04-02 23:22:50 +02:00
parent 138d80ef00
commit 61c3fe20d5
40 changed files with 77 additions and 82 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 15 bottomRightRadius: root.implicitHeight / 15
color: root.nonPeakColor color: root.nonPeakColor
implicitWidth: root.handle.x - root.implicitHeight implicitWidth: root.handle.x - root.implicitHeight
radius: 1000 radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 15 topRightRadius: root.implicitHeight / 15
CustomRect { CustomRect {
@@ -29,7 +29,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 15 bottomRightRadius: root.implicitHeight / 15
color: root.peakColor color: root.peakColor
implicitWidth: parent.width * root.peak implicitWidth: parent.width * root.peak
radius: 1000 radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 15 topRightRadius: root.implicitHeight / 15
Behavior on implicitWidth { Behavior on implicitWidth {
@@ -49,7 +49,7 @@ Slider {
bottomLeftRadius: root.implicitHeight / 15 bottomLeftRadius: root.implicitHeight / 15
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: root.implicitWidth - root.handle.x - root.handle.implicitWidth - root.implicitHeight implicitWidth: root.implicitWidth - root.handle.x - root.handle.implicitWidth - root.implicitHeight
radius: 1000 radius: Appearance.rounding.full
topLeftRadius: root.implicitHeight / 15 topLeftRadius: root.implicitHeight / 15
} }
} }
@@ -58,7 +58,7 @@ Slider {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitHeight: 15 implicitHeight: 15
implicitWidth: 5 implicitWidth: 5
radius: 1000 radius: Appearance.rounding.full
x: root.visualPosition * root.availableWidth - implicitWidth / 2 x: root.visualPosition * root.availableWidth - implicitWidth / 2
MouseArea { MouseArea {
+1 -1
View File
@@ -6,7 +6,7 @@ Button {
id: control id: control
property color bgColor: DynamicColors.palette.m3primary property color bgColor: DynamicColors.palette.m3primary
property int radius: 4 property int radius: Appearance.rounding.smallest / 2
property color textColor: DynamicColors.palette.m3onPrimary property color textColor: DynamicColors.palette.m3onPrimary
background: CustomRect { background: CustomRect {
+1 -1
View File
@@ -22,7 +22,7 @@ CheckBox {
color: DynamicColors.palette.m3surfaceVariant color: DynamicColors.palette.m3surfaceVariant
implicitHeight: control.checkHeight implicitHeight: control.checkHeight
implicitWidth: control.checkWidth implicitWidth: control.checkWidth
radius: 4 radius: Appearance.rounding.smallest / 2
CustomRect { CustomRect {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
+2 -2
View File
@@ -25,7 +25,7 @@ RadioButton {
color: "transparent" color: "transparent"
implicitHeight: 16 implicitHeight: 16
implicitWidth: 16 implicitWidth: 16
radius: 1000 radius: Appearance.rounding.full
Behavior on border.color { Behavior on border.color {
CAnim { CAnim {
@@ -47,7 +47,7 @@ RadioButton {
color: Qt.alpha(DynamicColors.palette.m3primary, root.checked ? 1 : 0) color: Qt.alpha(DynamicColors.palette.m3primary, root.checked ? 1 : 0)
implicitHeight: 8 implicitHeight: 8
implicitWidth: 8 implicitWidth: 8
radius: 1000 radius: Appearance.rounding.full
} }
} }
} }
+1 -1
View File
@@ -29,7 +29,7 @@ ScrollBar {
return 0.6; return 0.6;
return 0; return 0;
} }
radius: 1000 radius: Appearance.rounding.full
Behavior on opacity { Behavior on opacity {
Anim { Anim {
+3 -3
View File
@@ -13,7 +13,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 6 bottomRightRadius: root.implicitHeight / 6
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitWidth: root.handle.x - root.implicitHeight / 2 implicitWidth: root.handle.x - root.implicitHeight / 2
radius: 1000 radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 6 topRightRadius: root.implicitHeight / 6
} }
@@ -24,7 +24,7 @@ Slider {
bottomLeftRadius: root.implicitHeight / 6 bottomLeftRadius: root.implicitHeight / 6
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: parent.width - root.handle.x - root.handle.implicitWidth - root.implicitHeight / 2 implicitWidth: parent.width - root.handle.x - root.handle.implicitWidth - root.implicitHeight / 2
radius: 1000 radius: Appearance.rounding.full
topLeftRadius: root.implicitHeight / 6 topLeftRadius: root.implicitHeight / 6
} }
} }
@@ -33,7 +33,7 @@ Slider {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitHeight: 15 implicitHeight: 15
implicitWidth: 5 implicitWidth: 5
radius: 1000 radius: Appearance.rounding.full
x: root.visualPosition * root.availableWidth - implicitWidth / 2 x: root.visualPosition * root.availableWidth - implicitWidth / 2
MouseArea { MouseArea {
+2 -2
View File
@@ -15,7 +15,7 @@ Switch {
color: root.checked ? DynamicColors.palette.m3primary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, root.cLayer) color: root.checked ? DynamicColors.palette.m3primary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, root.cLayer)
implicitHeight: 13 + 7 * 2 implicitHeight: 13 + 7 * 2
implicitWidth: implicitHeight * 1.7 implicitWidth: implicitHeight * 1.7
radius: 1000 radius: Appearance.rounding.full
CustomRect { CustomRect {
readonly property real nonAnimWidth: root.pressed ? implicitHeight * 1.3 : implicitHeight readonly property real nonAnimWidth: root.pressed ? implicitHeight * 1.3 : implicitHeight
@@ -24,7 +24,7 @@ Switch {
color: root.checked ? DynamicColors.palette.m3onPrimary : DynamicColors.layer(DynamicColors.palette.m3outline, root.cLayer + 1) color: root.checked ? DynamicColors.palette.m3onPrimary : DynamicColors.layer(DynamicColors.palette.m3outline, root.cLayer + 1)
implicitHeight: parent.implicitHeight - 10 implicitHeight: parent.implicitHeight - 10
implicitWidth: nonAnimWidth implicitWidth: nonAnimWidth
radius: 1000 radius: Appearance.rounding.full
x: root.checked ? parent.implicitWidth - nonAnimWidth - 10 / 2 : 10 / 2 x: root.checked ? parent.implicitWidth - nonAnimWidth - 10 / 2 : 10 / 2
Behavior on implicitWidth { Behavior on implicitWidth {
+1 -1
View File
@@ -22,7 +22,7 @@ Item {
implicitHeight: shown ? (tooltipTextObject.implicitHeight + 2 * root.verticalPadding) : 0 implicitHeight: shown ? (tooltipTextObject.implicitHeight + 2 * root.verticalPadding) : 0
implicitWidth: shown ? (tooltipTextObject.implicitWidth + 2 * root.horizontalPadding) : 0 implicitWidth: shown ? (tooltipTextObject.implicitWidth + 2 * root.horizontalPadding) : 0
opacity: shown ? 1 : 0 opacity: shown ? 1 : 0
radius: 8 radius: Appearance.rounding.smallest
Behavior on implicitHeight { Behavior on implicitHeight {
Anim { Anim {
+1 -1
View File
@@ -10,7 +10,7 @@ CustomRect {
implicitHeight: count.implicitHeight + 4 * 2 implicitHeight: count.implicitHeight + 4 * 2
implicitWidth: count.implicitWidth + 8 * 2 implicitWidth: count.implicitWidth + 8 * 2
opacity: extra > 0 ? 1 : 0 opacity: extra > 0 ? 1 : 0
radius: 8 radius: Appearance.rounding.smallest
scale: extra > 0 ? 1 : 0.5 scale: extra > 0 ? 1 : 0.5
Behavior on opacity { Behavior on opacity {
+1 -1
View File
@@ -85,7 +85,7 @@ MouseArea {
border.pixelAligned: false border.pixelAligned: false
color: root.color color: root.color
opacity: 0 opacity: 0
radius: 1000 radius: Appearance.rounding.full
transform: Translate { transform: Translate {
x: -ripple.width / 2 x: -ripple.width / 2
+4 -4
View File
@@ -19,7 +19,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 15 bottomRightRadius: root.implicitHeight / 15
color: root.nonPeakColor color: root.nonPeakColor
implicitWidth: root.handle.x - root.implicitHeight implicitWidth: root.handle.x - root.implicitHeight
radius: 1000 radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 15 topRightRadius: root.implicitHeight / 15
CustomRect { CustomRect {
@@ -29,7 +29,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 15 bottomRightRadius: root.implicitHeight / 15
color: root.peakColor color: root.peakColor
implicitWidth: parent.width * root.peak implicitWidth: parent.width * root.peak
radius: 1000 radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 15 topRightRadius: root.implicitHeight / 15
Behavior on implicitWidth { Behavior on implicitWidth {
@@ -49,7 +49,7 @@ Slider {
bottomLeftRadius: root.implicitHeight / 15 bottomLeftRadius: root.implicitHeight / 15
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: root.implicitWidth - root.handle.x - root.handle.implicitWidth - root.implicitHeight implicitWidth: root.implicitWidth - root.handle.x - root.handle.implicitWidth - root.implicitHeight
radius: 1000 radius: Appearance.rounding.full
topLeftRadius: root.implicitHeight / 15 topLeftRadius: root.implicitHeight / 15
} }
} }
@@ -58,7 +58,7 @@ Slider {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitHeight: 15 implicitHeight: 15
implicitWidth: 5 implicitWidth: 5
radius: 1000 radius: Appearance.rounding.full
x: root.visualPosition * root.availableWidth - implicitWidth / 2 x: root.visualPosition * root.availableWidth - implicitWidth / 2
MouseArea { MouseArea {
+1 -1
View File
@@ -6,7 +6,7 @@ Button {
id: control id: control
property color bgColor: DynamicColors.palette.m3primary property color bgColor: DynamicColors.palette.m3primary
property int radius: 4 property int radius: Appearance.rounding.smallest / 2
property color textColor: DynamicColors.palette.m3onPrimary property color textColor: DynamicColors.palette.m3onPrimary
background: CustomRect { background: CustomRect {
+1 -1
View File
@@ -22,7 +22,7 @@ CheckBox {
color: DynamicColors.palette.m3surfaceVariant color: DynamicColors.palette.m3surfaceVariant
implicitHeight: control.checkHeight implicitHeight: control.checkHeight
implicitWidth: control.checkWidth implicitWidth: control.checkWidth
radius: 4 radius: Appearance.rounding.smallest / 2
CustomRect { CustomRect {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
+2 -2
View File
@@ -25,7 +25,7 @@ RadioButton {
color: "transparent" color: "transparent"
implicitHeight: 16 implicitHeight: 16
implicitWidth: 16 implicitWidth: 16
radius: 1000 radius: Appearance.rounding.full
Behavior on border.color { Behavior on border.color {
CAnim { CAnim {
@@ -47,7 +47,7 @@ RadioButton {
color: Qt.alpha(DynamicColors.palette.m3primary, root.checked ? 1 : 0) color: Qt.alpha(DynamicColors.palette.m3primary, root.checked ? 1 : 0)
implicitHeight: 8 implicitHeight: 8
implicitWidth: 8 implicitWidth: 8
radius: 1000 radius: Appearance.rounding.full
} }
} }
} }
+1 -1
View File
@@ -29,7 +29,7 @@ ScrollBar {
return 0.6; return 0.6;
return 0; return 0;
} }
radius: 1000 radius: Appearance.rounding.full
Behavior on opacity { Behavior on opacity {
Anim { Anim {
+3 -3
View File
@@ -13,7 +13,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 6 bottomRightRadius: root.implicitHeight / 6
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitWidth: root.handle.x - root.implicitHeight / 2 implicitWidth: root.handle.x - root.implicitHeight / 2
radius: 1000 radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 6 topRightRadius: root.implicitHeight / 6
} }
@@ -24,7 +24,7 @@ Slider {
bottomLeftRadius: root.implicitHeight / 6 bottomLeftRadius: root.implicitHeight / 6
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: parent.width - root.handle.x - root.handle.implicitWidth - root.implicitHeight / 2 implicitWidth: parent.width - root.handle.x - root.handle.implicitWidth - root.implicitHeight / 2
radius: 1000 radius: Appearance.rounding.full
topLeftRadius: root.implicitHeight / 6 topLeftRadius: root.implicitHeight / 6
} }
} }
@@ -33,7 +33,7 @@ Slider {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitHeight: 15 implicitHeight: 15
implicitWidth: 5 implicitWidth: 5
radius: 1000 radius: Appearance.rounding.full
x: root.visualPosition * root.availableWidth - implicitWidth / 2 x: root.visualPosition * root.availableWidth - implicitWidth / 2
MouseArea { MouseArea {
+2 -2
View File
@@ -15,7 +15,7 @@ Switch {
color: root.checked ? DynamicColors.palette.m3primary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, root.cLayer) color: root.checked ? DynamicColors.palette.m3primary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, root.cLayer)
implicitHeight: 13 + 7 * 2 implicitHeight: 13 + 7 * 2
implicitWidth: implicitHeight * 1.7 implicitWidth: implicitHeight * 1.7
radius: 1000 radius: Appearance.rounding.full
CustomRect { CustomRect {
readonly property real nonAnimWidth: root.pressed ? implicitHeight * 1.3 : implicitHeight readonly property real nonAnimWidth: root.pressed ? implicitHeight * 1.3 : implicitHeight
@@ -24,7 +24,7 @@ Switch {
color: root.checked ? DynamicColors.palette.m3onPrimary : DynamicColors.layer(DynamicColors.palette.m3outline, root.cLayer + 1) color: root.checked ? DynamicColors.palette.m3onPrimary : DynamicColors.layer(DynamicColors.palette.m3outline, root.cLayer + 1)
implicitHeight: parent.implicitHeight - 10 implicitHeight: parent.implicitHeight - 10
implicitWidth: nonAnimWidth implicitWidth: nonAnimWidth
radius: 1000 radius: Appearance.rounding.full
x: root.checked ? parent.implicitWidth - nonAnimWidth - 10 / 2 : 10 / 2 x: root.checked ? parent.implicitWidth - nonAnimWidth - 10 / 2 : 10 / 2
Behavior on implicitWidth { Behavior on implicitWidth {
+1 -1
View File
@@ -22,7 +22,7 @@ Item {
implicitHeight: shown ? (tooltipTextObject.implicitHeight + 2 * root.verticalPadding) : 0 implicitHeight: shown ? (tooltipTextObject.implicitHeight + 2 * root.verticalPadding) : 0
implicitWidth: shown ? (tooltipTextObject.implicitWidth + 2 * root.horizontalPadding) : 0 implicitWidth: shown ? (tooltipTextObject.implicitWidth + 2 * root.horizontalPadding) : 0
opacity: shown ? 1 : 0 opacity: shown ? 1 : 0
radius: 8 radius: Appearance.rounding.smallest
Behavior on implicitHeight { Behavior on implicitHeight {
Anim { Anim {
+1 -1
View File
@@ -10,7 +10,7 @@ CustomRect {
implicitHeight: count.implicitHeight + 4 * 2 implicitHeight: count.implicitHeight + 4 * 2
implicitWidth: count.implicitWidth + 8 * 2 implicitWidth: count.implicitWidth + 8 * 2
opacity: extra > 0 ? 1 : 0 opacity: extra > 0 ? 1 : 0
radius: 8 radius: Appearance.rounding.smallest
scale: extra > 0 ? 1 : 0.5 scale: extra > 0 ? 1 : 0.5
Behavior on opacity { Behavior on opacity {
+1 -1
View File
@@ -85,7 +85,7 @@ MouseArea {
border.pixelAligned: false border.pixelAligned: false
color: root.color color: root.color
opacity: 0 opacity: 0
radius: 1000 radius: Appearance.rounding.full
transform: Translate { transform: Translate {
x: -ripple.width / 2 x: -ripple.width / 2
+1 -1
View File
@@ -7,7 +7,7 @@ Item {
ClippingRectangle { ClippingRectangle {
anchors.fill: parent anchors.fill: parent
radius: 1000 radius: Appearance.rounding.full
Image { Image {
id: userImage id: userImage
+4 -8
View File
@@ -124,12 +124,10 @@ Item {
VolumesTab { VolumesTab {
id: vol id: vol
} }
DevicesTab { DevicesTab {
id: dev id: dev
} }
} }
} }
@@ -139,12 +137,10 @@ Item {
ButtonGroup { ButtonGroup {
id: sinks id: sinks
} }
ButtonGroup { ButtonGroup {
id: sources id: sources
} }
CustomText { CustomText {
@@ -210,7 +206,7 @@ Item {
Layout.preferredHeight: 40 Layout.preferredHeight: 40
Layout.preferredWidth: 40 Layout.preferredWidth: 40
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
radius: 1000 radius: Appearance.rounding.full
MaterialIcon { MaterialIcon {
anchors.alignWhenCentered: false anchors.alignWhenCentered: false
@@ -284,7 +280,7 @@ Item {
Layout.preferredHeight: 40 Layout.preferredHeight: 40
Layout.preferredWidth: 40 Layout.preferredWidth: 40
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
radius: 1000 radius: Appearance.rounding.full
MaterialIcon { MaterialIcon {
anchors.alignWhenCentered: false anchors.alignWhenCentered: false
@@ -372,7 +368,7 @@ Item {
Layout.preferredHeight: 40 Layout.preferredHeight: 40
Layout.preferredWidth: 40 Layout.preferredWidth: 40
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
radius: 1000 radius: Appearance.rounding.full
MaterialIcon { MaterialIcon {
id: icon id: icon
@@ -383,7 +379,7 @@ Item {
text: "volume_up" text: "volume_up"
StateLayer { StateLayer {
radius: 1000 radius: Appearance.rounding.full
onClicked: { onClicked: {
appBox.modelData.audio.muted = !appBox.modelData.audio.muted; appBox.modelData.audio.muted = !appBox.modelData.audio.muted;
+1 -1
View File
@@ -15,7 +15,7 @@ CustomRect {
anchors.topMargin: 6 anchors.topMargin: 6
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: 40 implicitWidth: 40
radius: 1000 radius: Appearance.rounding.full
StateLayer { StateLayer {
onClicked: { onClicked: {
+1 -1
View File
@@ -18,7 +18,7 @@ Row {
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2) color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2)
implicitHeight: info.implicitHeight implicitHeight: info.implicitHeight
implicitWidth: info.implicitHeight implicitWidth: info.implicitHeight
radius: 8 radius: Appearance.rounding.smallest
MaterialIcon { MaterialIcon {
anchors.centerIn: parent anchors.centerIn: parent
+3 -3
View File
@@ -83,7 +83,7 @@ Item {
anchors.top: parent.top anchors.top: parent.top
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitHeight: parent.implicitHeight * 2 implicitHeight: parent.implicitHeight * 2
radius: 1000 radius: Appearance.rounding.full
} }
} }
@@ -184,7 +184,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
color: "transparent" color: "transparent"
implicitHeight: parent.height + 8 * 2 implicitHeight: parent.height + 8 * 2
radius: 8 radius: Appearance.rounding.smallest
CustomRect { CustomRect {
id: stateLayer id: stateLayer
@@ -204,7 +204,7 @@ Item {
color: tab.current ? DynamicColors.palette.m3primary : DynamicColors.palette.m3onSurface color: tab.current ? DynamicColors.palette.m3primary : DynamicColors.palette.m3onSurface
opacity: 0 opacity: 0
radius: 1000 radius: Appearance.rounding.full
transform: Translate { transform: Translate {
x: -ripple.width / 2 x: -ripple.width / 2
+2 -2
View File
@@ -202,7 +202,7 @@ Item {
anchors.margins: 4 anchors.margins: 4
color: "white" color: "white"
opacity: root.selectedIcons.includes(filePath) ? 0.2 : 0.0 opacity: root.selectedIcons.includes(filePath) ? 0.2 : 0.0
radius: 8 radius: Appearance.rounding.smallest
Behavior on opacity { Behavior on opacity {
Anim { Anim {
@@ -262,7 +262,7 @@ Item {
anchors.margins: 4 anchors.margins: 4
color: "white" color: "white"
opacity: parent.containsMouse ? 0.1 : 0.0 opacity: parent.containsMouse ? 0.1 : 0.0
radius: 8 radius: Appearance.rounding.smallest
Behavior on opacity { Behavior on opacity {
Anim { Anim {
+1 -1
View File
@@ -50,7 +50,7 @@ Item {
anchors.right: parent.right anchors.right: parent.right
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainer, 2) color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainer, 2)
implicitHeight: Math.max(searchIcon.implicitHeight, search.implicitHeight, clearIcon.implicitHeight) implicitHeight: Math.max(searchIcon.implicitHeight, search.implicitHeight, clearIcon.implicitHeight)
radius: 8 radius: Appearance.rounding.smallest
MaterialIcon { MaterialIcon {
id: searchIcon id: searchIcon
+1 -1
View File
@@ -23,7 +23,7 @@ Item {
root.visibilities.launcher = false; root.visibilities.launcher = false;
} }
radius: 8 radius: Appearance.rounding.smallest
} }
Item { Item {
+1 -1
View File
@@ -8,7 +8,7 @@ Item {
ClippingRectangle { ClippingRectangle {
anchors.fill: parent anchors.fill: parent
radius: 1000 radius: Appearance.rounding.full
Image { Image {
id: userImage id: userImage
+2 -2
View File
@@ -51,7 +51,7 @@ Item {
anchors.fill: parent anchors.fill: parent
anchors.margins: root.padding anchors.margins: root.padding
color: "transparent" color: "transparent"
radius: 4 radius: Appearance.rounding.smallest / 2
CustomListView { CustomListView {
id: list id: list
@@ -126,7 +126,7 @@ Item {
color: "transparent" color: "transparent"
implicitHeight: notif.implicitHeight implicitHeight: notif.implicitHeight
implicitWidth: notif.implicitWidth implicitWidth: notif.implicitWidth
radius: 4 radius: Appearance.rounding.smallest / 2
Notification { Notification {
id: notif id: notif
+5 -5
View File
@@ -115,7 +115,7 @@ CustomRect {
sourceComponent: ClippingRectangle { sourceComponent: ClippingRectangle {
implicitHeight: Config.notifs.sizes.image implicitHeight: Config.notifs.sizes.image
implicitWidth: Config.notifs.sizes.image implicitWidth: Config.notifs.sizes.image
radius: 1000 radius: Appearance.rounding.full
Image { Image {
anchors.fill: parent 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 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 implicitHeight: root.hasImage ? Config.notifs.sizes.badge : Config.notifs.sizes.image
implicitWidth: 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 { Loader {
id: icon id: icon
@@ -312,7 +312,7 @@ CustomRect {
} }
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondaryContainer : DynamicColors.palette.m3onSurface color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondaryContainer : DynamicColors.palette.m3onSurface
radius: 1000 radius: Appearance.rounding.full
} }
MaterialIcon { MaterialIcon {
@@ -431,7 +431,7 @@ CustomRect {
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3secondary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2) color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3secondary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2)
implicitHeight: actionText.height + 4 * 2 implicitHeight: actionText.height + 4 * 2
implicitWidth: actionText.width + 8 * 2 implicitWidth: actionText.width + 8 * 2
radius: 1000 radius: Appearance.rounding.full
StateLayer { StateLayer {
function onClicked(): void { function onClicked(): void {
@@ -439,7 +439,7 @@ CustomRect {
} }
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondary : DynamicColors.palette.m3onSurface color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondary : DynamicColors.palette.m3onSurface
radius: 1000 radius: Appearance.rounding.full
} }
CustomText { CustomText {
+1 -1
View File
@@ -19,7 +19,7 @@ Item {
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
color: DynamicColors.tPalette.m3surfaceContainerLow color: DynamicColors.tPalette.m3surfaceContainerLow
radius: 8 radius: Appearance.rounding.smallest
NotifDock { NotifDock {
props: root.props props: root.props
+1 -1
View File
@@ -171,7 +171,7 @@ Item {
font.pointSize: Math.round(18 * 1.2) font.pointSize: Math.round(18 * 1.2)
icon: "clear_all" icon: "clear_all"
padding: 8 padding: 8
radius: 8 radius: Appearance.rounding.smallest
onClicked: clearTimer.start() onClicked: clearTimer.start()
+4 -4
View File
@@ -43,7 +43,7 @@ CustomRect {
clip: true clip: true
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainer, 2) color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainer, 2)
implicitHeight: content.implicitHeight + 10 * 2 implicitHeight: content.implicitHeight + 10 * 2
radius: 8 radius: Appearance.rounding.smallest
Component.onDestruction: { Component.onDestruction: {
if (notifCount === 0 && expanded) if (notifCount === 0 && expanded)
@@ -100,7 +100,7 @@ CustomRect {
CustomClippingRect { CustomClippingRect {
anchors.fill: parent anchors.fill: parent
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : root.urgency === NotificationUrgency.Low ? DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3) : DynamicColors.palette.m3secondaryContainer 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 { Loader {
anchors.centerIn: parent 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 color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : root.urgency === NotificationUrgency.Low ? DynamicColors.palette.m3surfaceContainerHigh : DynamicColors.palette.m3secondaryContainer
implicitHeight: Config.notifs.sizes.badge implicitHeight: Config.notifs.sizes.badge
implicitWidth: Config.notifs.sizes.badge implicitWidth: Config.notifs.sizes.badge
radius: 1000 radius: Appearance.rounding.full
CustomIcon { CustomIcon {
anchors.centerIn: parent anchors.centerIn: parent
@@ -168,7 +168,7 @@ CustomRect {
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3) color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3)
implicitHeight: groupCount.implicitHeight + 10 implicitHeight: groupCount.implicitHeight + 10
implicitWidth: expandBtn.implicitWidth + 7 * 2 implicitWidth: expandBtn.implicitWidth + 7 * 2
radius: 1000 radius: Appearance.rounding.full
StateLayer { StateLayer {
function onClicked(): void { function onClicked(): void {
@@ -16,7 +16,7 @@ CustomRect {
Layout.fillWidth: true Layout.fillWidth: true
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: layout.implicitHeight + 18 * 2 implicitHeight: layout.implicitHeight + 18 * 2
radius: 8 radius: Appearance.rounding.smallest
ColumnLayout { ColumnLayout {
id: layout id: layout
@@ -11,7 +11,7 @@ CustomRect {
clip: true clip: true
color: DynamicColors.tPalette.m3surfaceContainer color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: layout.implicitHeight + (IdleInhibitor.enabled ? activeChip.implicitHeight + activeChip.anchors.topMargin : 0) + 18 * 2 implicitHeight: layout.implicitHeight + (IdleInhibitor.enabled ? activeChip.implicitHeight + activeChip.anchors.topMargin : 0) + 18 * 2
radius: 8 radius: Appearance.rounding.smallest
Behavior on implicitHeight { Behavior on implicitHeight {
Anim { Anim {
@@ -33,7 +33,7 @@ CustomRect {
color: IdleInhibitor.enabled ? DynamicColors.palette.m3secondary : DynamicColors.palette.m3secondaryContainer color: IdleInhibitor.enabled ? DynamicColors.palette.m3secondary : DynamicColors.palette.m3secondaryContainer
implicitHeight: icon.implicitHeight + 7 * 2 implicitHeight: icon.implicitHeight + 7 * 2
implicitWidth: implicitHeight implicitWidth: implicitHeight
radius: 1000 radius: Appearance.rounding.full
MaterialIcon { MaterialIcon {
id: icon id: icon
@@ -102,7 +102,7 @@ CustomRect {
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
implicitHeight: activeText.implicitHeight + 10 * 2 implicitHeight: activeText.implicitHeight + 10 * 2
implicitWidth: activeText.implicitWidth + 10 * 2 implicitWidth: activeText.implicitWidth + 10 * 2
radius: 1000 radius: Appearance.rounding.full
CustomText { CustomText {
id: activeText id: activeText
+5 -6
View File
@@ -82,7 +82,7 @@ Scope {
implicitHeight: layout.childrenRect.height + 28 implicitHeight: layout.childrenRect.height + 28
implicitWidth: layout.childrenRect.width + 32 implicitWidth: layout.childrenRect.width + 32
opacity: 0 opacity: 0
radius: 24 radius: Appearance.rounding.small * 2
ColumnLayout { ColumnLayout {
id: layout id: layout
@@ -159,7 +159,7 @@ Scope {
background: CustomRect { background: CustomRect {
color: (polkitAgent.flow?.failed && passInput.text === "") ? DynamicColors.palette.m3error : DynamicColors.tPalette.m3surfaceVariant color: (polkitAgent.flow?.failed && passInput.text === "") ? DynamicColors.palette.m3error : DynamicColors.tPalette.m3surfaceVariant
implicitHeight: 40 implicitHeight: 40
radius: 8 radius: Appearance.rounding.smallest
} }
onAccepted: okButton.clicked() onAccepted: okButton.clicked()
@@ -251,7 +251,7 @@ Scope {
Layout.preferredWidth: 92 Layout.preferredWidth: 92
bgColor: DynamicColors.palette.m3surfaceContainer bgColor: DynamicColors.palette.m3surfaceContainer
enabled: true enabled: true
radius: 1000 radius: Appearance.rounding.full
text: "Details" text: "Details"
textColor: DynamicColors.palette.m3onSurface textColor: DynamicColors.palette.m3onSurface
@@ -274,7 +274,7 @@ Scope {
Layout.preferredWidth: 76 Layout.preferredWidth: 76
bgColor: DynamicColors.palette.m3primary bgColor: DynamicColors.palette.m3primary
enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired
radius: 1000 radius: Appearance.rounding.full
text: "OK" text: "OK"
textColor: DynamicColors.palette.m3onPrimary textColor: DynamicColors.palette.m3onPrimary
@@ -293,7 +293,7 @@ Scope {
Layout.preferredWidth: 76 Layout.preferredWidth: 76
bgColor: DynamicColors.palette.m3surfaceContainer bgColor: DynamicColors.palette.m3surfaceContainer
enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired
radius: 1000 radius: Appearance.rounding.full
text: "Cancel" text: "Cancel"
textColor: DynamicColors.palette.m3onSurface textColor: DynamicColors.palette.m3onSurface
@@ -327,7 +327,6 @@ Scope {
PolkitAgent { PolkitAgent {
id: polkitAgent id: polkitAgent
} }
Variants { Variants {
+2 -2
View File
@@ -86,7 +86,7 @@ StackView {
color: modelData.isSeparator ? DynamicColors.palette.m3outlineVariant : "transparent" color: modelData.isSeparator ? DynamicColors.palette.m3outlineVariant : "transparent"
implicitHeight: modelData.isSeparator ? 1 : children.implicitHeight implicitHeight: modelData.isSeparator ? 1 : children.implicitHeight
implicitWidth: root.biggestWidth implicitWidth: root.biggestWidth
radius: 4 radius: Appearance.rounding.smallest / 2
Loader { Loader {
id: children id: children
@@ -211,7 +211,7 @@ StackView {
CustomRect { CustomRect {
anchors.fill: parent anchors.fill: parent
color: DynamicColors.palette.m3secondaryContainer color: DynamicColors.palette.m3secondaryContainer
radius: 4 radius: Appearance.rounding.smallest / 2
StateLayer { StateLayer {
function onClicked(): void { function onClicked(): void {
+2 -2
View File
@@ -37,7 +37,7 @@ Item {
id: indicator id: indicator
color: DynamicColors.palette.m3primary color: DynamicColors.palette.m3primary
radius: 1000 radius: Appearance.rounding.full
state: profiles.current state: profiles.current
states: [ states: [
@@ -158,7 +158,7 @@ Item {
} }
color: profiles.current === parent.icon ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface color: profiles.current === parent.icon ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
radius: 1000 radius: Appearance.rounding.full
} }
MaterialIcon { MaterialIcon {
+2 -2
View File
@@ -36,7 +36,7 @@ Item {
Layout.preferredWidth: 320 + 10 Layout.preferredWidth: 320 + 10
border.color: "white" border.color: "white"
border.width: 1 border.width: 1
radius: 8 radius: Appearance.rounding.smallest
Repeater { Repeater {
model: workspacePreview.modelData.toplevels model: workspacePreview.modelData.toplevels
@@ -65,7 +65,7 @@ Item {
border.width: 1 border.width: 1
implicitHeight: preview.appPosition.height implicitHeight: preview.appPosition.height
implicitWidth: preview.appPosition.width implicitWidth: preview.appPosition.width
radius: 4 radius: Appearance.rounding.smallest / 2
x: preview.appPosition.x x: preview.appPosition.x
y: preview.appPosition.y - 3.4 y: preview.appPosition.y - 3.4