Create Styled things and finish notifications module
This commit is contained in:
@@ -6,6 +6,7 @@ import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import qs.Common
|
||||
import qs.Common.Styled
|
||||
import qs.Services
|
||||
|
||||
Singleton {
|
||||
@@ -35,18 +36,14 @@ Singleton {
|
||||
|
||||
Component {
|
||||
id: stub
|
||||
Text {
|
||||
StyledText {
|
||||
text: "stub"
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.pixelSize
|
||||
font.family: Theme.fontFamily
|
||||
color: Theme.textColor
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: systray
|
||||
Text {
|
||||
StyledText {
|
||||
text: {
|
||||
if (!HoverMediator.component?.model)
|
||||
return "";
|
||||
@@ -57,35 +54,24 @@ Singleton {
|
||||
else
|
||||
return "";
|
||||
}
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.pixelSize
|
||||
font.family: Theme.fontFamily
|
||||
color: Theme.textColor
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: time
|
||||
Text {
|
||||
StyledText {
|
||||
property string calendar: (HoverMediator.component.calendar) ? HoverMediator.component.calendar : ""
|
||||
|
||||
text: calendar
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.pixelSize
|
||||
font.family: Theme.fontFamilyMono
|
||||
color: Theme.textColor
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: audio
|
||||
Text {
|
||||
StyledText {
|
||||
property string sinkDescription: (HoverMediator.component.sink) ? HoverMediator.component.sink.description : ""
|
||||
text: sinkDescription
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.pixelSize
|
||||
font.family: Theme.fontFamily
|
||||
color: Theme.textColor
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,13 +100,15 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
WrapperRectangle {
|
||||
BackgroundRectangle {
|
||||
id: wsPopUp
|
||||
|
||||
leftMargin: (Theme.gaps * 2)
|
||||
rightMargin: (Theme.gaps * 2)
|
||||
topMargin: Theme.gaps
|
||||
bottomMargin: Theme.gaps
|
||||
MarginWrapperManager {
|
||||
leftMargin: (Theme.gaps * 2)
|
||||
rightMargin: (Theme.gaps * 2)
|
||||
topMargin: Theme.gaps
|
||||
bottomMargin: Theme.gaps
|
||||
}
|
||||
color: Theme.backgroudColor
|
||||
radius: 25
|
||||
opacity: 1
|
||||
|
||||
Reference in New Issue
Block a user