Overview
ImageGlass themes allow you to customize the appearance of the application, including colors, icons, and UI elements. Themes are packaged as.igtheme files and can be easily shared with the community.
Theme File Structure
A theme package consists of a folder containing:- igtheme.json - The main theme configuration file
- SVG icon files - Custom toolbar and navigation icons
- preview.webp (or other image format) - A preview image of your theme
- Logo.svg (optional) - Custom application logo
Example Theme Structure
Theme Configuration File
Theigtheme.json file defines all theme properties. Here’s a complete example:
Dark Theme Example (Kobe)
Light Theme Example (Kobe-Light)
Configuration Reference
Metadata Section
| Property | Type | Description |
|---|---|---|
Description | string | Description of the configuration file format |
Version | string | Theme configuration version (e.g., “9.0”) |
Info Section
| Property | Type | Required | Description |
|---|---|---|---|
Name | string | Yes | The display name of your theme |
Author | string | Yes | Theme creator’s name |
Email | string | No | Contact email address |
Website | string | No | Author’s or theme’s website |
Description | string | Yes | Brief description of the theme |
Version | string | Yes | Theme version number |
Settings Section
| Property | Type | Description |
|---|---|---|
IsDarkMode | boolean | Whether this is a dark theme (true) or light theme (false) |
IsShowTitlebarLogo | boolean | Display the logo in the title bar |
NavButtonLeft | string | Filename for the previous image button icon |
NavButtonRight | string | Filename for the next image button icon |
PreviewImage | string | Preview image filename shown in theme selector |
AppLogo | string | Custom application logo filename |
Colors Section
Colors can be specified as:- Hex values:
#RRGGBBor#RRGGBBAA(with alpha) - Accent colors:
accent:Nwhere N is 0-255 (uses system accent color with specified alpha)
Available Color Properties
| Property | Description |
|---|---|
BgColor | Main background color |
TextColor | Main text color |
ToolbarBgColor | Toolbar background color |
ToolbarTextColor | Toolbar text color |
ToolbarItemHoverColor | Toolbar button hover state |
ToolbarItemActiveColor | Toolbar button active/pressed state |
ToolbarItemSelectedColor | Toolbar button selected state |
GalleryBgColor | Gallery panel background |
GalleryTextColor | Gallery text color |
GalleryItemHoverColor | Gallery thumbnail hover state |
GalleryItemActiveColor | Gallery thumbnail active state |
GalleryItemSelectedColor | Gallery thumbnail selected state |
MenuBgColor | Menu background color |
MenuBgHoverColor | Menu item hover background |
MenuTextColor | Menu text color |
MenuTextHoverColor | Menu text hover color |
NavigationButtonColor | Navigation arrow button color |
ToolbarIcons Section
Map each toolbar action to an SVG icon file. All icons should be SVG format for best quality and scaling.Required Icon Files
- ActualSize.svg
- AutoZoom.svg
- Checkerboard.svg
- ColorPicker.svg
- Crop.svg
- Delete.svg
- Edit.svg
- Exit.svg
- Export.svg
- FlipHorz.svg
- FlipVert.svg
- FullScreen.svg
- Gallery.svg
- LockZoom.svg
- MainMenu.svg
- OpenFile.svg
- Pause.svg
- Play.svg
- Print.svg
- Refresh.svg
- RotateLeft.svg
- RotateRight.svg
- Save.svg
- ScaleToFill.svg
- ScaleToFit.svg
- ScaleToHeight.svg
- ScaleToWidth.svg
- Slideshow.svg
- ViewFirstImage.svg
- ViewLastImage.svg
- ViewNextImage.svg
- ViewPreviousImage.svg
- WindowFit.svg
- ZoomIn.svg
- ZoomOut.svg
Creating a Theme
Step 1: Set Up Theme Folder
- Create a new folder with your theme name (e.g.,
MyTheme) - Copy icon templates from an existing theme or create your own SVG icons
Step 2: Create igtheme.json
- Create an
igtheme.jsonfile in your theme folder - Fill in the metadata, info, settings, colors, and toolbar icons sections
- Choose appropriate colors for dark or light mode
- Set
IsDarkModetotruefor dark themes,falsefor light themes
Step 3: Design Icons
- Create or modify SVG icons for all toolbar actions
- Keep icons simple and clear at small sizes (16x16 to 32x32 pixels)
- Use consistent stroke width and style across all icons
- Test icons in both light and dark backgrounds
Step 4: Add Preview Image
- Create a preview screenshot showing your theme (recommended size: 800x600 or larger)
- Save as
preview.webp,preview.png, orpreview.jpg - Reference it in the
PreviewImagesetting
Step 5: Test Your Theme
- Install the theme using the command line or UI
- Switch between light and dark modes to test appearance
- Check all toolbar icons and colors
- Test in different Windows theme modes
Installing Themes
Using the UI
- Open ImageGlass Settings
- Go to Appearance → Theme
- Click Install theme packs
- Select your
.igthemefile
Using Command Line (igcmd)
- Per-user:
%AppData%\ImageGlass\Themes\ThemeName - System-wide:
<ImageGlass Install Dir>\Themes\ThemeName
Packaging Themes
Create .igtheme Package
- Compress your theme folder into a ZIP file
- Rename the
.zipextension to.igtheme - Share your theme file
Example Structure
Uninstalling Themes
Using the UI
- Open ImageGlass Settings → Appearance → Theme
- Select the theme to remove
- Click Uninstall a theme pack
Using Command Line
The default “Kobe” theme cannot be uninstalled.
Best Practices
Design Guidelines
- Consistency: Maintain consistent visual style across all icons
- Contrast: Ensure good contrast between UI elements and backgrounds
- Accessibility: Test themes with different accessibility settings
- Performance: Use optimized SVG files (remove unnecessary elements)
Color Selection
- For dark themes: Use lighter text on darker backgrounds
- For light themes: Use darker text on lighter backgrounds
- Use the
accent:Nformat to integrate with Windows accent color - Test with different Windows accent colors
Icon Design
- Use SVG format for scalability
- Keep file sizes small (< 5KB per icon)
- Use simple, recognizable shapes
- Avoid text in icons (use symbols instead)
- Ensure icons work at small sizes (16x16px)
Sharing Your Theme
- Package your theme as
.igthemefile - Create a README with description and screenshots
- Share on ImageGlass community forums or GitHub
- Consider submitting to the official ImageGlass theme repository
Troubleshooting
Theme Not Loading
- Verify
igtheme.jsonis valid JSON (use a JSON validator) - Check that all referenced icon files exist
- Ensure file and folder names match exactly (case-sensitive)
- Review ImageGlass logs for error messages
Icons Not Displaying
- Confirm SVG files are valid
- Check file paths in
ToolbarIconssection - Ensure icon files are in the same folder as
igtheme.json
Colors Not Applied
- Verify color format (hex or accent:N)
- Check for typos in color property names
- Test with simple colors first (e.g.,
#FF0000for red)
Resources
- ImageGlass Theme GitHub Repository
- Official theme examples: Kobe, Kobe-Light
- Community themes: Check ImageGlass forums and discussions
Support
For questions or issues with theme development:- Report issues on GitHub
- Join community discussions
- Contact: [email protected]