Skip to content

Commit e606ae8

Browse files
committed
Fix corrupted emojis and symbols
The emojis and symbols applied here were corrupted since the following patch. ``` Commit: 7da4442 Author: David Catuhe <[email protected]> Date : Fri Jul 15 07:51:16 2016 -0700 Title : Fixed encodings ```
1 parent 13bfbf2 commit e606ae8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WeatherLiveTileAndToast/WeatherLiveTileAndToastCode.bind

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ private void PopToast()
3333
{
3434
// We'll just add two simple lines of text
3535
builder
36-
.AddText("Monday ? 63 / 42")
37-
.AddText("Tuesday ? 57 / 38");
36+
.AddText("Monday 63° / 42°")
37+
.AddText("Tuesday 57° / 38°");
3838
}
3939

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

8181
// Medium Tile
8282
builder.AddTile(Notifications.TileSize.Medium)
@@ -160,7 +160,7 @@ private static TileBindingContentAdaptive GenerateLargeTileContent()
160160

161161
new AdaptiveText()
162162
{
163-
Text = "63 / 42"
163+
Text = "63° / 42°"
164164
},
165165

166166
new AdaptiveText()
@@ -221,14 +221,14 @@ private static AdaptiveSubgroup GenerateSubgroup(string day, string img, int tem
221221
// High temp
222222
new AdaptiveText()
223223
{
224-
Text = tempHi + "",
224+
Text = tempHi + "°",
225225
HintAlign = AdaptiveTextAlign.Center
226226
},
227227

228228
// Low temp
229229
new AdaptiveText()
230230
{
231-
Text = tempLo + "",
231+
Text = tempLo + "°",
232232
HintAlign = AdaptiveTextAlign.Center,
233233
HintStyle = AdaptiveTextStyle.CaptionSubtle
234234
}
@@ -251,6 +251,6 @@ private static AdaptiveText GenerateLegacyToastText(string day, string weatherEm
251251
{
252252
return new AdaptiveText()
253253
{
254-
Text = $"{day} {weatherEmoji} {tempHi} / {tempLo}"
254+
Text = $"{day} {weatherEmoji} {tempHi}° / {tempLo}°"
255255
};
256256
}

0 commit comments

Comments
 (0)