Match offset and color to existing notifications
This commit is contained in:
@@ -13,6 +13,7 @@ PopupWindow {
|
|||||||
property int padding: 14
|
property int padding: 14
|
||||||
property int contentWidth: 280
|
property int contentWidth: 280
|
||||||
property int contentHeight: 200
|
property int contentHeight: 200
|
||||||
|
property color borderColor: Color.popups.border
|
||||||
property bool open: false
|
property bool open: false
|
||||||
property bool centerOnBar: false
|
property bool centerOnBar: false
|
||||||
// "click" — uses HyprlandFocusGrab so clicking outside dismisses the popup.
|
// "click" — uses HyprlandFocusGrab so clicking outside dismisses the popup.
|
||||||
@@ -117,7 +118,7 @@ PopupWindow {
|
|||||||
id: card
|
id: card
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Color.popups.background
|
color: Color.popups.background
|
||||||
border.color: Color.popups.border
|
border.color: root.borderColor
|
||||||
border.width: 2
|
border.width: 2
|
||||||
radius: Style.cornerRadius
|
radius: Style.cornerRadius
|
||||||
opacity: root.open ? 1.0 : 0
|
opacity: root.open ? 1.0 : 0
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
import qs.Commons
|
||||||
import qs.Ui
|
import qs.Ui
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
@@ -323,6 +324,8 @@ Item {
|
|||||||
triggerMode: "click"
|
triggerMode: "click"
|
||||||
contentWidth: 480
|
contentWidth: 480
|
||||||
contentHeight: card.implicitHeight + 28
|
contentHeight: card.implicitHeight + 28
|
||||||
|
margin: 24
|
||||||
|
borderColor: Color.notifications.border
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: card
|
id: card
|
||||||
|
|||||||
Reference in New Issue
Block a user