1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

corner radius unified + setting

This commit is contained in:
bbedward
2025-08-08 16:05:10 -04:00
parent 4d408c65f2
commit f5e52c55c0
53 changed files with 211 additions and 132 deletions

View File

@@ -37,7 +37,7 @@ Column {
Rectangle {
width: parent.width
height: 200
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.04)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
@@ -65,7 +65,7 @@ Column {
Rectangle {
width: 80
height: 24
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: Qt.rgba(Theme.primary.r, Theme.primary.g,
Theme.primary.b, 0.12)
anchors.verticalCenter: parent.verticalCenter
@@ -169,7 +169,7 @@ Column {
Rectangle {
width: parent.width
height: 80
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.04)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
@@ -348,7 +348,7 @@ Column {
Rectangle {
width: (parent.width - Theme.spacingM) / 2
height: 80
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.04)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
@@ -415,7 +415,7 @@ Column {
Rectangle {
width: (parent.width - Theme.spacingM) / 2
height: 80
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.04)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,

View File

@@ -62,7 +62,7 @@ Popup {
id: menuContent
color: Theme.popupBackground()
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
Theme.outline.b, 0.08)
border.width: 1
@@ -77,7 +77,7 @@ Popup {
Rectangle {
width: parent.width
height: 28
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: copyPidArea.containsMouse ? Qt.rgba(Theme.primary.r,
Theme.primary.g,
Theme.primary.b,
@@ -112,7 +112,7 @@ Popup {
Rectangle {
width: parent.width
height: 28
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: copyNameArea.containsMouse ? Qt.rgba(Theme.primary.r,
Theme.primary.g,
Theme.primary.b,
@@ -162,7 +162,7 @@ Popup {
Rectangle {
width: parent.width
height: 28
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: killArea.containsMouse ? Qt.rgba(Theme.error.r, Theme.error.g,
Theme.error.b,
0.12) : "transparent"
@@ -201,7 +201,7 @@ Popup {
Rectangle {
width: parent.width
height: 28
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: forceKillArea.containsMouse ? Qt.rgba(Theme.error.r,
Theme.error.g,
Theme.error.b,

View File

@@ -11,7 +11,7 @@ Rectangle {
width: parent ? parent.width : 0
height: 40
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: processMouseArea.containsMouse ? Qt.rgba(Theme.primary.r,
Theme.primary.g,
Theme.primary.b,

View File

@@ -135,7 +135,7 @@ PanelWindow {
sourceComponent: Rectangle {
id: dropdownContent
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Theme.popupBackground()
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
Theme.outline.b, 0.08)
@@ -173,7 +173,7 @@ PanelWindow {
Rectangle {
Layout.fillWidth: true
height: systemOverview.height + Theme.spacingM * 2
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.2)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
@@ -191,7 +191,7 @@ PanelWindow {
Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.1)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,

View File

@@ -16,7 +16,7 @@ Row {
Rectangle {
width: (parent.width - Theme.spacingM * 2) / 3
height: 80
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: {
if (SysMonitorService.sortBy === "cpu")
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.16)
@@ -125,7 +125,7 @@ Row {
Rectangle {
width: (parent.width - Theme.spacingM * 2) / 3
height: 80
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: {
if (SysMonitorService.sortBy === "memory")
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.16)
@@ -236,7 +236,7 @@ Row {
Rectangle {
width: (parent.width - Theme.spacingM * 2) / 3
height: 80
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,
Theme.surfaceVariant.b, 0.08)
border.color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g,

View File

@@ -23,7 +23,7 @@ ScrollView {
Rectangle {
width: parent.width
height: systemInfoColumn.implicitHeight + 2 * Theme.spacingL
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g,
Theme.surfaceContainer.b, 0.6)
border.width: 0
@@ -265,7 +265,7 @@ ScrollView {
Rectangle {
width: parent.width
height: storageColumn.implicitHeight + 2 * Theme.spacingL
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g,
Theme.surfaceContainer.b, 0.6)
border.width: 0
@@ -384,7 +384,7 @@ ScrollView {
Rectangle {
width: parent.width
height: 24
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: diskMouseArea.containsMouse ? Qt.rgba(Theme.surfaceText.r,
Theme.surfaceText.g,
Theme.surfaceText.b,