mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
compossitor: fix scale check
This commit is contained in:
@@ -29,7 +29,6 @@ Singleton {
|
|||||||
property bool _hasRefreshedOnce: false
|
property bool _hasRefreshedOnce: false
|
||||||
|
|
||||||
property var _coordCache: ({})
|
property var _coordCache: ({})
|
||||||
readonly property bool _qtDpiOverridden: Quickshell.env("QT_WAYLAND_FORCE_DPI") !== ""
|
|
||||||
property int _refreshCount: 0
|
property int _refreshCount: 0
|
||||||
property real _refreshWindowStart: 0
|
property real _refreshWindowStart: 0
|
||||||
readonly property int _maxRefreshesPerSecond: 3
|
readonly property int _maxRefreshesPerSecond: 3
|
||||||
@@ -37,7 +36,7 @@ Singleton {
|
|||||||
function getScreenScale(screen) {
|
function getScreenScale(screen) {
|
||||||
if (!screen) return 1
|
if (!screen) return 1
|
||||||
|
|
||||||
if (_qtDpiOverridden) {
|
if (Quickshell.env("QT_WAYLAND_FORCE_DPI")) {
|
||||||
return screen.devicePixelRatio || 1
|
return screen.devicePixelRatio || 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1065,7 +1065,7 @@
|
|||||||
"Manual Show/Hide": "手動で表示/非表示"
|
"Manual Show/Hide": "手動で表示/非表示"
|
||||||
},
|
},
|
||||||
"Margin": {
|
"Margin": {
|
||||||
"Margin": ""
|
"Margin": "マージン"
|
||||||
},
|
},
|
||||||
"Marker Supply Empty": {
|
"Marker Supply Empty": {
|
||||||
"Marker Supply Empty": "マーカー供給量がない"
|
"Marker Supply Empty": "マーカー供給量がない"
|
||||||
|
|||||||
@@ -1065,7 +1065,7 @@
|
|||||||
"Manual Show/Hide": "手动显示/隐藏"
|
"Manual Show/Hide": "手动显示/隐藏"
|
||||||
},
|
},
|
||||||
"Margin": {
|
"Margin": {
|
||||||
"Margin": ""
|
"Margin": "边距"
|
||||||
},
|
},
|
||||||
"Marker Supply Empty": {
|
"Marker Supply Empty": {
|
||||||
"Marker Supply Empty": "打印耗材已用尽"
|
"Marker Supply Empty": "打印耗材已用尽"
|
||||||
|
|||||||
Reference in New Issue
Block a user