diff --git a/.reuse/dep5 b/.reuse/dep5 index 89a1cc947..8b26e2867 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -76,7 +76,7 @@ Files: api/node/__test__/resources/*.png Copyright: Copyright © SixtyFPS GmbH License: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 -Files: examples/carousel/icons/*.svg +Files: examples/carousel/icons/*.svg tools/lsp/ui/asserts/*.svg Copyright: Material Icons License: Apache-2.0 diff --git a/tools/lsp/ui/assets/function.svg b/tools/lsp/ui/assets/function.svg new file mode 100644 index 000000000..c73dc4cc9 --- /dev/null +++ b/tools/lsp/ui/assets/function.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tools/lsp/ui/property-editor.slint b/tools/lsp/ui/property-editor.slint index 22d9d0817..1cfa87fb1 100644 --- a/tools/lsp/ui/property-editor.slint +++ b/tools/lsp/ui/property-editor.slint @@ -82,12 +82,11 @@ export component PropertyEditor inherits SideBarElement { complexity-icon := TouchArea { width: complexity-icon-icon.width; - complexity-icon-icon := Text { + complexity-icon-icon := Image { width: self.preferred-width; - vertical-alignment: center; - color: property-row.text-foreground; + colorize: property-row.is-simple ? Palette.foreground.transparentize(0.7) : Palette.foreground; - text: property-row.is-simple ? "S" : "K"; + source: @image-url("assets/function.svg"); } clicked() => { property-row.force-to-complex = !property-row.force-to-complex; }