
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
A WPF theme library with modern and smooth-looking gradient colors. A base foundation for a modern-looking UI!
Use NuGet to acquire the library to your project:
dotnet add package GradientThemeWPF
NuGet\Install-Package GradientThemeWPF
To use the styles in your own project, make sure to import the correct styles in your App.xaml
:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/Window.xaml" />
<ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/ControlColors.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Later in the window you want to be gradient colored, add the style GradientWindow
to the window.
Example of styles for each control is available in the example project.
In order to use the custom controls you need to import the "namespace" in the window header, which is quite simple:
xmlns:controls="clr-namespace:GradientTheme.Controls;assembly=GradientTheme"
Later on the controls can be instantiated by prefixing <controls:
, for example:
<controls:TyperLabel Style="{DynamicResource TitleStyle}" >
<!-- Important that we supply at least one title, if not we will crash! -->
<controls:TyperLabel.Titles>
<x:Array Type="{x:Type sys:String}">
<sys:String>One Title</sys:String>
<sys:String>Another Title</sys:String>
<sys:String>Great Title</sys:String>
</x:Array>
</controls:TyperLabel.Titles>
</controls:TyperLabel>
FAQs
Unknown package
We found that gradientthemewpf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.