Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Localized the theme names #13279

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions src/Files.App/Data/Factories/AppThemeResourcesFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,102 +10,102 @@ public static class AppThemeResourceFactory
new AppThemeResourceItem
{
BackgroundColor = "#00000000", /* Transparent */
Name = "Default"
Name = "Default".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32FFB900", /* #FFB900 */
Name = "Yellow Gold"
Name = "YellowGold".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32F7630C", /* #F7630C */
Name = "Orange Bright"
Name = "OrangeBright".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32D13438", /* #D13438 */
Name = "Brick Red"
Name = "BrickRed".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32FF4343", /* #FF4343 */
Name = "Mod Red"
Name = "ModRed".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32EA005E", /* #EA005E */
Name = "Red"
Name = "Red".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32EA005E", /* #EA005E */
Name = "Rose Bright"
Name = "RoseBright".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#320078D7", /* #0078D7 */
Name = "Blue"
Name = "Blue".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#328764B8", /* #8764B8 */
Name = "Iris Pastel"
Name = "IrisPastel".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32B146C2", /* #B146C2 */
Name = "Violet Red Light"
Name = "VioletRedLight".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#320099BC", /* #0099BC */
Name = "Cool Blue Bright"
Name = "CoolBlueBright".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#3200B7C3", /* #00B7C3 */
Name = "Seafoam"
Name = "Seafoam".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#3200B294", /* #00B294 */
Name = "Mint Light"
Name = "MintLight".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#327A7574", /* #7A7574 */
Name = "Gray"
Name = "Gray".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32107C10", /* #107C10 */
Name = "Green"
Name = "Green".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#32767676", /* #767676 */
Name = "Overcast"
Name = "Overcast".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#324C4A48", /* #4C4A48 */
Name = "Storm"
Name = "Storm".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#3269797E", /* #69797E */
Name = "Blue Gray"
Name = "BlueGray".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#324A5459", /* #4A5459 */
Name = "Gray Dark"
Name = "GrayDark".GetLocalizedResource()
},
new AppThemeResourceItem
{
BackgroundColor = "#327E735F", /* #7E735F */
Name = "Camouflage"
Name = "Camouflage".GetLocalizedResource()
}
};
}
Expand Down
76 changes: 76 additions & 0 deletions src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -3450,4 +3450,80 @@
<data name="SettingsLeaveAppRunning" xml:space="preserve">
<value>Leave app running in the background when the window is closed</value>
</data>
<data name="Blue" xml:space="preserve">
<value>Blue</value>
<comment>One of the custom color themes</comment>
</data>
<data name="BlueGray" xml:space="preserve">
<value>Blue Gray</value>
<comment>One of the custom color themes</comment>
</data>
<data name="BrickRed" xml:space="preserve">
<value>Brick Red</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Camouflage" xml:space="preserve">
<value>Camouflage</value>
<comment>One of the custom color themes</comment>
</data>
<data name="CoolBlueBright" xml:space="preserve">
<value>Cool Blue Bright</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Gray" xml:space="preserve">
<value>Gray</value>
<comment>One of the custom color themes</comment>
</data>
<data name="GrayDark" xml:space="preserve">
<value>Gray Dark</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Green" xml:space="preserve">
<value>Green</value>
<comment>One of the custom color themes</comment>
</data>
<data name="IrisPastel" xml:space="preserve">
<value>Iris Pastel</value>
<comment>One of the custom color themes</comment>
</data>
<data name="MintLight" xml:space="preserve">
<value>Mint Light</value>
<comment>One of the custom color themes</comment>
</data>
<data name="ModRed" xml:space="preserve">
<value>Mod Red</value>
<comment>One of the custom color themes</comment>
</data>
<data name="OrangeBright" xml:space="preserve">
<value>Orange Bright</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Overcast" xml:space="preserve">
<value>Overcast</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Red" xml:space="preserve">
<value>Red</value>
<comment>One of the custom color themes</comment>
</data>
<data name="RoseBright" xml:space="preserve">
<value>Rose Bright</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Seafoam" xml:space="preserve">
<value>Seafoam</value>
<comment>One of the custom color themes</comment>
</data>
<data name="Storm" xml:space="preserve">
<value>Storm</value>
<comment>One of the custom color themes</comment>
</data>
<data name="VioletRedLight" xml:space="preserve">
<value>Violet Red Light</value>
<comment>One of the custom color themes</comment>
</data>
<data name="YellowGold" xml:space="preserve">
<value>Yellow Gold</value>
<comment>One of the custom color themes</comment>
</data>
</root>