|
|
// // ARP resource file, "themed" look //
#include "resource.h" #include <directuipp.h>
/***************************************************** * Default style sheet rules *****************************************************/
<style resid=frame> arpframe { accessible: true; accRole: 9; accName: rcstr(IDS_ARPTITLE); fontsize: sysmetric(DSM_ICONFONTSIZE); fontweight: sysmetric(DSM_ICONFONTWEIGHT); fontstyle: sysmetric(DSM_ICONFONTSTYLE); fontface: sysmetricstr(DSMS_ICONFONTFACE); background: window; foreground: windowtext; } </style>
<style resid=closepane>
element [id=atom(closepane)] { background: buttonface; padding: rect(10,10,10,10); }
button { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL); foreground: buttontext; contentalign: middlecenter; padding: rect(20,6,20,6); }
button [mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT); }
button [pressed] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED); padding: rect(21,7,19,5); }
button [enabled=false] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_DISABLED); foreground: graytext; fontstyle: shadow; }
button [keyfocused] { contentalign: middlecenter | focusrect; }
progress { borderthickness: rect(2,2,2,2); bordercolor: buttonface; borderstyle: sunken; padding: rect(1,1,1,1); margin: rect(0, 4, 0, 2); foreground: rcbmp(IDB_PROGRESS); }
</style>
<style resid=optionpane>
ARPSelector { background: dtb(handlemap(TOOLBARHTHEME), 0, 0); foreground: buttontext; padding: rect(3,3,3,3); }
element { background: argb(0,0,0,0); }
button { background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_NORMAL); margin: rect(5,6,5,6); padding: rect(6,6,6,8); }
button [keyfocused] { background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_HOT); }
button [mousefocused] { background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_HOT); }
button [pressed] { background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_PRESSED); padding: rect(7,7,5,7); }
button [selected] { background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_CHECKED); padding: rect(7,7,5,7); }
</style>
<style resid=contentpane>
element [id=atom(contentpane)] { padding: rect(10,10,10,10); }
element [id=atom(installedlistcontainer)] { borderthickness: rect(1,1,1,1); bordercolor: buttonshadow; padding: rect(0,0,0,0); }
element [id=atom(publishedlistcontainer)] { borderthickness: rect(1,1,1,1); bordercolor: buttonshadow; padding: rect(0,0,0,0); }
element [id=atom(ocsetuplistcontainer)] { borderthickness: rect(1,1,1,1); bordercolor: buttonshadow; padding: rect(0,0,0,0); }
element [id=atom(label)] { padding: rect(0,5,5,5); }
element { padding: rect(2,2,2,2); }
element [id=atom(sort)] { padding: rect(2,2,0,2); }
button { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL); foreground: buttontext; padding: rect(8,6,8,6); margin: rect(5,5,5,5); }
button [mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT); }
button [pressed] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED); padding: rect(9,7,7,5); }
button [keyfocused] { contentalign: focusrect; }
</style>
<style resid=listscroller>
scrollbar { layoutpos: ninebottom; }
scrollbar [vertical] { layoutpos: nineright; }
viewer { layoutpos: nineclient; }
thumb { background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_NORMAL); content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_NORMAL); contentalign: middlecenter; }
thumb [mousefocused] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_HOT); content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_HOT); }
thumb [captured] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_PRESSED); content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_PRESSED); }
repeatbutton [id=atom(lineup)] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPNORMAL); width: sysmetric(SM_CXVSCROLL); height: sysmetric(SM_CYVSCROLL); }
repeatbutton [id=atom(lineup)][mousefocused] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPHOT); }
repeatbutton [id=atom(lineup)][pressed] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPPRESSED); }
repeatbutton [id=atom(linedown)] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNNORMAL); width: sysmetric(SM_CXVSCROLL); height: sysmetric(SM_CYVSCROLL); }
repeatbutton [id=atom(linedown)][mousefocused] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNHOT); }
repeatbutton [id=atom(linedown)][pressed] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNPRESSED); }
repeatbutton [id=atom(pageup)] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_NORMAL); }
repeatbutton [id=atom(pageup)][mousefocused] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_HOT); }
repeatbutton [id=atom(pageup)][pressed] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_PRESSED); }
repeatbutton [id=atom(pagedown)] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_NORMAL); }
repeatbutton [id=atom(pagedown)][mousefocused] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_HOT); }
repeatbutton [id=atom(pagedown)][pressed] { background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_PRESSED); }
scrollviewer[id=atom(clientscroller)] { borderstyle: solid; borderthickness: rect(1,1,1,1); bordercolor: buttonshadow; margin: rect(0,10rp,0,0); }
</style>
<style resid=itemlist>
arpitem { padding: rect(1,1,1,3); }
arpitem [selected] { background: buttonface; foreground: buttontext; bordercolor: buttontext; }
arpitem [keyfocused][selected] { background: highlight; foreground: highlighttext; bordercolor: highlighttext; }
element { padding: rect(1,1,1,1); }
element [id=atom(title)][selected] { fontweight: extrabold; }
button { padding: rect(1,1,1,1); contentalign: wrapright; }
button [id=atom(supinfo)] { contentalign: wrapleft; }
button [selected] { fontstyle: underline; cursor: hand; }
button [id=atom(supinfo)][keyfocused] { contentalign: wrapleft|focusrect; }
button [keyfocused] { fontstyle: none; contentalign: wrapright|focusrect; }
</style>
<style resid=itemaction>
button { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL); foreground: buttontext; padding: rect(8,6,8,6); margin: rect(5,5,5,5); }
button [mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT); }
button [pressed] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED); padding: rect(9,7,7,5); }
button [keyfocused] { contentalign: focusrect; }
</style>
<style resid=helppopup>
arphelp { accessible: true; accRole: 9; background: infobackground; foreground: infotext; padding: rect(6,6,6,6); fontsize: sysmetric(DSM_ICONFONTSIZE); fontweight: sysmetric(DSM_ICONFONTWEIGHT); fontstyle: sysmetric(DSM_ICONFONTSTYLE); fontface: sysmetricstr(DSMS_ICONFONTFACE); }
element [id=atom(divider)] { background: infotext; }
element [id=atom(rdivider)] { background: infotext; }
element { background: argb(0,0,0,0); }
element [id=atom(title)] { fontsize: sysmetric(DSM_CAPTIONFONTSIZE); fontweight: sysmetric(DSM_CAPTIONFONTWEIGHT); fontstyle: sysmetric(DSM_CAPTIONFONTSTYLE); fontface: sysmetricstr(DSMS_CAPTIONFONTFACE); }
button [Enabled] { foreground: hotlight; fontstyle: underline; }
button [MouseFocused] { cursor: hand; }
button [class="winstyle"] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL); foreground: buttontext; padding: rect(8,6,8,6); margin: rect(5,5,5,5); cursor: arrow; fontstyle: none; }
button [class="winstyle"][mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT); } button [class="winstyle"][pressed] { background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED); padding: rect(9,7,7,5); }
button [keyfocused] { contentalign: focusrect; }
ARPSupportItem { ContentAlign: WrapLeft; }
</style>
<style resid=pickapppane>
// top padding makes the baseline of the element line up with the combobox element [class="clientcaption"] { padding: rect(0,4rp,8rp,0); }
element [class="clientcaption"][id=atom(rowheader)] { fontweight: bold; }
// top padding makes the baseline of the element line up with the combobox // left padding does the same for horizontal positioning element [class="clientstatic"] { padding: rect(3rp,4rp,0,0); }
// Separates clients in the OEM/MS/NonMS section element [class="interrowspacer"] { height: 6rp; }
// Provides spacing around the introductory blurb text for each section element [class="blurbtext"] { padding:rect(0,8rp,8rp,8rp); }
// Provides spacing at the bottom of the section // (Do not give any top padding or that will put the white gradient // in the wrong place.) element [id=atom(clipped)] { padding:rect(0,0,0,4rp); }
element [id=atom(radiobutton)] { width: sysmetric(SM_CXMENUCHECK); height: sysmetric(SM_CYMENUCHECK); margin: rect(0,6rp,8rp,6rp); layoutpos: left; background: dtb(handlemap(BUTTONHTHEME), BP_RADIOBUTTON, RBS_UNCHECKEDNORMAL); }
element [id=atom(radiobutton)][mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_RADIOBUTTON, RBS_UNCHECKEDHOT); }
element [id=atom(radiobutton)][selected] { background: dtb(handlemap(BUTTONHTHEME), BP_RADIOBUTTON, RBS_CHECKEDNORMAL); }
element [id=atom(radiobutton)][selected][mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_RADIOBUTTON, RBS_CHECKEDHOT); }
element [id=atom(radiotext)] { layoutpos: left; contentalign: middleleft; }
// The purpose of the "radioindent" class is to get the text inside // each expando to line up exactly with the text next to the radio button // in the header. element [class="radioindent"] { layoutpos: left; padding: rect(8rp,0,0,0); }
element [id=atom(checkbutton)] { width: sysmetric(SM_CXMENUCHECK); height: sysmetric(SM_CYMENUCHECK); margin: rect(0,6rp,8rp,6rp); layoutpos: left; background: dtb(handlemap(BUTTONHTHEME), BP_CHECKBOX, CBS_UNCHECKEDNORMAL); }
element [id=atom(checkbutton)][selected] { background: dtb(handlemap(BUTTONHTHEME), BP_CHECKBOX, CBS_CHECKEDNORMAL); }
element [id=atom(checkbutton)][mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_CHECKBOX, CBS_UNCHECKEDHOT); }
element [id=atom(checkbutton)][selected][mousefocused] { background: dtb(handlemap(BUTTONHTHEME), BP_CHECKBOX, CBS_CHECKEDHOT); }
element [id=atom(checkbutton)][enabled=false] { background: dtb(handlemap(BUTTONHTHEME), BP_CHECKBOX, CBS_UNCHECKEDDISABLED); }
element [id=atom(checkbutton)][selected][enabled=false] { background: dtb(handlemap(BUTTONHTHEME), BP_CHECKBOX, CBS_CHECKEDDISABLED); }
element [id=atom(checktext)] { layoutpos: client; contentalign: wrapleft; }
element [id=atom(checktext)][enabled=false] { foreground: graytext; }
autobutton [id=atom(arrow)] { layoutpos: right; content: rcbmp(IDB_DOWN,2,255,0,0,0,0,handlemap(SHELLSTYLEHINSTANCE)); }
autobutton [id=atom(arrow)][selected] { content: rcbmp(IDB_UP,2,255,0,0,0,0,handlemap(SHELLSTYLEHINSTANCE)); }
autobutton [id=atom(arrow)][mousefocused] { content: rcbmp(IDB_DOWNHOT,2,255,0,0,0,0,handlemap(SHELLSTYLEHINSTANCE)); }
autobutton [id=atom(arrow)][selected][mousefocused] { content: rcbmp(IDB_UPHOT,2,255,0,0,0,0,handlemap(SHELLSTYLEHINSTANCE)); }
// need to add this padding to avoid colliding with the focus rect autobutton [class="padded"] { padding: rect(8rp,2rp,8rp,2rp); }
button [keyfocused] { contentalign: focusrect; }
autobutton [keyfocused] { contentalign: focusrect; }
expando { animation: rectanglev | s | fast; }
expando [selected] { background: buttonface; foreground: buttontext; }
clipper { alpha: 0; animation: alpha | s | fast; }
clipper [expanded] { alpha: 255; }
// This controls the spacing of the rows in the custom client section element [class="customclientitem"] { padding: rect(20rp,6rp,8rp,6rp); }
gradientline { animation: rectanglev | s | fast; height: 1rp; }
gradientline [class="intercategory"] { foreground: highlight; }
gradientline [class="interheader"] { foreground: buttonface; margin: rect(0,1rp,0,1rp); }
gradientline [class="innerheader"] { foreground: buttonface; }
gradientline [class="innerheader"][selected] { foreground: window; }
</style>
|