forked from Shinonome/dots-hyprland
sidebar: remove redundant coloroverlay, make uptime more brief
This commit is contained in:
@@ -102,26 +102,19 @@ Scope {
|
|||||||
Layout.topMargin: 5
|
Layout.topMargin: 5
|
||||||
Layout.bottomMargin: 0
|
Layout.bottomMargin: 0
|
||||||
|
|
||||||
Item {
|
CustomIcon {
|
||||||
implicitWidth: distroIcon.width
|
id: distroIcon
|
||||||
implicitHeight: distroIcon.height
|
width: 25
|
||||||
CustomIcon {
|
height: 25
|
||||||
id: distroIcon
|
source: SystemInfo.distroIcon
|
||||||
width: 25
|
colorize: true
|
||||||
height: 25
|
color: Appearance.colors.colOnLayer0
|
||||||
source: SystemInfo.distroIcon
|
|
||||||
}
|
|
||||||
ColorOverlay {
|
|
||||||
anchors.fill: distroIcon
|
|
||||||
source: distroIcon
|
|
||||||
color: Appearance.colors.colOnLayer0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
font.pixelSize: Appearance.font.pixelSize.normal
|
font.pixelSize: Appearance.font.pixelSize.normal
|
||||||
color: Appearance.colors.colOnLayer0
|
color: Appearance.colors.colOnLayer0
|
||||||
text: Translation.tr("Uptime: %1").arg(DateTime.uptime)
|
text: Translation.tr("Up %1").arg(DateTime.uptime)
|
||||||
textFormat: Text.MarkdownText
|
textFormat: Text.MarkdownText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user