style settings widget

This commit is contained in:
lucy 2026-01-24 14:12:02 +01:00
parent 257adc781a
commit 25e98652d1
4 changed files with 31 additions and 8 deletions

View File

@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
pragma Singleton
import Quickshell.Services.Notifications
import QtQuick
import Quickshell.Io
NotificationServer {
bodyMarkupSupported: true

View File

@ -17,7 +17,9 @@ Rectangle {
id: dismissTimer
interval: 5000
running: true
onTriggered: notifyItem.modelData.dismiss()
onTriggered: {
parent.modelData.expire();
}
}
RowLayout {

View File

@ -11,6 +11,7 @@ import qs.reusables
FloatingWindow {
id: root
color: Colors.surface
title: "qs-settings"
implicitWidth: 800
implicitHeight: 600
ListModel {
@ -35,7 +36,6 @@ FloatingWindow {
RowLayout {
id: windowLayout
anchors.fill: parent
spacing: 50
ClippingWrapperRectangle {
id: pageWrapper
@ -82,7 +82,6 @@ FloatingWindow {
}
Loader {
id: contentLoader
Layout.alignment: Qt.AlignCenter
Layout.fillHeight: true
Layout.fillWidth: true
Layout.margins: 20

View File

@ -1,12 +1,33 @@
import QtQuick
import qs
import qs.reusables
import Quickshell.Widgets
import QtQuick.Layouts
Item {
ClippingWrapperRectangle {
id: root
implicitWidth: 300
implicitHeight: 300
anchors.centerIn: parent
clip: true
color: Colors.surfaceContainerHighest
radius: 12
margin: 20
ColumnLayout {
id: pageLayout
spacing: 0
anchors.top: parent.top
CustomText {
text: "I am the welcome page"
text: "Welcome!"
font.pixelSize: 24
font.bold: true
}
CustomText {
text: "we love women here"
}
Item {
id: sping
Layout.fillHeight: true
}
}
}