protected override GrowlPopup CreatePopup() { var popup = new TranslucentDarkPopup(); var settings = new TranslucentDarkSettings(SettingsCollection); popup.NotificationWidth = settings.FixedWidth; popup.IconSize = settings.IconSize; popup.TextColor = WfColorToWpfColor(settings.TextColor); popup.ContainerColor = WfColorToWpfColor(settings.ContainerColor); popup.ShowIcon = settings.ShowIcon; popup.ShowTitle = settings.ShowTitle; popup.ShowDescription = settings.ShowDescription; popup.TitleFontFamily = GetFontFamily(settings.TitleFontFamily); popup.TitleFontSize = settings.TitleFontSize; popup.DescriptionFontFamily = GetFontFamily(settings.DescriptionFontFamily); popup.DescriptionFontSize = settings.DescriptionFontSize; popup.UseFadeAnimation = settings.UseFadeAnimation; popup.DontCloseOnMouseOver = settings.DontCloseOnMouseOver; PopupDocker.SetDockHorizontal(popup, settings.HorizontalPlacement); PopupDocker.SetDockVertical(popup, settings.VerticalPlacement); PopupDocker.SetDockedScreen(popup, settings.Screen); popup.Initialize(); return popup; }
protected override GrowlPopup CreatePopup() { var popup = new TranslucentDarkPopup(); var settings = new TranslucentDarkSettings(SettingsCollection); popup.NotificationWidth = settings.FixedWidth; popup.IconSize = settings.IconSize; popup.TextColor = WfColorToWpfColor(settings.TextColor); popup.ContainerColor = WfColorToWpfColor(settings.ContainerColor); popup.ShowIcon = settings.ShowIcon; popup.ShowTitle = settings.ShowTitle; popup.ShowDescription = settings.ShowDescription; popup.TitleFontFamily = GetFontFamily(settings.TitleFontFamily); popup.TitleFontSize = settings.TitleFontSize; popup.DescriptionFontFamily = GetFontFamily(settings.DescriptionFontFamily); popup.DescriptionFontSize = settings.DescriptionFontSize; popup.UseFadeAnimation = settings.UseFadeAnimation; popup.DontCloseOnMouseOver = settings.DontCloseOnMouseOver; PopupDocker.SetDockHorizontal(popup, settings.HorizontalPlacement); PopupDocker.SetDockVertical(popup, settings.VerticalPlacement); PopupDocker.SetDockedScreen(popup, settings.Screen); popup.Initialize(); return(popup); }