Add support for razor files in blazor
Closed this issue · 0 comments
Is your feature request related to a problem? Please describe.
Basically in Rider for a .net blazor application the color option for hexes isn't being detected, so you can't change them with the plugin. if you copy paste the code into a .cs file in the same project it will work, but the files that are .razor don't work.
You can see here it doesn't show the icon to select color.
https://i.imgur.com/Ivjowsb.png
but if I paste it into the program.cs file it works
https://i.imgur.com/0iU4ZS0.png
For context the Routes.razor file contains the following code
<Blazorise.ThemeProvider Theme="@theme">
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)"/>
<FocusOnNavigate RouteData="@routeData" Selector="h1"/>
</Found>
<NotFound>
<LayoutView Layout="@typeof(Layout.MainLayout)">
<p>Page Not Found.</p>
</LayoutView>
</NotFound>
</Router>
</Blazorise.ThemeProvider>
@code{
private Theme theme = new Theme
{
ColorOptions = new ThemeColorOptions
{
Primary = "#0019e8",
Secondary = "#6636a6",
Dark = "#04041c",
Light = "#dcd4e3",
Success = "#37a624",
Warning = "#a6672d",
Danger = "#bc1d1c",
Info = "#c4bebe",
Link = "#8054d2"
},
IsRounded = true,
};
}
The project is basically just the default .net 8 blazor example template in rider(2024.1.2), but I added Nlog and blazorise(v1.6.0). The code above is in the Routes.razor file, it is used to modify the default colors for the web application via blazorise.
Blazorise installation guide https://blazorise.com/docs/start
Might be this also doesn't work for razor files for MVC projects and etc, but a bit too busy to check right now.
Describe the solution you'd like
Would like for the icons to appear in the
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.