changed function node ui so that user is able to differentiate
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Ankitkumar Satapara
2026-04-20 00:48:52 +05:30
parent 7288bdd6f2
commit 62e1b5b0f4

View File

@@ -435,12 +435,29 @@
</DataTemplate>
<DataTemplate DataType="{x:Type local:FunctionOperationViewModel}">
<nodify:Node Header="{Binding Title}"
Input="{Binding Input}"
<nodify:Node Input="{Binding Input}"
Output="{Binding Output}"
ToolTip="Double click to edit function"
BorderBrush="#FF9800"
BorderThickness="2">
<nodify:Node.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="ƒ"
FontSize="16"
FontWeight="Bold"
Foreground="#FF9800"
VerticalAlignment="Center"
Margin="0 0 6 0" />
<TextBlock Text="{Binding Title}"
VerticalAlignment="Center"
FontWeight="SemiBold" />
</StackPanel>
</nodify:Node.Header>
<TextBlock Text="⚡ Double-click to edit"
FontSize="10"
Foreground="#FF9800"
Opacity="0.8"
Margin="4 2" />
<nodify:Node.InputBindings>
<MouseBinding Gesture="LeftDoubleClick"
Command="{Binding DataContext.OpenCalculatorCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"