home *** CD-ROM | disk | FTP | other *** search
- <duixml>
-
- <stylesheets>
-
- <!-- ToolTip theme information -->
- <style
- resid = 'FlyoutStyleSheet'
- >
- <element
- background = 'argb(0,0,0,0)'
- />
- <if
- class = "FlyoutElement"
- >
- <element
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_BODY, 0, TMT_TEXTCOLOR)'
- background = 'themeable(dtb(Flyout, FLYOUT_WINDOW, 0),window)'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_BODY, 0)'
- />
- </if>
- <if
- class = "ToolTipElement"
- >
- <element
- foreground = 'themeable(gtc(Tooltip, TTP_STANDARD, 0, TMT_TEXTCOLOR), infotext)'
- background = 'themeable(dtb(Tooltip, TTP_STANDARD, 0), infobackground)'
- />
- </if>
- </style>
-
- <!-- Text elements (colors) -->
- <style
- resid = 'TextLinkSS'
- >
- <button
- foreground = 'themeable(gtc(Link, LP_HYPERLINK, HLS_NORMALTEXT, TMT_TEXTCOLOR), HotLight)'
- font = "themeable(gtf(Link, LP_HYPERLINK, HLS_NORMALTEXT),'9;Normal;None;Segoe UI')"
- AccRole = 'link'
- Accessible = 'true'
- cursor = 'hand'
- ContentAlign = 'WrapLeft'
- />
- <if
- keyfocused = 'true'
- >
- <button
- contentalign = 'WrapLeft | focusrect'
- />
- </if>
-
- <if
- mousefocused = 'true'
- >
- <button
- font = "themeable(gtf(Link, LP_HYPERLINK, HLS_LINKTEXT),'9;Normal;Underline;Segoe UI')"
- foreground = 'themeable(gtc(Link, LP_HYPERLINK, HLS_LINKTEXT, TMT_TEXTCOLOR), HotLight)'
- />
- </if>
- </style>
-
- <style
- resid = 'BattEntrySS'
- >
- <if
- keyfocused = 'true'
- >
- <element
- contentalign = 'focusrect'
- />
- </if>
- </style>
-
- <!-- Scroll viewer -->
- <style
- resid = 'scrollParts'
- >
- <if
- class = 'ScrollViewer'
- >
- <CCHScrollBar
- layoutpos = 'ninebottom'
- accessible = 'true'
- />
- <CCVScrollBar
- layoutpos = 'nineright'
- accessible = 'true'
- />
- <viewer
- layoutpos = 'nineclient'
- />
- </if>
- </style>
-
- </stylesheets>
-
- <!--
- Main DUI layout for the Flyout/Tooltip
- -->
- <PowerFlyout
- resid = 'main'
- Layout = 'BorderLayout()'
- Sheet = 'FlyoutStyleSheet'
- >
- <element
- id = 'atom(mainwindow)'
- LayoutPos = 'top'
- Layout = 'BorderLayout()'
- class = 'ToolTipElement'
- padding = 'rect(5rp, 5rp, 5rp, 0rp)'
- >
- <element
- id = 'atom(CompositeBattery)'
- LayoutPos = 'top'
- Layout = 'BorderLayout()'
- />
- <element
- Layout = 'BorderLayout()'
- LayoutPos = 'client'
- id = 'atom(body)'
- />
- </element>
-
- <element
- Layout = 'BorderLayout()'
- LayoutPos = 'bottom'
- id = 'atom(links)'
- />
- </PowerFlyout>
-
- <!-- Tooltip -->
- <element
- resid = 'tooltip'
- Layoutpos = 'top'
- Layout = 'borderlayout()'
- >
- <element
- layout = 'borderlayout()'
- padding = 'rect(5rp, 5rp, 5rp, 5rp)'
- layoutpos = 'top'
- >
-
- <!--
- "Current power plan: "
- #define IDS_RTT_CURRENTPOWERPLAN 170
- -->
- <element
- id = 'atom(currentplanlabel)'
- AccName = 'resstr(170)'
- AccRole = 'statictext'
- Accessible = 'true'
- Content = 'resstr(170)'
- layoutpos = 'left'
- contentalign = 'WrapLeft'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_BODY, 2)'
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_BODY, 2, TMT_TEXTCOLOR)'
- />
-
- <!--
- Display the text of the active power plan
- -->
- <element
- id = 'atom(currentplan)'
- AccRole = 'text'
- Accessible = 'true'
- layoutpos = 'client'
- contentalign = 'WrapLeft'
- font = 'themeable(gtf(Flyout, FLYOUT_LABEL, 3), "9;Bold;None;Segoe UI")'
- foreground = 'themeable(gtc(Flyout, FLYOUT_LABEL, 3, TMT_TEXTCOLOR), WindowText)'
- />
- </element>
-
- <!--
- Mismatched power plan warning tag
- -->
- <element
- id = 'atom(warningmsg)'
- Layout = 'BorderLayout()'
- layoutpos = 'top'
- >
-
- <!-- Warning Icon -->
- <element
- id = 'atom(warningicon)'
- content = 'icon(101, sysmetric(SM_CXSMICON), sysmetric(SM_CYSMICON), library(user32.dll))'
- layoutpos = 'left'
- AccRole = 'graphic'
- Accessible = 'true'
- padding = 'rect(5rp,5rp,5rp,5rp)'
- />
-
- <!--
- Warning Text
- IDS_RTT_SYSTEMPERFORMANCE 172 "Your current plan may reduce system performance."
- IDS_RTT_BATTERYLIFE 173 "Your current plan may reduce battery life."
- -->
- <element
- id = 'atom(warningtext)'
- layoutpos = 'client'
- AccRole = 'statictext'
- Accessible = 'true'
- contentalign = 'wrapleft'
- padding = 'rect(10rp,5rp,10rp,5rp)'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_BODY, 0)'
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_BODY, 0, TMT_TEXTCOLOR)'
- />
- </element>
- </element>
-
- <element
- resid = 'flyout'
- LayoutPos = 'top'
- Layout = 'BorderLayout()'
- >
- <scrollviewer
- id = 'atom(battviewer)'
- LayoutPos = 'top'
- xscrollable = 'false'
- yscrollable = 'true'
- xbarvisibility = 'never'
- ybarvisibility = 'asneeded'
- sheet = 'ScrollParts'
- >
- <selector
- id = 'atom(battgroup)'
- AccName = 'resstr(197)'
- Accessible = 'true'
- layoutpos = 'nineclient'
- Layout = 'BorderLayout()'
- padding = 'rect(5rp, 2rp, 5rp, 2rp)'
- Sheet = 'FlyoutStyleSheet'
- >
-
- <!-- Dynamic list of individual batteries go here. -->
-
- </selector>
-
- </scrollviewer>
-
- <element
- Layoutpos = 'top'
- Layout = 'FillLayout()'
- Padding = 'rect(5rp, 4rp, 5rp, 2rp)'
- >
- <element
- id = 'atom(divider)'
- Accessible = 'true'
- AccRole = 'graphic'
- Height = '2'
- background = 'themeable(dtb(Flyout, FLYOUT_DIVIDER, 0), gradient(threedhighlight,threedface,threedshadow,4))'
- />
- </element>
-
- <!--
- "Select a power plan:"
- #define IDS_FLYOUT_SELECTPLAN 192
- -->
- <element
- id = 'atom(selectplan)'
- Layoutpos = 'top'
- AccRole = 'statictext'
- Accessible = 'true'
- AccName = 'resstr(192)'
- content = 'resstr(192)'
- contentalign = 'WrapLeft'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_BODY, 0)'
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_BODY, 0, TMT_TEXTCOLOR)'
- Padding = 'rect(10rp,3rp,5rp,3rp)'
- />
-
- <!--
- "Why can't I change my power plan?"
- #define IDS_FLYOUT_LUA_HELP 196
- -->
- <button
- id = 'atom(helplua)'
- layoutpos = 'top'
- AccRole = 'statictext'
- AccName = 'resstr(196)'
- content = 'resstr(196)'
- Padding = 'rect(10rp,3rp,5rp,3rp)'
- sheet = 'TextLinkSS'
- />
-
- <!--
- Group of radio buttons.
- #define IDS_FLYOUT_POWERSCHEMES 194
- -->
- <element
- layoutpos = 'top'
- padding = 'rect(5rp, 1rp, 5rp, 5rp)'
- layout = 'BorderLayout()'
- >
- <SelectorNoDefault
- id = 'atom(radiogroup)'
- Accessible = 'true'
- AccName = 'resstr(194)'
- layoutpos = 'top'
- layout = 'BorderLayout()'
- padding = 'rect(10rp,0rp,10rp,5rp)'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_BODY, 0)'
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_BODY, 0, TMT_TEXTCOLOR)'
- background = 'themeable(dtb(FLYOUTSTYLE, FLYOUT_WINDOW, 0),window)'
- >
-
- <!-- Dynamic contents go here -->
-
- </SelectorNoDefault>
- </element>
- </element>
-
- <!-- Link Area -->
- <element
- resid = 'linkarea'
- Layoutpos = 'top'
- Layout = 'BorderLayout()'
- >
- <element
- layoutpos = 'top'
- layout = 'borderlayout()'
- >
- <element
- height = '2'
- background = 'themeable(dtb(Flyout, FLYOUT_DIVIDER, 0), gradient(threedhighlight,threedface,threedshadow,4))'
- />
- </element>
-
- <element
- Layoutpos = 'top'
- Layout = 'VerticalFlowLayout(0, 2)'
- Padding = 'rect(13rp, 13rp, 13rp, 13rp)'
- background = 'themeable(dtb(Flyout, FLYOUT_LINKAREA, 0), ButtonFace)'
- >
- <!--
- "Learn how to conserve power"
- #define IDS_FLYOUT_HOWTOSAVE 191
- -->
- <button
- id = 'atom(howtosave)'
- AccName = 'resstr(191)'
- content = 'resstr(191)'
- sheet = 'TextLinkSS'
- />
-
- <!--
- "More power options"
- #define IDS_FLYOUT_MOREOPTIONS 193
- -->
- <button
- id = 'atom(launchcpl)'
- AccName = 'resstr(193)'
- content = 'resstr(193)'
- sheet = 'TextLinkSS'
- />
-
- <!--
- "Mobility Center"
- #define IDS_MOBILITYCENTER 151
- -->
- <button
- id = 'atom(launchmobctr)'
- AccName = 'resstr(151)'
- content = 'resstr(151)'
- sheet = 'TextLinkSS'
- />
- </element>
- </element>
-
- <!--
- A radio button component for the power plan
- -->
- <CCRadioButton
- resid = 'RadioEntry'
- LayoutPos = 'top'
- Accessible = 'true'
- AccRole = 'radiobutton'
- ToolTip = 'true'
- active = 'mouse|keyboard'
- padding = 'rect(0rp,2rp,0rp,3rp)'
- transparent = 'true'
- />
-
- <element
- resid = 'MainBatteryElement'
- Layout = 'BorderLayout()'
- >
-
- <!-- battery warning link -->
- <element
- id = 'atom(BatteryWarning)'
- padding = 'rect(5rp,5rp,3rp,3rp)'
- sheet = 'TextLinkSS'
- Accessible = 'true'
- AccRole = 'statictext'
- />
-
- <element
- id = 'atom(BatteryIcon)'
- LayoutPos = 'left'
- AccRole = 'graphic'
- Accessible = 'true'
- AccName = 'resstr(190)'
- padding = 'rect(5rp,5rp,5rp,5rp)'
- />
-
- <!-- battery description string -->
- <element
- id = 'atom(BatteryDescription)'
- LayoutPos = 'client'
- Accessible = 'true'
- AccRole = 'statictext'
- contentalign = 'WrapLeft'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_HEADER, 0)'
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_HEADER, 0, TMT_TEXTCOLOR)'
- padding = 'rect(1rp, 5rp, 5rp, 5rp)'
- />
-
- </element>
-
- <!--
- BattEntry consists of an optional icon, the description string,
- and an optional warning string related to the battery.
- -->
- <element
- resid = 'BatteryElement'
- sheet = 'BattEntrySS'
- Layout = 'BorderLayout()'
- active = 'mouse|keyboard'
- >
-
- <!-- battery warning link -->
- <button
- id = 'atom(BatteryWarning)'
- padding = 'rect(5rp,5rp,5rp,5rp)'
- active = 'inactive'
- sheet = 'TextLinkSS'
- Accessible = 'true'
- AccRole = 'statictext'
- LayoutPos = 'bottom'
- />
-
- <button
- id = 'atom(BatteryIcon)'
- active = 'inactive'
- LayoutPos = 'left'
- AccRole = 'graphic'
- Accessible = 'true'
- AccName = 'resstr(190)'
- padding = 'rect(5rp,5rp,5rp,5rp)'
- />
-
- <!-- battery description string -->
- <element
- id = 'atom(BatteryDescription)'
- active = 'inactive'
- LayoutPos = 'client'
- Accessible = 'true'
- AccRole = 'statictext'
- contentalign = 'WrapLeft | endellipsis'
- font = 'gtf(FLYOUTSTYLE, FLYOUT_LABEL, FLS_NORMAL)'
- foreground = 'gtc(FLYOUTSTYLE, FLYOUT_LABEL, FLS_NORMAL, TMT_TEXTCOLOR)'
- padding = 'rect(5rp, 5rp, 5rp, 5rp)'
- />
- </element>
-
- <!--
- WarningIconOverlay is a DUI graphic that represents a 16x16 icon
- to overlay over the regular battery icon.
- -->
- <element
- content = 'icon(101, sysmetric(SM_CXSMICON), sysmetric(SM_CYSMICON), library(user32.dll))'
- resid = 'WarningIconOverlay'
- LayoutPos = 'absolute'
- Padding = 'rect(5,5,5,5)'
- background = 'argb(0,255,255,255)'
- >
- </element>
-
- </duixml>
-