Create Styled things and finish notifications module
This commit is contained in:
10
Common/Styled/BackgroundRectangle.qml
Normal file
10
Common/Styled/BackgroundRectangle.qml
Normal file
@@ -0,0 +1,10 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
|
||||
Rectangle {
|
||||
|
||||
color: Theme.backgroudColor
|
||||
border.width: 1
|
||||
border.color: Theme.color2
|
||||
radius: 20
|
||||
}
|
||||
8
Common/Styled/ForegroundRectangle.qml
Normal file
8
Common/Styled/ForegroundRectangle.qml
Normal file
@@ -0,0 +1,8 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
|
||||
Rectangle {
|
||||
|
||||
color: Theme.backgroudColorBright
|
||||
radius: 20
|
||||
}
|
||||
19
Common/Styled/StyledText.qml
Normal file
19
Common/Styled/StyledText.qml
Normal file
@@ -0,0 +1,19 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
|
||||
Text {
|
||||
id: clockText
|
||||
|
||||
anchors.margins: 5
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
wrapMode: Text.WordWrap
|
||||
textFormat: Text.MarkdownText
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.pixelSize
|
||||
font.family: Theme.fontFamily
|
||||
color: Theme.textColor
|
||||
onLinkActivated: link => Qt.openUrlExternally(link)
|
||||
|
||||
text: ""
|
||||
}
|
||||
Reference in New Issue
Block a user