mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 09:36:46 +00:00
13 lines
384 B
QML
13 lines
384 B
QML
pragma Singleton
|
|
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
readonly property list<string> validImageTypes: ["jpeg", "png", "webp", "tiff", "svg"]
|
|
readonly property list<string> validImageExtensions: ["jpg", "jpeg", "png", "webp", "tif", "tiff", "svg"]
|
|
|
|
function isValidImageByName(name: string): bool {
|
|
return validImageExtensions.some(t => name.endsWith(`.${t}`));
|
|
}
|
|
}
|