material symbols: support filling

This commit is contained in:
end-4
2025-05-05 11:05:58 +02:00
parent 94ef226b92
commit 352d389cc4
30 changed files with 91 additions and 58 deletions
+2 -2
View File
@@ -20,14 +20,14 @@ Singleton {
"ollama-llama-3.2": {
"name": "Ollama - Llama 3.2",
"icon": "ollama-symbolic",
"description": "Ollama - Llama 3.2",
"description": "Local Ollama model - Llama 3.2",
"endpoint": "http://localhost:11434/api/chat",
"model": "llama3.2",
},
"gemini-2.0-flash": {
"name": "Gemini 2.0 Flash",
"icon": "gemini-symbolic",
"description": "Gemini 2.0 Flash",
"description": "Online Gemini 2.0 Flash",
"endpoint": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:streamGenerateContent",
"model": "gemini-2.0-flash",
"messageMapFunc": function (message) {
@@ -9,12 +9,14 @@ Singleton {
property string distroName: "Unknown"
property string distroId: "unknown"
property string distroIcon: "linux-symbolic"
property string username: "user"
Timer {
interval: 1
running: true
repeat: false
onTriggered: {
getUsername.running = true
fileOsRelease.reload()
const textOsRelease = fileOsRelease.text()
@@ -46,6 +48,16 @@ Singleton {
}
}
Process {
id: getUsername
command: ["whoami"]
stdout: SplitParser {
onRead: data => {
username = data.trim()
}
}
}
FileView {
id: fileOsRelease
path: "/etc/os-release"