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:
@@ -114,7 +114,7 @@ Panel {
|
|||||||
id: button
|
id: button
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
bar: root.bar
|
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) {
|
onPressed: function(b) {
|
||||||
if (b === Qt.RightButton) return
|
if (b === Qt.RightButton) return
|
||||||
root.toggle()
|
root.toggle()
|
||||||
|
|||||||
Reference in New Issue
Block a user