fix: fixed Sensors align in combined view and added localizedString to PortalHeader (#1879)

* [fix] fix Sensors align

fix the align in Sensors combined view

* [feat] add localizedString to header
This commit is contained in:
ShigemoriHakura
2024-04-07 18:43:36 +08:00
committed by GitHub
parent 4c625c8dbb
commit d40c2e231f
2 changed files with 4 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ public class PortalHeader: NSStackView {
title.canDrawSubviewsIntoLayer = true
title.alignment = .center
title.font = NSFont.systemFont(ofSize: 12, weight: .regular)
title.stringValue = name
title.stringValue = localizedString(name)
let settings = NSButton()
settings.heightAnchor.constraint(equalToConstant: 18).isActive = true