Making a theme
A theme is a folder with one text file, THEME.CFG. It gives values (colours,
corner radii, sizes, button styles) to one of Mizu's two looks, Kasumi or Retro. The look still draws
everything; a theme can't run code. Nothing needs building: change the file, and the theme changes.
Where themes live
- Your own:
%USERPROFILE%\AppData\Themes\<name>\THEME.CFG. Only your account sees it. - Everyone's:
Z:\MIZU\THEMES\<name>\THEME.CFG, installed by a package.
Settings > Appearance lists both, beside Retro and Kasumi. Install a theme there copies a
folder you pick (by its THEME.CFG) into your own themes. A folder's name may use letters,
digits, spaces, - and _. To share a theme, share its folder (a .zip of it is
fine; unpack it, then install).
The smallest one
format=1
name=Plum
base=kasumi
[light]
accent=#8E44AD
[dark]
accent=#B07CC6
Everything you don't give comes from the base. Settings shows the theme by its name.
The file
- One
key=valuea line. Spaces around=are fine. A line starting with#is a remark. [sections]group the lines. Lines before the first section are the theme's own:format,name,base.- At most 8 KB, and 256 bytes a line.
- Colours are
#RRGGBBor#RRGGBBAA(AA is how opaque: FF solid). - Anything Mizu doesn't know, out of range or written wrongly is skipped, and the base's value is used. One bad line never spoils the rest.
Before any section
| Key | Value |
|---|---|
format | The file format's version, 1 today. Leave it out and it's 1. A file with a higher number is read all the same (what this Mizu doesn't know is skipped), and Settings shows "(for a newer Mizu)" after its name. |
name | What Settings calls it. Without it, the folder's name. |
base | kasumi or retro: the look that draws it.
Required: a file without it isn't offered. |
Colours: [light] and [dark]
[light] is used with the light scheme, [dark] with the dark one (the switch in
Settings > Appearance). Each line names a role, what the colour is for:
| Role | What it colours |
|---|---|
window.bg | A window's contents (the paper) |
surface.bg | Faces: cards, bars, buttons |
text.primary / text.secondary | Text; greyed text and faint lines |
accent | The accent: chosen things, switches, links |
accent.water | The accent's second, lighter colour (made from it when not given) |
accent.text | Text on the accent (white, or dark on a pale accent, when not given) |
title.bg / title.text | The active window's title bar |
title.idle.bg / title.idle.text | Other windows' title bars |
bevel.light / bevel.shadow / bevel.dark | Retro's raised and sunken edges |
desktop.top / desktop.bottom | The desktop with no wallpaper |
border / separator / edge | Lines: around things, between them, and the fine light line inside a window's edge |
selection.bg / selection.text | Selected text and rows |
shadow / material.tint | A window's shadow; the tint over the blurred wallpaper (Kasumi) |
focus | The keyboard's ring |
tooltip.bg / tooltip.text | Tips and balloons |
danger / warning / info / question /
success / attention | Signs and states: delete and close, warnings, information, questions, done, busy |
warning.text / sign.text | The mark on a warning; the mark on the other signs, and badges' numbers |
link | Links in text (the accent when not given) |
knob | Switches' and sliders' knobs |
progress | A bar's fill, such as how full a drive is |
A role can also have a colour for a state: .hover (the pointer over it),
.pressed, .disabled and .focus, for example
accent.hover=#9B59B6. Mizu moves text colours until they're readable on their ground, so a
pale text on a pale face still shows.
Shapes: [shape]
| Key | Range | Kasumi | What |
|---|---|---|---|
radius.window | 0-32 | 10 | Windows' corners |
radius.control | 0-16 | 8 | Buttons and fields (read, not applied yet) |
radius.item | 0-16 | 6 | Rows and menu items (read, not applied yet) |
radius.dock | 0-32 | 20 | The dock (read, not applied yet) |
material.blur | 0-96 | 48 | How blurred the wallpaper is behind bars |
material.saturation | 0-300 | 120 | Its colour, in percent |
material.opacity | 0-236 | 60 | The face over it, of 256 |
motion.enter / motion.exit | 0-1000 | 170 / 140 | How long things take to appear and go, in ms |
space.scale | five numbers | 4 8 12 16 24 | Spacing, smallest first |
shadow.active / shadow.idle | up to 4 layers | The active
window's and the others' shadows: x y blur #colour per layer, layers split by
; (0 1 2 #0000001A; 0 8 24 #00000029) |
Sizes: [metrics]
| Key | Range | Kasumi | What |
|---|---|---|---|
topbar.height | 24-40 | 30 | The top bar (its islands 6 less) |
menu.row | 18-32 | 20 | A menu's row |
dock.icon | 32-64 | 40 | An icon in the dock (scaled when there is no icon of that size) |
dock.cell | 40-80 | 50 | An icon's place; the dock is 12 taller |
dock.pad | 4-16 | 8 | The dock's ends |
dock.magnify | 32-96 | 64 | An icon under the pointer |
font.size | 12-14 | 13 | Text, in pixels |
font.heading | 20-28 | 24 | Headings |
Title bars, borders, the 16-pixel text line and buttons keep their sizes: apps lay out their windows by
them. That's why font.size stops at 14.
The shell: [shell]
| Key | Values |
|---|---|
title.buttons | rings, capsule, classic,
minimal |
title.side | left, right: where the buttons sit |
title.style | merged (the title bar is part of the window) or
bar |
title.align | center, left |
shell.layout | dock or taskbar |
marks.running | drop, dot, none: the mark
under a running program |
marks.ripple | on, off |
font.ui, font.ui.bold, icons, cursors,
wallpaper and sounds are read, but not applied yet: a theme can't bring its own
font, icons, cursors, wallpaper or sounds today.
When a theme can't be read
If the theme you chose is missing, or its THEME.CFG can't be read or has no
base, Mizu starts with Kasumi (or Retro) and a notification says so. Your choice is kept: fix
the file, sign out and in, and the theme is back.
A fuller example
format=1
name=Plum Big
base=kasumi
[light]
accent=#8E44AD
accent.hover=#9B59B6
window.bg=#FCFAFD
selection.bg=#E8DAEF
[dark]
accent=#B07CC6
[shape]
radius.window=14
radius.control=10
shadow.active=0 2 4 #00000022; 0 12 32 #00000033
[metrics]
topbar.height=36
dock.icon=48
dock.cell=60
font.size=14
[shell]
title.buttons=capsule
marks.running=dot