style settings widget
This commit is contained in:
parent
257adc781a
commit
25e98652d1
@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
|
|||||||
pragma Singleton
|
pragma Singleton
|
||||||
import Quickshell.Services.Notifications
|
import Quickshell.Services.Notifications
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import Quickshell.Io
|
||||||
|
|
||||||
NotificationServer {
|
NotificationServer {
|
||||||
bodyMarkupSupported: true
|
bodyMarkupSupported: true
|
||||||
|
|||||||
@ -17,7 +17,9 @@ Rectangle {
|
|||||||
id: dismissTimer
|
id: dismissTimer
|
||||||
interval: 5000
|
interval: 5000
|
||||||
running: true
|
running: true
|
||||||
onTriggered: notifyItem.modelData.dismiss()
|
onTriggered: {
|
||||||
|
parent.modelData.expire();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import qs.reusables
|
|||||||
FloatingWindow {
|
FloatingWindow {
|
||||||
id: root
|
id: root
|
||||||
color: Colors.surface
|
color: Colors.surface
|
||||||
|
title: "qs-settings"
|
||||||
implicitWidth: 800
|
implicitWidth: 800
|
||||||
implicitHeight: 600
|
implicitHeight: 600
|
||||||
ListModel {
|
ListModel {
|
||||||
@ -35,7 +36,6 @@ FloatingWindow {
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
id: windowLayout
|
id: windowLayout
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 50
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
ClippingWrapperRectangle {
|
||||||
id: pageWrapper
|
id: pageWrapper
|
||||||
@ -82,7 +82,6 @@ FloatingWindow {
|
|||||||
}
|
}
|
||||||
Loader {
|
Loader {
|
||||||
id: contentLoader
|
id: contentLoader
|
||||||
Layout.alignment: Qt.AlignCenter
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.margins: 20
|
Layout.margins: 20
|
||||||
|
|||||||
@ -1,12 +1,33 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import qs
|
import qs
|
||||||
import qs.reusables
|
import qs.reusables
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
Item {
|
ClippingWrapperRectangle {
|
||||||
id: root
|
id: root
|
||||||
implicitWidth: 300
|
anchors.centerIn: parent
|
||||||
implicitHeight: 300
|
clip: true
|
||||||
CustomText {
|
color: Colors.surfaceContainerHighest
|
||||||
text: "I am the welcome page"
|
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