forked from Shinonome/dots-hyprland
refractor shadows
This commit is contained in:
@@ -57,13 +57,8 @@ Scope { // Scope
|
|||||||
|
|
||||||
|
|
||||||
// Background
|
// Background
|
||||||
RectangularShadow {
|
StyledRectangularShadow {
|
||||||
anchors.fill: cheatsheetBackground
|
target: cheatsheetBackground
|
||||||
radius: cheatsheetBackground.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
cached: true
|
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: cheatsheetBackground
|
id: cheatsheetBackground
|
||||||
|
|||||||
@@ -105,14 +105,9 @@ Item { // Notification group area
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StyledRectangularShadow {
|
||||||
RectangularShadow {
|
target: background
|
||||||
visible: popup
|
visible: popup
|
||||||
anchors.fill: background
|
|
||||||
radius: background.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Rectangle { // Background of the notification
|
Rectangle { // Background of the notification
|
||||||
id: background
|
id: background
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Effects
|
||||||
|
import "root:/modules/common"
|
||||||
|
|
||||||
|
RectangularShadow {
|
||||||
|
required property var target
|
||||||
|
anchors.fill: target
|
||||||
|
radius: target.radius
|
||||||
|
blur: 1.2 * Appearance.sizes.elevationMargin
|
||||||
|
spread: 1
|
||||||
|
color: Appearance.colors.colShadow
|
||||||
|
cached: true
|
||||||
|
}
|
||||||
@@ -75,13 +75,8 @@ Scope { // Scope
|
|||||||
implicitWidth: dockRow.implicitWidth + 5 * 2
|
implicitWidth: dockRow.implicitWidth + 5 * 2
|
||||||
height: parent.height - Appearance.sizes.elevationMargin - Appearance.sizes.hyprlandGapsOut
|
height: parent.height - Appearance.sizes.elevationMargin - Appearance.sizes.hyprlandGapsOut
|
||||||
|
|
||||||
RectangularShadow {
|
StyledRectangularShadow {
|
||||||
anchors.fill: dockVisualBackground
|
target: dockVisualBackground
|
||||||
radius: dockVisualBackground.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
cached: true
|
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: dockVisualBackground
|
id: dockVisualBackground
|
||||||
|
|||||||
@@ -104,13 +104,8 @@ Item { // Player instance
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RectangularShadow {
|
StyledRectangularShadow {
|
||||||
anchors.fill: background
|
target: background
|
||||||
radius: background.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
cached: true
|
|
||||||
}
|
}
|
||||||
Rectangle { // Background
|
Rectangle { // Background
|
||||||
id: background
|
id: background
|
||||||
|
|||||||
@@ -25,12 +25,8 @@ Item {
|
|||||||
implicitWidth: Appearance.sizes.osdWidth
|
implicitWidth: Appearance.sizes.osdWidth
|
||||||
implicitHeight: valueIndicator.implicitHeight
|
implicitHeight: valueIndicator.implicitHeight
|
||||||
|
|
||||||
RectangularShadow {
|
StyledRectangularShadow {
|
||||||
anchors.fill: valueIndicator
|
target: valueIndicator
|
||||||
radius: valueIndicator.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
WrapperRectangle {
|
WrapperRectangle {
|
||||||
id: valueIndicator
|
id: valueIndicator
|
||||||
|
|||||||
@@ -49,12 +49,8 @@ Item {
|
|||||||
property Component windowComponent: OverviewWindow {}
|
property Component windowComponent: OverviewWindow {}
|
||||||
property list<OverviewWindow> windowWidgets: []
|
property list<OverviewWindow> windowWidgets: []
|
||||||
|
|
||||||
RectangularShadow { // Background shadow
|
StyledRectangularShadow {
|
||||||
anchors.fill: overviewBackground
|
target: overviewBackground
|
||||||
radius: overviewBackground.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Rectangle { // Background
|
Rectangle { // Background
|
||||||
id: overviewBackground
|
id: overviewBackground
|
||||||
|
|||||||
@@ -169,12 +169,8 @@ Item { // Wrapper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RectangularShadow { // Background shadow
|
StyledRectangularShadow {
|
||||||
anchors.fill: searchWidgetContent
|
target: searchWidgetContent
|
||||||
radius: searchWidgetContent.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Rectangle { // Background
|
Rectangle { // Background
|
||||||
id: searchWidgetContent
|
id: searchWidgetContent
|
||||||
|
|||||||
@@ -65,12 +65,8 @@ Scope { // Scope
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Background
|
// Background
|
||||||
RectangularShadow { // Background shadow
|
StyledRectangularShadow {
|
||||||
anchors.fill: sidebarLeftBackground
|
target: sidebarLeftBackground
|
||||||
radius: sidebarLeftBackground.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: sidebarLeftBackground
|
id: sidebarLeftBackground
|
||||||
|
|||||||
@@ -124,12 +124,8 @@ Button {
|
|||||||
width: contextMenu.width
|
width: contextMenu.width
|
||||||
height: contextMenu.height
|
height: contextMenu.height
|
||||||
|
|
||||||
RectangularShadow { // Background shadow
|
StyledRectangularShadow {
|
||||||
anchors.fill: contextMenu
|
target: contextMenu
|
||||||
radius: contextMenu.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: contextMenu
|
id: contextMenu
|
||||||
|
|||||||
@@ -60,12 +60,8 @@ Scope {
|
|||||||
implicitHeight: sidebarRightBackground.implicitHeight
|
implicitHeight: sidebarRightBackground.implicitHeight
|
||||||
implicitWidth: sidebarRightBackground.implicitWidth
|
implicitWidth: sidebarRightBackground.implicitWidth
|
||||||
|
|
||||||
RectangularShadow { // Background shadow
|
StyledRectangularShadow {
|
||||||
anchors.fill: sidebarRightBackground
|
target: sidebarRightBackground
|
||||||
radius: sidebarRightBackground.radius
|
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: sidebarRightBackground
|
id: sidebarRightBackground
|
||||||
|
|||||||
@@ -152,12 +152,9 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// + FAB
|
// + FAB
|
||||||
RectangularShadow { // Background shadow
|
StyledRectangularShadow {
|
||||||
anchors.fill: fabButton
|
target: fabButton
|
||||||
radius: Appearance.rounding.normal
|
radius: Appearance.rounding.normal
|
||||||
blur: 1.2 * Appearance.sizes.elevationMargin
|
|
||||||
spread: 1
|
|
||||||
color: Appearance.colors.colShadow
|
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
id: fabButton
|
id: fabButton
|
||||||
|
|||||||
Reference in New Issue
Block a user