Merge branch 'Ly-sec:main' into main

This commit is contained in:
Jose Chasey Pratama 2025-07-27 18:55:55 +07:00 committed by GitHub
commit 61df6dde97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 178 additions and 27 deletions

View file

@ -39,6 +39,7 @@ PanelWindow {
appName: notification.appName || "Notification",
summary: notification.summary || "",
body: notification.body || "",
urgency: notification.urgency || 0,
rawNotification: notification,
appeared: false,
dismissed: false
@ -91,6 +92,8 @@ PanelWindow {
width: parent.width
color: Theme.backgroundPrimary
radius: 20
border.color: model.urgency == 2 ? Theme.warning : Theme.outline
border.width: 1
property bool appeared: model.appeared
property bool dismissed: model.dismissed

View file

@ -7,7 +7,7 @@ import qs.Settings
Rectangle {
id: profileSettingsCard
Layout.fillWidth: true
Layout.preferredHeight: 540
Layout.preferredHeight: 580
color: Theme.surface
radius: 18
border.color: "transparent"
@ -252,6 +252,61 @@ Rectangle {
}
}
// Show Corners In Bar Setting
RowLayout {
spacing: 8
Layout.fillWidth: true
Layout.topMargin: 8
Text {
text: "Show Corners"
font.family: Theme.fontFamily
font.pixelSize: 13
font.bold: true
color: Theme.textPrimary
Layout.alignment: Qt.AlignVCenter
}
Item {
Layout.fillWidth: true
}
// Custom Material 3 Switch
Rectangle {
id: customSwitch4
width: 52
height: 32
radius: 16
color: Settings.settings.showCorners ? Theme.accentPrimary : Theme.surfaceVariant
border.color: Settings.settings.showCorners ? Theme.accentPrimary : Theme.outline
border.width: 2
Rectangle {
id: thumb4
width: 28
height: 28
radius: 14
color: Theme.surface
border.color: Theme.outline
border.width: 1
y: 2
x: Settings.settings.showCorners ? customSwitch4.width - width - 2 : 2
Behavior on x {
NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
}
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
Settings.settings.showCorners = !Settings.settings.showCorners
}
}
}
}
// Show Media In Bar Setting
RowLayout {
spacing: 8