Windows Title Bar and Border Padding Registry Path
Windows stores user-specific theme configurations, including window border padding and title bar sizing metrics, directly within the Windows Registry. This article details the exact registry keys responsible for these interface metrics, explains how values are calculated, and shows how to locate and modify them using the Registry Editor (Regedit).
The Registry Location
All user-specific theme border padding and window title bar metrics are stored under the following Registry key:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
Because this path is located under HKEY_CURRENT_USER,
any adjustments made here apply exclusively to the currently signed-in
user account.
Key Registry Values for Borders and Title Bars
Within the WindowMetrics key, several String
(REG_SZ) values govern the dimensions of window borders and
caption bars:
- PaddedBorderWidth: Controls the thickness of the padding added to window borders (introduced in Windows Vista/7 to support Aero sizing and retained in modern Windows).
- BorderWidth: Controls the base width of standard window borders.
- CaptionHeight: Defines the height of the window title bar (caption).
- CaptionWidth: Determines the width of title bar buttons (Minimize, Maximize, Close).
- CaptionFont: A binary value
(
REG_BINARY) containing font face, size, and styling metadata for title bar text.
How Metric Values Are Calculated
The numerical values for these metrics are stored in twips (a typographic measurement equal to 1/20th of a point) and are represented as negative integers.
To calculate a specific pixel value, use the following formula:
\[\text{Registry Value} = -15 \times \text{Desired Pixels}\]
- Example for Title Bar Height: A default
CaptionHeightvalue of-330corresponds to 22 pixels (\(-330 \div -15 = 22\)). - Example for Border Padding: A default
PaddedBorderWidthvalue of-60corresponds to 4 pixels (\(-60 \div -15 = 4\)). Setting this to0removes extra border padding entirely.
How to Modify the Settings
- Press
Windows Key + R, typeregedit, and pressEnter. - Navigate to:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics. - Locate the value you wish to edit (e.g.,
PaddedBorderWidthorCaptionHeight) in the right-hand pane. - Double-click the entry and enter the new negative integer.
- Click OK.
- Sign out of your Windows account and sign back in (or restart the computer) for the changes to take effect.