mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 08:22:51 -05:00
@@ -685,8 +685,16 @@ Item {
|
|||||||
Row {
|
Row {
|
||||||
spacing: Theme.spacingS
|
spacing: Theme.spacingS
|
||||||
|
|
||||||
|
property var wlrOutput: WlrOutputService.wlrOutputAvailable ? WlrOutputService.getOutput(modelData.name) : null
|
||||||
|
property var currentMode: wlrOutput?.currentMode
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.width + "×" + modelData.height
|
text: {
|
||||||
|
if (parent.currentMode) {
|
||||||
|
return parent.currentMode.width + "×" + parent.currentMode.height + "@" + Math.round(parent.currentMode.refresh / 1000) + "Hz"
|
||||||
|
}
|
||||||
|
return modelData.width + "×" + modelData.height
|
||||||
|
}
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
color: Theme.surfaceVariantText
|
color: Theme.surfaceVariantText
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user