private void UpdateFromColorPanel(ColorPanel usedColorPanel) { var result = usedColorPanel.GetColorPanelResult(); if (result == null || CurrentShortcutItem == null) { return; } CurrentShortcutItem.Properties.CurrentState.BackgroundColor = result.BackgroundColor; CurrentShortcutItem.Properties.CurrentState.ShowNameOnSquare150X150Logo = result.DisplayForegroundText; CurrentShortcutItem.Properties.CurrentState.ForegroundText = result.ForegroundColor; }
private void UpdateFromColorPanel(ColorPanel usedColorPanel) { var result = usedColorPanel.GetColorPanelResult(); if (result == null) { return; } CurrentShortcutItem.Properties.CurrentState.BackgroundColor = ColorUtils.ColorToHex(result.BackgroundColor); CurrentShortcutItem.Properties.CurrentState.ShowNameOnSquare150X150Logo = result.DisplayForegroundText; CurrentShortcutItem.Properties.CurrentState.ForegroundText = result.ForegroundColor; }