iced_aw icon indicating copy to clipboard operation
iced_aw copied to clipboard

NumberInput does not play nice with custom icon fonts

Open rscarson opened this issue 1 year ago • 2 comments

A way to set which icon codepoint to use for the chevrons would be needed to fix

rscarson avatar Oct 02 '24 19:10 rscarson

number input is not meant to be used with any other font for its buttons other than iced_fonts::REQUIRED_FONT_BYTES as this is statically set to use this. I wont be changing this to accept custom icons. if you want this you will need to make the change.

genusistimelord avatar Oct 02 '24 20:10 genusistimelord

number input is not meant to be used with any other font for its buttons other than iced_fonts::REQUIRED_FONT_BYTES as this is statically set to use this. I wont be changing this to accept custom icons. if you want this you will need to make the change.

Which is fine except that there doesn't seem to be a way to specify the icon font if the default is changed in an app

rscarson avatar Oct 02 '24 22:10 rscarson

Hi As said previously, the font used in number_input is set statically. You can create your custom widget with you custom font by changing the line 758 and 793 of the file src/widget/number_input.rs

Ultraxime avatar Nov 25 '24 22:11 Ultraxime