Skip to content

Commit

Permalink
Fixed corrupted emojis and symbols
Browse files Browse the repository at this point in the history
The emojis and symbols applied here were corrupted since the following patch.

```
Commit: 7da4442
Author: David Catuhe <david.catuhe@live.fr>
Date  : Fri Jul 15 07:51:16 2016 -0700
Title : Fixed encodings
```
  • Loading branch information
Nirmal4G committed Mar 31, 2021
1 parent 6d11c0f commit fa6f017
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ private void PopToast()
{
// We'll just add two simple lines of text
builder
.AddText("Monday ? 63 / 42")
.AddText("Tuesday ? 57 / 38");
.AddText("Monday 63° / 42°")
.AddText("Tuesday 57° / 38°");
}

// Set the base URI for the images, so we don't redundantly specify the entire path
Expand Down Expand Up @@ -76,7 +76,7 @@ public static TileContent GenerateTileContent()
builder.AddTile(Notifications.TileSize.Small)
.SetTextStacking(TileTextStacking.Center, Notifications.TileSize.Small)
.AddText("Mon", Notifications.TileSize.Small, hintStyle: AdaptiveTextStyle.Body, hintAlign: AdaptiveTextAlign.Center)
.AddText("63", Notifications.TileSize.Small, hintStyle: AdaptiveTextStyle.Base, hintAlign: AdaptiveTextAlign.Center);
.AddText("63°", Notifications.TileSize.Small, hintStyle: AdaptiveTextStyle.Base, hintAlign: AdaptiveTextAlign.Center);

// Medium Tile
builder.AddTile(Notifications.TileSize.Medium)
Expand Down Expand Up @@ -160,7 +160,7 @@ private static TileBindingContentAdaptive GenerateLargeTileContent()

new AdaptiveText()
{
Text = "63 / 42"
Text = "63° / 42°"
},

new AdaptiveText()
Expand Down Expand Up @@ -221,14 +221,14 @@ private static AdaptiveSubgroup GenerateSubgroup(string day, string img, int tem
// High temp
new AdaptiveText()
{
Text = tempHi + "",
Text = tempHi + "°",
HintAlign = AdaptiveTextAlign.Center
},

// Low temp
new AdaptiveText()
{
Text = tempLo + "",
Text = tempLo + "°",
HintAlign = AdaptiveTextAlign.Center,
HintStyle = AdaptiveTextStyle.CaptionSubtle
}
Expand All @@ -251,6 +251,6 @@ private static AdaptiveText GenerateLegacyToastText(string day, string weatherEm
{
return new AdaptiveText()
{
Text = $"{day} {weatherEmoji} {tempHi} / {tempLo}"
Text = $"{day} {weatherEmoji} {tempHi}° / {tempLo}°"
};
}

0 comments on commit fa6f017

Please sign in to comment.