Klassy provides configurable window shadows to enhance depth perception and window separation. Shadows can be customized for size, intensity, and color.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paulmcauley/klassy/llms.txt
Use this file to discover all available pages before exploring further.
Shadow Size
Determines the size of the drop shadow around windows.
Size Options
Size Options
No shadow is rendered. Creates a flat appearance with no depth.
Small shadow with minimal spread. Subtle depth effect.
Medium-sized shadow. Balanced visibility and subtlety.
Default. Large shadow with good visibility. Recommended for most use cases.
Very large shadow with extended spread. Maximum depth perception.
Shadow Strength
Controls the opacity/intensity of the shadow. Higher values create darker, more prominent shadows.
- Min: 25 (very faint shadow)
- Max: 255 (maximum darkness)
- Default: 255
This value represents alpha transparency where 255 is fully opaque. The value is internally converted to percentage (0-100%) in the UI.
Shadow Color
RGB color of the window shadow. Typically black or dark gray for natural-looking shadows.
- Format: “R, G, B” where each component is 0-255
- Default: “0, 0, 0” (black)
Color Usage
Color Usage
While black is the most common shadow color, you can experiment with colored shadows for artistic effects:
- Black (0, 0, 0) - Standard shadow, works in all contexts
- Dark Gray (32, 32, 32) - Softer shadow for light themes
- Dark Blue (0, 0, 64) - Cool shadow tone
- Custom colors - Match your theme or create unique effects
Shadow Overlap
Shadows have a built-in overlap with window borders defined by the constantDecoration_Shadow_Overlap = 3 pixels. This creates a smooth transition between the window border and shadow.
Shadow Interaction with Other Settings
The shadow color is also used by the
WindowOutlineShadowColor window outline style. Changing the shadow color will affect both shadows and outlines if that style is selected.Visual Configuration
Shadow settings can be configured in the Klassy Settings application under the “Shadow Style” dialog. The interface provides:- Shadow size dropdown
- Shadow strength slider (displayed as percentage)
- Color picker for shadow color
- Real-time preview of changes
Performance Considerations
Shadow Performance
Shadow Performance
Implementation Details
Shadows in Klassy are implemented using KDecoration’s shadow system. The shadow strength value (0-255) represents the alpha channel of the shadow color and is converted to percentage (0-100) in the user interface for easier adjustment. The internal conversion formula:Related Settings
- Window Outline - Window outline styles including shadow color outline
- Button Styles - Button colors can complement shadow appearance