Merge branch 'bootstrap-icons'

This commit is contained in:
LemmyCook 2025-09-09 11:44:27 -04:00
commit 56ea1f92fa
5 changed files with 27 additions and 21 deletions

View file

@ -7,8 +7,12 @@ Text {
readonly property string defaultIcon: "balloon"
property string icon: defaultIcon
visible: (icon !== undefined) && (icon !== "")
text: {
if (icon === undefined || Bootstrap.icons[icon] === undefined) {
if ((icon === undefined) || (icon === "")) {
return ""
}
if (Bootstrap.icons[icon] === undefined) {
Logger.warn("Icon", `"${icon}"`, "doesn't exist in the bootstrap font")
Logger.callStack()
return Bootstrap.icons[defaultIcon]