| 41 | } |
| 42 | |
| 43 | static Color AdjustColorBasedOnVisualState( Color const& color, TBitFlags<NodeVisualState> visualState ) |
| 44 | { |
| 45 | Color modifiedColor = color; |
| 46 | |
| 47 | if ( visualState.IsFlagSet( NodeVisualState::Selected ) && visualState.IsFlagSet( NodeVisualState::Hovered ) ) |
| 48 | { |
| 49 | modifiedColor = color.GetScaledColor( 1.6f ); |
| 50 | } |
| 51 | else if ( visualState.IsFlagSet( NodeVisualState::Selected ) ) |
| 52 | { |
| 53 | modifiedColor = color.GetScaledColor( 1.45f ); |
| 54 | } |
| 55 | else if ( visualState.IsFlagSet( NodeVisualState::Hovered ) ) |
| 56 | { |
| 57 | modifiedColor = color.GetScaledColor( 1.15f ); |
| 58 | } |
| 59 | |
| 60 | return modifiedColor; |
| 61 | } |
| 62 | |
| 63 | static void GetNodeBackgroundAndBorderColors( Color titleBarColor, Color baseColor, TBitFlags<NodeVisualState> visualState, Color& outTitleBarColor, Color& outBackgroundColor, Color& outBorderColor ) |
| 64 | { |
| 65 | if ( visualState.IsFlagSet( NodeVisualState::Selected ) && visualState.IsFlagSet( NodeVisualState::Hovered ) ) |
| 66 | { |
no test coverage detected