Icons: ArchUpdater, LockScreen, PowerMenu, BT Device List
This commit is contained in:
parent
0e4b79fd16
commit
16bd4b41dc
10 changed files with 187 additions and 139 deletions
|
|
@ -4,9 +4,17 @@ import qs.Commons
|
|||
import qs.Widgets
|
||||
|
||||
Text {
|
||||
property string icon: "balloon"
|
||||
readonly property string defaultIcon: "balloon"
|
||||
property string icon: defaultIcon
|
||||
|
||||
text: Bootstrap.icons[icon]
|
||||
text: {
|
||||
if (Bootstrap.icons[icon] === undefined) {
|
||||
Logger.warn("Icon", `"${icon}"`, "doesn't exist in the bootstrap font")
|
||||
Logger.callStack()
|
||||
return Bootstrap.icons[defaultIcon]
|
||||
}
|
||||
return Bootstrap.icons[icon]
|
||||
}
|
||||
font.family: "bootstrap-icons"
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
color: Color.mOnSurface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue