diff --git a/Core/Notification/Example/FormNotificationExample.cs b/Core/Notification/Example/FormNotificationExample.cs index 94235cf8..6ac17423 100644 --- a/Core/Notification/Example/FormNotificationExample.cs +++ b/Core/Notification/Example/FormNotificationExample.cs @@ -24,13 +24,13 @@ protected override FormBorderStyle NotificationBorderStyle{ private readonly TweetNotification exampleNotification; public FormNotificationExample(FormBrowser owner, PluginManager pluginManager) : base(owner, pluginManager, false){ - string exampleTweetHTML = ScriptLoader.LoadResource("pages/example.html", true); + string exampleTweetHTML = ScriptLoader.LoadResource("pages/example.html", true).Replace("{avatar}", TweetNotification.AppLogoLink); #if DEBUG exampleTweetHTML = exampleTweetHTML.Replace("</p>", @"</p><div style='margin-top:256px'>Scrollbar test padding...</div>"); #endif - exampleNotification = TweetNotification.Example(exampleTweetHTML, 95); + exampleNotification = TweetNotification.Example(exampleTweetHTML, 176); } public override void HideNotification(){ diff --git a/Resources/Scripts/pages/example.html b/Resources/Scripts/pages/example.html index 75bd8d41..7916b4cc 100644 --- a/Resources/Scripts/pages/example.html +++ b/Resources/Scripts/pages/example.html @@ -3,22 +3,22 @@ <div class="js-tweet tweet"> <header class="tweet-header"> <time class="tweet-timestamp js-timestamp pull-right txt-mute"> - <a target="_blank" rel="url" href="https://twitter.com/chylexmc" class="txt-size-variable--12">0s</a> + <a target="_blank" rel="url" href="https://twitter.com/TryMyAwesomeApp" class="txt-size-variable--12">now</a> </time> - <a target="_blank" rel="user" href="https://twitter.com/chylexmc" class="account-link link-complex block"> + <a target="_blank" rel="user" href="https://twitter.com/TryMyAwesomeApp" class="account-link link-complex block"> <div class="obj-left item-img tweet-img"> - <img width="48" height="48" alt="chylexmc's avatar" src="https://pbs.twimg.com/profile_images/765161905312980992/AhDP9iY-_normal.jpg" class="tweet-avatar avatar pull-right"> + <img width="48" height="48" alt="TryMyAwesomeApp's avatar" src="{avatar}" class="tweet-avatar avatar pull-right"> </div> <div class="nbfc"> <span class="account-inline txt-ellipsis"> - <b class="fullname link-complex-target">chylex</b> - <span class="username txt-mute">@chylexmc</span> + <b class="fullname link-complex-target">TweetDuck</b> + <span class="username txt-mute">@TryMyAwesomeApp</span> </span> </div> </a> </header> <div class="tweet-body"> - <p class="js-tweet-text tweet-text with-linebreaks">This is an example tweet, which lets you test the location and duration of popup notifications.</p> + <p class="js-tweet-text tweet-text with-linebreaks">Here you can see the position and appearance of desktop notifications.<br><br>For location and size, you can pick a preset, or select <strong>Custom</strong> and then freely move or resize the window.</p> </div> </div> </div>