New icons: more icons and cleanup

This commit is contained in:
LemmyCook 2025-09-09 17:02:57 -04:00
parent 43eec0e387
commit 48f6c0705b
41 changed files with 6201 additions and 5018 deletions

View file

@ -11,19 +11,28 @@ Singleton {
// Expose the font family name for easy access
readonly property string fontFamily: fontLoader.name
readonly property string defaultIcon: Bootstrap.defaultIcon
readonly property string defaultIcon: TablerIcons.defaultIcon
readonly property var icons: TablerIcons.icons
readonly property var aliases: TablerIcons.aliases
readonly property string fontPath: "/Assets/Fonts/tabler/tabler-icons.woff2"
Component.onCompleted: {
Logger.log("Icons", "Service started")
}
function get(iconName) {
return Bootstrap.icons[iconName]
// Check in aliases first
if (aliases[iconName] !== undefined) {
iconName = aliases[iconName]
}
// Find the appropriate codepoint
return icons[iconName]
}
FontLoader {
id: fontLoader
source: Quickshell.shellDir + "/Assets/Fonts/bootstrap/bootstrap-icons.woff2"
source: Quickshell.shellDir + fontPath
}
// Monitor font loading status
@ -31,9 +40,9 @@ Singleton {
target: fontLoader
function onStatusChanged() {
if (fontLoader.status === FontLoader.Ready) {
Logger.log("Bootstrap", "Font loaded successfully:", fontFamily)
Logger.log("Icons", "Font loaded successfully:", fontFamily)
} else if (fontLoader.status === FontLoader.Error) {
Logger.error("Bootstrap", "Font failed to load")
Logger.error("Icons", "Font failed to load")
}
}
}

View file

@ -9,7 +9,33 @@ Singleton {
readonly property string defaultIcon: "balloon"
readonly property var aliases: {
"close": "x-lg"
"close": "x-lg",
"settings": "gear",
"add": "plus-lg",
"media-pause": "pause",
"media-play": "play",
"media-prev": "skip-start",
"media-next": "skip-end",
"refresh": "arrow-repeat",
"cpu-usage": "speedometer2",
"cpu-temperature": "fire",
"memory": "cpu",
"performance": "speedometer2",
"balanced": "yin-yang",
"powersaver": "leaf",
"download-speed": "cloud-arrow-down",
"upload-speed": "cloud-arrow-up",
"storage": "hdd",
"bluetooth": "bluetooth",
"ethernet": "ethernet",
"keyboard": "keyboard",
"power": "power",
"keep-awake": "cup",
"nightlight": "moon-stars",
"camera-video": "camera-video",
"chevron-left": "chevron-left",
"chevron-right": "chevron-right",
"dark-mode": "transparency"
}
readonly property var icons: {

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff