Skip to content

Instantly share code, notes, and snippets.

@CodeLikeAGirl29
Created July 29, 2024 00:58
Show Gist options
  • Save CodeLikeAGirl29/f0c92e38defd699818d9520923a5827e to your computer and use it in GitHub Desktop.
Save CodeLikeAGirl29/f0c92e38defd699818d9520923a5827e to your computer and use it in GitHub Desktop.
Custom icons, themes, ect when using OneCommander on a Windows PC

Creating Custom Themes for my PC 🤔

I use these when using OneCommander File Explorer

Everything is loaded from the "Resources" folder Location depends on install type (the easiest way to find Settings is going to About->Settings Location button)

  • MSI installed version: %localappdata%\OneCommander (paste in address bar)
  • Portable" version: it will be in the folder where you have download the program
  • Microsoft Store version: %USERPROFILE% (paste in address bar)

Icons have to be PNG format (NOT ico files); transparency is respected

How to change all folder icons

  • Create or download a transparent png file of a desired icon,
  • Give it name without spaces or special characters
  • Resize it to 64x64 px
  • Copy to Resources\MainFolderIcon\
  • Reopen Settings dialog and select it in a dropdown menu

How to create custom icons for folders

  • In Resources\FolderIcons create a folder without spaces and special characters (example "MyFolderIconPack")
  • To assign icon for Documents folder, create "Documents.png"
  • File name is case sensitive has to be exactly the same as the folder ("documents.png" won't work for Documents folder)
  • Alias is ignored - has to be the actual folder name
  • If you intend to share, create Thumbnail.png which will be the image showing in Settings dialog (see how Resources\FolderIcons\Dark\Thumbnail.png looks, and align icons the same way)
  • Reopen Settings dialog and select it in a dropdown menu
  • On theme change, program will generate a subfolder with a number (for example 16 - it depends on screen scale) and auto-resize icons properly there
  • If you need to update/regenerate icons, you have to delete all folders with numbers within your MyFolderIconPack and restart the program

How to create custom icons for file types

  • In Resources\FileIcons create a folder without spaces and special characters (example "MyFileIconPack")
  • To assign an icon for all jpg files create "jpg.png"
  • To assign the same icon for multiple file types, name them comma-separated (for example: for txt and cfg you will create "txt,cfg.png")
  • Icons must not have spaces in names
  • If you intend to share, create Thumbnail.png which will be the image showing in Settings dialog (see how Resources\FileIcons\Fileicons.org\Thumbnail.png looks, and preferably align icons the same way)
  • Reopen Settings dialog and find your pack in the dropdown menu
  • On theme change, the program will generate a subfolder with a number (for example 16) and resize icons properly there
  • If you need to update/regenerate icons, you have to delete all folders with numbers within your "MyFileIconPack" and restart the program

How to create custom menu icons

  • In Resources\MenuIcons you will see Dark and Light folders, use the one depending on which theme you are using
  • Create/Download png into that folder of the desired icon
  • Make sure resolution is low - suggested 32x32 px
  • Icons has to be named the same as "verb" for that menu icon
  • To find those additional "verbs", open context menu for some file or folder (this will store verbs), then click Settings>Advanced>Get Recent Menu Items You will see something like "7-Zip [SevenZip] (verb is in [brackets]), so rename your icon to "SevenZip.png" (uppercase/lowercase is important) and place it in the mentioned folder
  • Alternatively, in case where there is no verb, you can match common beginning of the menu item (example: "Extract to .png"; case sensitive)
  • Restart program Edit: Additional menu icons available: "NewFile","NewFolder","NewNote". Additional icons you can find in \Resources\MenuIcons...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment