diff --git a/src/AdvancedCalculator/Converters/CategoryToBrushConverter.cs b/src/AdvancedCalculator/Converters/CategoryToBrushConverter.cs
index ebddb1c..eeaae9a 100644
--- a/src/AdvancedCalculator/Converters/CategoryToBrushConverter.cs
+++ b/src/AdvancedCalculator/Converters/CategoryToBrushConverter.cs
@@ -12,20 +12,22 @@ public class CategoryToBrushConverter : IValueConverter
{
if (value is not FunctionCategory cat) return Brushes.Gray;
- // Soft header background colors per category
+ // Soft header backgrounds derived from brand palette (with transparency)
+ // Brand colors:
+ // Primary1: #5AC3D6, Primary2: #223544, Primary3: #4E6D84
+ // Emph1: #F5A623, Emph2: #D94E87, Emph3: #49C46D
return cat switch
{
- FunctionCategory.Base => new SolidColorBrush(Color.FromRgb(0xE3, 0xF2, 0xFD)), // light blue 50
- FunctionCategory.Angle => new SolidColorBrush(Color.FromRgb(0xE8, 0xF5, 0xE9)), // green 50
- FunctionCategory.Rounding => new SolidColorBrush(Color.FromRgb(0xFF, 0xF3, 0xE0)), // orange 50
- FunctionCategory.Trigonometry => new SolidColorBrush(Color.FromRgb(0xF3, 0xE5, 0xF5)), // purple 50
- FunctionCategory.HyperbolicTrig => new SolidColorBrush(Color.FromRgb(0xE0, 0xF7, 0xFA)), // cyan 50
- FunctionCategory.NumberTheory => new SolidColorBrush(Color.FromRgb(0xFF, 0xFD, 0xE7)), // yellow 50
- FunctionCategory.Random => new SolidColorBrush(Color.FromRgb(0xFC, 0xE4, 0xEC)), // pink 50
+ FunctionCategory.Base => new SolidColorBrush(Color.FromArgb(0x26, 0x5A, 0xC3, 0xD6)), // Primary1 @ ~15%
+ FunctionCategory.Angle => new SolidColorBrush(Color.FromArgb(0x26, 0x49, 0xC4, 0x6D)), // Emph3 @ ~15%
+ FunctionCategory.Rounding => new SolidColorBrush(Color.FromArgb(0x26, 0xF5, 0xA6, 0x23)), // Emph1 @ ~15%
+ FunctionCategory.Trigonometry => new SolidColorBrush(Color.FromArgb(0x26, 0x4E, 0x6D, 0x84)), // Primary3 @ ~15%
+ FunctionCategory.HyperbolicTrig => new SolidColorBrush(Color.FromArgb(0x1A, 0x5A, 0xC3, 0xD6)), // Primary1 @ ~10%
+ FunctionCategory.NumberTheory => new SolidColorBrush(Color.FromArgb(0x1A, 0xF5, 0xA6, 0x23)), // Emph1 @ ~10%
+ FunctionCategory.Random => new SolidColorBrush(Color.FromArgb(0x26, 0xD9, 0x4E, 0x87)), // Emph2 @ ~15%
_ => Brushes.Gray
};
}
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotSupportedException();
}
-
diff --git a/src/AdvancedCalculator/Styles/Colors.axaml b/src/AdvancedCalculator/Styles/Colors.axaml
index d1b561f..24438bd 100644
--- a/src/AdvancedCalculator/Styles/Colors.axaml
+++ b/src/AdvancedCalculator/Styles/Colors.axaml
@@ -23,6 +23,11 @@
#FF0F1A21
#FFFFFFFF
+
+
+
+
+
@@ -86,4 +91,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+