Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon size not style-able #6

Open
Genteure opened this issue Nov 28, 2024 · 0 comments
Open

Icon size not style-able #6

Genteure opened this issue Nov 28, 2024 · 0 comments

Comments

@Genteure
Copy link

<StackPanel Orientation="Horizontal">
    <StackPanel.Styles>
        <Style Selector="lu|Lucide">
            <Setter Property="Width" Value="18" /> <!-- Has no effect -->
            <Setter Property="Height" Value="18" /> <!-- Has no effect -->
            <Setter Property="StrokeBrush" Value="Green" /> <!-- Other properties work -->
        </Style>
    </StackPanel.Styles>
    
    <lu:Lucide Icon="ArrowLeft" /> <!-- Size is 24x24 -->
    <lu:Lucide Icon="ArrowRight" /> <!-- Size is 24x24 -->
    <lu:Lucide Icon="ArrowLeft" Width="32" Height="32" /> <!-- Size is 32x32 -->
    <lu:Lucide Icon="ArrowRight" Width="32" Height="32" /> <!-- Size is 32x32 -->
</StackPanel>

The Local values set in LucideAvalonia.Lucide have priority over styles.

Width="24" Height="24"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant