feat(nosignal): Nerd Font icons in IconButton (controls-wide)
Convert the shared IconButton control to render via NsIcon, so every icon-button across the shell (nexus, lock, utilities, launcher chrome, ...) uses Nerd Font. Alias icon -> label.icon; internal MaterialIcon -> NsIcon (sizes from root.font via fontStyle); dropped the Material-Symbols vertical-center fudge. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cf3c0d823d
commit
83d5de1ba3
1 changed files with 2 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ import qs.services
|
|||
ButtonBase {
|
||||
id: root
|
||||
|
||||
property alias icon: label.text
|
||||
property alias icon: label.icon
|
||||
readonly property alias label: label
|
||||
|
||||
font: Tokens.font.icon.medium
|
||||
|
|
@ -34,11 +34,10 @@ ButtonBase {
|
|||
return h;
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
NsIcon {
|
||||
id: label
|
||||
|
||||
anchors.centerIn: parent
|
||||
anchors.verticalCenterOffset: 1 // AHHHHHHH material symbols whyyyy
|
||||
color: root.onColour
|
||||
fontStyle: root.font
|
||||
fill: !root.isToggle || root.internalChecked ? 1 : 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue