// SPDX-FileCopyrightText: 2024 vivi developers // SPDX-License-Identifier: MIT export struct IconStyle { foreground: brush, icon_size: relative-font-size, } export component IconBase inherits Image { in property icon <=> root.source; in property style; width: root.style.icon_size; colorize: root.style.foreground; image-fit: contain; }