1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -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

@@ -134,7 +134,7 @@ PanelWindow {
id: launcherPanel
color: Theme.popupBackground()
radius: Theme.cornerRadiusXLarge
radius: Theme.cornerRadius
antialiasing: true
smooth: true
@@ -245,7 +245,7 @@ PanelWindow {
width: parent.width
height: 52
cornerRadius: Theme.cornerRadiusLarge
cornerRadius: Theme.cornerRadius
backgroundColor: Qt.rgba(Theme.surfaceVariant.r,
Theme.surfaceVariant.g,
Theme.surfaceVariant.b,
@@ -392,7 +392,7 @@ PanelWindow {
usedHeight += (searchField.text.length === 0 ? 40 + Theme.spacingL : 0)
return parent.height - usedHeight
}
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,
@@ -467,7 +467,7 @@ PanelWindow {
delegate: Rectangle {
width: ListView.view.width
height: appList.itemHeight
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: ListView.isCurrentItem ? Theme.primaryPressed : listMouseArea.containsMouse ? Theme.primaryHoverLight : Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.03)
border.color: ListView.isCurrentItem ? Theme.primarySelected : Theme.outlineMedium
border.width: ListView.isCurrentItem ? 2 : 1
@@ -498,7 +498,7 @@ PanelWindow {
anchors.fill: parent
visible: !listIconImg.visible
color: Theme.surfaceLight
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
border.width: 1
border.color: Theme.primarySelected
@@ -657,7 +657,7 @@ PanelWindow {
delegate: Rectangle {
width: appGrid.cellWidth - appGrid.cellPadding
height: appGrid.cellHeight - appGrid.cellPadding
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: appGrid.currentIndex === index ? Theme.primaryPressed : gridMouseArea.containsMouse ? Theme.primaryHoverLight : Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.03)
border.color: appGrid.currentIndex
=== index ? Theme.primarySelected : Theme.outlineMedium
@@ -693,7 +693,7 @@ PanelWindow {
anchors.fill: parent
visible: !gridIconImg.visible
color: Theme.surfaceLight
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
border.width: 1
border.color: Theme.primarySelected
@@ -816,7 +816,7 @@ PanelWindow {
contentItem: Rectangle {
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
@@ -831,7 +831,7 @@ PanelWindow {
Rectangle {
width: parent.width
height: 32
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: pinMouseArea.containsMouse ? Qt.rgba(Theme.primary.r,
Theme.primary.g,
Theme.primary.b,
@@ -917,7 +917,7 @@ PanelWindow {
Rectangle {
width: parent.width
height: 32
radius: Theme.cornerRadiusSmall
radius: Theme.cornerRadius
color: launchMouseArea.containsMouse ? Qt.rgba(Theme.primary.r,
Theme.primary.g,
Theme.primary.b,

View File

@@ -28,7 +28,7 @@ Item {
width: (parent.width - (Math.min(categories.length,
8) - 1) * Theme.spacingS) / Math.min(
categories.length, 8)
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: selectedCategory === modelData ? Theme.primary : "transparent"
border.color: selectedCategory === modelData ? "transparent" : Qt.rgba(
Theme.outline.r,
@@ -77,7 +77,7 @@ Item {
height: 36
width: (parent.width - (parent.topRowCategories.length - 1)
* Theme.spacingS) / parent.topRowCategories.length
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: selectedCategory === modelData ? Theme.primary : "transparent"
border.color: selectedCategory === modelData ? "transparent" : Qt.rgba(
Theme.outline.r,
@@ -122,7 +122,7 @@ Item {
height: 36
width: (parent.width - (parent.bottomRowCategories.length - 1)
* Theme.spacingS) / parent.bottomRowCategories.length
radius: Theme.cornerRadiusLarge
radius: Theme.cornerRadius
color: selectedCategory === modelData ? Theme.primary : "transparent"
border.color: selectedCategory === modelData ? "transparent" : Qt.rgba(
Theme.outline.r,