style settings widget
This commit is contained in:
parent
257adc781a
commit
25e98652d1
@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
|
||||
pragma Singleton
|
||||
import Quickshell.Services.Notifications
|
||||
import QtQuick
|
||||
import Quickshell.Io
|
||||
|
||||
NotificationServer {
|
||||
bodyMarkupSupported: true
|
||||
|
||||
@ -17,7 +17,9 @@ Rectangle {
|
||||
id: dismissTimer
|
||||
interval: 5000
|
||||
running: true
|
||||
onTriggered: notifyItem.modelData.dismiss()
|
||||
onTriggered: {
|
||||
parent.modelData.expire();
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
CustomText {
|
||||
text: "I am the welcome page"
|
||||
anchors.centerIn: parent
|
||||
clip: true
|
||||
color: Colors.surfaceContainerHighest
|
||||
radius: 12
|
||||
margin: 20
|
||||
ColumnLayout {
|
||||
id: pageLayout
|
||||
spacing: 0
|
||||
anchors.top: parent.top
|
||||
CustomText {
|
||||
|
||||
text: "Welcome!"
|
||||
font.pixelSize: 24
|
||||
font.bold: true
|
||||
}
|
||||
CustomText {
|
||||
|
||||
text: "we love women here"
|
||||
}
|
||||
Item {
|
||||
id: sping
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user