Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions FoliCon/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<ResourceDictionary.MergedDictionaries>
<hc:ThemeResources UsingSystemTheme="True" />
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml" />
<!-- Dark Purple Theme Override -->
<ResourceDictionary Source="/Resources/Themes/DarkPurpleTheme.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FoliCon;component/XamlResources/UiElements.xaml" />
<ResourceDictionary Source="/Resources/Dictionaries/GeometryResources.xaml" />
</ResourceDictionary.MergedDictionaries>
Expand Down
21 changes: 21 additions & 0 deletions FoliCon/Modules/UI/BindingProxy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Windows;

namespace FoliCon.Modules.UI
{
public class BindingProxy : Freezable
{
protected override Freezable CreateInstanceCore()
{
return new BindingProxy();
}

public object Data
{
get { return (object)GetValue(DataProperty); }
set { SetValue(DataProperty, value); }
}

public static readonly DependencyProperty DataProperty =
DependencyProperty.Register("Data", typeof(object), typeof(BindingProxy), new UIPropertyMetadata(null));
}
}
30 changes: 30 additions & 0 deletions FoliCon/Resources/Themes/DarkPurpleTheme.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<!-- Dark Purple Theme Palette -->
<!-- Base Backgrounds -->
<SolidColorBrush x:Key="RegionBrush" Color="#1E1E2C"/>
<SolidColorBrush x:Key="SecondaryRegionBrush" Color="#2A2A3C"/>
<SolidColorBrush x:Key="BorderBrush" Color="#3F3F5F"/>

<!-- Primary Colors (Purple) -->
<SolidColorBrush x:Key="PrimaryBrush" Color="#6200EA"/>
<SolidColorBrush x:Key="PrimaryTextBrush" Color="#E0E0E0"/>
<SolidColorBrush x:Key="SecondaryTextBrush" Color="#A0A0B0"/>

<!-- Accent/Selection -->
<SolidColorBrush x:Key="DarkPrimaryBrush" Color="#4A00B0"/>
<SolidColorBrush x:Key="LightPrimaryBrush" Color="#9D46FF"/>

<!-- Control Specifics -->
<!-- Used for ProgressBar stripes or success states if referenced -->
<LinearGradientBrush x:Key="ProgressBarSuccessStripe" StartPoint="0,0" EndPoint="1,0" MappingMode="Absolute" SpreadMethod="Repeat">
<GradientStop Color="#6200EA" Offset="0"/>
<GradientStop Color="#7C4DFF" Offset="0.5"/>
<GradientStop Color="#6200EA" Offset="1"/>
</LinearGradientBrush>

<!-- Overrides for HandyControl defaults if needed (conceptually) -->
<!-- Note: Actual HC theme keys might differ, but RegionBrush/PrimaryBrush are standard HC keys -->

</ResourceDictionary>
Loading