Skip to content

Commit c7ee42a

Browse files
committed
DetailsToGridViewConverter: Support for Stardust Legacy Layout theme
1 parent dc5b16e commit c7ee42a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverter.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class ThemesDetailsViewToGridViewConverter : GenericPlugin
2424
//TODO Rework to not use hardcoded values...
2525
private const string themeIdHelium = @"8b15c46a-90c2-4fe5-9ebb-1ab25ba7fcb1";
2626
private const string themeIdStardust = @"Stardust 2.0_1fb333b2-255b-43dd-aec1-8e2f2d5ea002";
27+
private const string themeIdStardustLegacy = @"Stardust_LegacyLayout";
2728
private const string themeIdMythic = @"Mythic_e231056c-4fa7-49d8-ad2b-0a6f1c589eb8";
2829
private const string themeIdHarmony = @"Harmony_d49ef7bc-49de-4fd0-9a67-bd1f26b56047";
2930
private const string themeIdDhDawn = @"felixkmh_DesktopTheme_DH_Dawn";
@@ -65,6 +66,7 @@ public void ProcessAllSupportedThemes()
6566
{
6667
themeIdHelium,
6768
themeIdStardust,
69+
themeIdStardustLegacy,
6870
themeIdMythic,
6971
themeIdHarmony,
7072
themeIdDhDawn,
@@ -266,6 +268,8 @@ private string GetThemeSubdirectory(string themeId)
266268
return "8b15c46a-90c2-4fe5-9ebb-1ab25ba7fcb1";
267269
case themeIdStardust:
268270
return "Stardust 2.0_1fb333b2-255b-43dd-aec1-8e2f2d5ea002";
271+
case themeIdStardustLegacy:
272+
return "Stardust_LegacyLayout";
269273
case themeIdMythic:
270274
return "Mythic_e231056c-4fa7-49d8-ad2b-0a6f1c589eb8";
271275
case themeIdHarmony:
@@ -289,6 +293,8 @@ private bool GetShouldConvertDetailsToGrid(string themeId)
289293
return settings.Settings.ConvertHelium;
290294
case themeIdStardust:
291295
return settings.Settings.ConvertStardust;
296+
case themeIdStardustLegacy:
297+
return settings.Settings.ConvertStardustLegacy;
292298
case themeIdMythic:
293299
return settings.Settings.ConvertMythic;
294300
case themeIdHarmony:
@@ -312,6 +318,8 @@ private Version GetMinimumSupportedVersion(string themeId)
312318
return Version.Parse("1.31");
313319
case themeIdStardust:
314320
return Version.Parse("2.39");
321+
case themeIdStardustLegacy:
322+
return Version.Parse("2.66");
315323
case themeIdMythic:
316324
return Version.Parse("1.24");
317325
case themeIdHarmony:

source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverterSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public class ThemesDetailsViewToGridViewConverterSettings : ObservableObject
1414
public bool ConvertHelium { get => convertHelium; set => SetValue(ref convertHelium, value); }
1515
private bool convertStardust = false;
1616
public bool ConvertStardust { get => convertStardust; set => SetValue(ref convertStardust, value); }
17+
private bool convertStardustLegacy = false;
18+
public bool ConvertStardustLegacy { get => convertStardustLegacy; set => SetValue(ref convertStardustLegacy, value); }
1719
private bool convertMythic = false;
1820
public bool ConvertMythic { get => convertMythic; set => SetValue(ref convertMythic, value); }
1921
private bool convertHarmony = false;

source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverterSettingsView.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
<CheckBox Content="Stardust"
3131
Margin="0,10,0,0"
3232
IsChecked="{Binding Settings.ConvertStardust}"/>
33+
<CheckBox Content="Stardust (Legacy Layout)"
34+
Margin="0,10,0,0"
35+
IsChecked="{Binding Settings.ConvertStardustLegacy}"/>
3336
</StackPanel>
3437

3538
</StackPanel>

0 commit comments

Comments
 (0)