# NeXTStep version

# Setup colorsets
Read $./Colorsets

DestroyDecor recreate WindowDecoration
AddToDecor WindowDecoration

+ TitleStyle Active Colorset $[infostore.cs_window_active]
+ TitleStyle InActive Colorset $[infostore.cs_window_inactive]
PipeRead 'echo "+ TitleStyle LeftJustified Height $(($[title_font_size]+$(($[title_font_size]/3)))) -- flat noinset"'

+ BorderStyle -- HiddenHandles
+ BorderStyle -- Raised

+ ButtonStyle 1 \
	ActiveUp (AdjustedPixmap $./window-active-iconify.png) \
	ActiveDown (AdjustedPixmap $./window-active-iconify-down.png) \
	Inactive (AdjustedPixmap $./window-inactive.png)

+ ButtonStyle 2 \
	ActiveUp (AdjustedPixmap $./window-active-close.png) \
	ActiveDown (AdjustedPixmap $./window-active-close-down.png) \
	Inactive (AdjustedPixmap $./window-inactive.png)

+ ButtonStyle All -- UseTitleStyle
+ ButtonStyle All -- flat

Style * HandleWidth 3, BorderWidth 3
Style * Colorset                $[infostore.cs_window_inactive], \
        BorderColorset          $[infostore.cs_window_inactiveborder], \
        HilightColorset         $[infostore.cs_window_active], \
        HilightBorderColorset   $[infostore.cs_window_activeborder]

Style * Font "xft:$[title_font]:pixelsize=$[title_font_size]:$[title_font_style]"

Style * UseDecor WindowDecoration

# Setup button functions
Include components/decorations/Buttons-nextstep

