Fix the bar glyph: \uF030C parsed as \uF030 + "C"

JS \u takes exactly 4 hex digits, so \uF030C rendered U+F030 (fa-camera
in the Nerd Font's Font Awesome range) followed by a literal C — a camera
with a trailing c, exactly what was on the bar. U+F030C is in PUA-A and
needs a UTF-16 surrogate pair: \uDB80\uDF0C. Also correct the comment
name (it is md-keyboard, not md-keyboard_outline).
This commit is contained in:
felixzsh
2026-08-11 15:41:22 -05:00
parent 840e7c2e13
commit 7e079de572
+1 -1
View File
@@ -114,7 +114,7 @@ Panel {
id: button
anchors.fill: parent
bar: root.bar
text: "\uF030C" // nf-md-keyboard_outline
text: "\uDB80\uDF0C" // md-keyboard (U+F030C, PUA-A: \u takes 4 hex digits, so \uF030C would parse as \uF030 + "C" = camera + C)
onPressed: function(b) {
if (b === Qt.RightButton) return
root.toggle()