mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-18 22:24:53 +02:00
Configuration
Core
Handling
ContextMenuHandler.cs
TweetDeckBridge.cs
TweetNotification.cs
FormBackgroundWork.Designer.cs
FormBackgroundWork.cs
FormBrowser.Designer.cs
FormBrowser.cs
FormNotification.Designer.cs
FormNotification.cs
RichTextLabel.Designer.cs
RichTextLabel.cs
Migration
Properties
Resources
.gitignore
LICENSE
Program.cs
TweetDick.csproj
TweetDick.sln
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System.Text;
|
|
|
|
namespace TweetDick.Core.Handling{
|
|
sealed class TweetNotification{
|
|
private static string FontSizeClass { get; set; }
|
|
private static string HeadTag { get; set; }
|
|
|
|
public static void SetFontSizeClass(string newFSClass){
|
|
FontSizeClass = newFSClass;
|
|
}
|
|
|
|
public static void SetHeadTag(string headContents){
|
|
HeadTag = headContents;
|
|
}
|
|
|
|
private readonly string html;
|
|
|
|
public TweetNotification(string html){
|
|
this.html = html;
|
|
}
|
|
|
|
public string GenerateHtml(){
|
|
StringBuilder build = new StringBuilder();
|
|
build.Append("<!DOCTYPE html>");
|
|
build.Append("<html class='os-windows ").Append(FontSizeClass).Append("'>");
|
|
build.Append("<head>").Append(HeadTag).Append("</head>");
|
|
build.Append("<body class='hearty'><div class='app-columns-container'><div class='column' style='width:100%'>");
|
|
build.Append(html);
|
|
build.Append("</div></div></body>");
|
|
build.Append("</html>");
|
|
return build.ToString();
|
|
}
|
|
}
|
|
}
|