S Files Pro X comes with more than 25 themes, from Retro and Windows XP to the hero themes. You can also make your own. A color theme is a single .xaml text file, and you can have as many of them as you like: each one shows up in the theme list.
1. Open the themes folder
Open Settings (Ctrl+P), go to Appearance, and click Open Theme Folder next to Themes. This opens the CustomThemes folder:
C:\Users\<UserName>\AppData\Local\Packages\43158JPTGamesandApps.ShresthaFiles-AModernDualPane_pnxmbr0ydfejr\LocalState\CustomThemes
It holds a sample theme, CustomTheme.xaml, to start from.
2. Copy the sample and give it a name
Copy CustomTheme.xaml and rename the copy. The file name is the name the theme gets in the list, so Forest Night.xaml shows up as Forest Night. Make one copy for each theme you want.
Two things to avoid:
- Don’t edit
CustomTheme.xamlitself. Every update puts a fresh copy of the sample in its place. The app keeps your edited version asCustomTheme.xaml.bak, but that file no longer shows up in the list until you rename it back to.xaml. - Don’t name your file after one of the app’s own themes, such as
Retro.xaml,Mono.xamlorWindowsXPTheme.xaml. The app uses those names itself, so a file called that does not show up in the list and is removed when the app starts.
3. Change the colors
Open your copy in a text editor such as Notepad or Visual Studio Code. Colors are written as #AARRGGBB: two hex digits for opacity (FF is solid), then red, green and blue. For example, #FF1D5CE7 is a solid blue.
The file has a section for each mode:
<ResourceDictionary x:Key="Default">is used in dark mode,<ResourceDictionary x:Key="Light">is used in light mode,<ResourceDictionary x:Key="HighContrast">is used with Windows contrast themes. Leave it as it is.
Which section the app uses follows the Light or Dark Mode setting under Appearance. Change both, so your theme looks right in either mode.
The color palette
The ColorPaletteResources line at the top of each section sets most of the colors:
| Colors | What they color |
|---|---|
Accent |
Selected items, toggles, focus outlines, links and the main buttons |
AltHigh … AltLow |
The background in that mode: black in dark mode, white in light mode |
BaseHigh … BaseLow |
Text and icons, from the strongest (BaseHigh) to the faintest (BaseLow) |
ChromeHigh … ChromeLow, ChromeAltLow |
Surfaces such as the title bar, menus, dropdowns and borders |
ChromeBlack…, ChromeWhite, ChromeGray, ChromeDisabled… |
Shadows, highlights and controls that are turned off |
ListLow, ListMedium |
Items in lists when you point at them or press them |
Keep BaseHigh in strong contrast with the background, so text stays readable.
The other colors
Below the palette, each section has a few more colors to change along with it:
SystemAccentColorDark1toDark3andSystemAccentColorLight1toLight3are darker and lighter shades of yourAccentcolor, used when you point at or press accent-colored things. Pick shades close to the accent.RegionColoris the color of the window behind everything, mixed with Mica or Acrylic, and of dialogs and tooltips. SetRegionBrushon the next line to the same color, written out in full, since the app needs both.SystemChromeAltHighColor,SystemChromeAltMediumHighColor,SystemRevealListLowColorandSystemRevealListMediumColorshould match the palette colors next to them in the sample.
Shapes and borders (optional)
The CornerRadius lines set how round controls (ControlCornerRadius) and menus and dialogs (OverlayCornerRadius) are. Set them to 0,0,0,0 for square corners. The Thickness lines set border widths.
4. Pick your theme
Close and reopen Settings, and go to Appearance. Your themes are at the end of the Themes list. Click one to use it. Some colors only change after you restart the app.
If the app shows the Default colors instead of yours, the file probably has a mistake: a missing " or >, or a tag that isn’t closed. The app falls back to Default when it can’t read a theme file. Undo your last change or compare the file with the sample.
To see a change you made to the theme that’s in use, restart the app.
Backgrounds, icons and transparency
A theme file only sets colors and shapes. The rest of the look comes from other settings under Appearance:
- Background picture and icons. The app’s own themes each come with a background for light and dark mode and matching icon packs. Your themes use the Default theme’s background and icons. To use others, turn on Customize the Background and Icons under Background and Icons, then pick a background picture (or your own, with Open Background Folder) and the icon themes. These choices apply to every theme you pick until you turn customizing off again. You can also make your own icon theme.
- Background Picture Opacity follows the theme you pick, unless you move the slider yourself. Your setting then stays across theme changes, until you click Reset to Theme Defaults next to it.
- App Backdrop (Mica, Mica Alt or Acrylic), App Backdrop Tint Opacity, App Backdrop Luminosity Opacity and the four Pane Opacity settings are not part of any theme. They stay as you set them whichever theme you pick, and they work together with your theme’s
RegionColor.
Starting from a theme editor
Microsoft’s free Fluent XAML Theme Editor lets you pick colors and see the result, then export a theme file to paste into your copy. An exported file needs a few changes before the app can load it:
- Delete any line with
RevealBackgroundBrush. - Remove
BackgroundSource="HostBackdrop"from the twoAcrylicBrushlines. The sample keeps those lines without it. - Make sure each section has a
RegionColorline and aRegionBrushline with the same color written out, as in the sample.
Share your theme
A theme is a single file, so it’s easy to share. Get More Themes, next to Open Theme Folder, opens the S Files Discord server, where people share their themes. To use a theme you got from someone else, put the file in the themes folder and reopen Settings.
