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
@@ -77,10 +77,9 @@ Button {
MaterialSymbol {
visible: root.materialSymbol != ""
text: root.materialSymbol
font.pixelSize: 30
iconSize: 30
fill: (root.hovered || root.focus) ? 1 : 0
color: Appearance.m3colors.m3onSurface
// width: 35
// height: 35
}
// Main text
@@ -90,13 +90,12 @@ Item { // Wrapper
id: webSearch
property list<string> baseCommand: ["xdg-open"]
function search(query) {
webSearch.running = false
let url = ConfigOptions.search.engineBaseUrl + query
for (let site of ConfigOptions.search.excludedSites) {
url += ` -site:${site}`;
}
webSearch.command = baseCommand.concat(url)
webSearch.running = true
webSearch.startDetached()
}
}
@@ -104,11 +103,10 @@ Item { // Wrapper
id: executor
property list<string> baseCommand: ["bash", "-c"]
function executeCommand(command) {
executor.running = false
executor.command = baseCommand.concat(
`${command} || ${ConfigOptions.apps.terminal} fish -C 'echo "${qsTr("Searching for package with that command")}..." && pacman -F ${command}'`
)
executor.running = true
executor.startDetached()
}
}
@@ -197,7 +195,7 @@ Item { // Wrapper
MaterialSymbol {
id: searchIcon
Layout.leftMargin: 15
font.pixelSize: Appearance.font.pixelSize.huge
iconSize: Appearance.font.pixelSize.huge
color: Appearance.m3colors.m3onSurface
text: "search"
}