aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/Manual/BafThmutilTesting/theme
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-06-04 14:23:20 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-06-04 14:57:11 -0500
commit1d3bd04d4aca82979b08a955dc0bf61eb80f2e66 (patch)
tree2d8c998916fcf4991b33dab114d29fd44b02839b /src/test/burn/TestData/Manual/BafThmutilTesting/theme
parent1f85dac530dee933457e99438fd1c82485a2a48e (diff)
downloadwix-1d3bd04d4aca82979b08a955dc0bf61eb80f2e66.tar.gz
wix-1d3bd04d4aca82979b08a955dc0bf61eb80f2e66.tar.bz2
wix-1d3bd04d4aca82979b08a955dc0bf61eb80f2e66.zip
Add a manual test bundle for testing BAFunctions and thmutil.
Diffstat (limited to 'src/test/burn/TestData/Manual/BafThmutilTesting/theme')
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128.pngbin0 -> 1484 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_focus.pngbin0 -> 1420 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_hover.pngbin0 -> 2312 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_selected.pngbin0 -> 1863 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/16x16.pngbin0 -> 206 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256.pngbin0 -> 3208 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_focus.pngbin0 -> 3698 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_hover.pngbin0 -> 5171 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_selected.pngbin0 -> 5458 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/32x32.pngbin0 -> 243 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64.pngbin0 -> 372 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_focus.pngbin0 -> 330 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_hover.pngbin0 -> 328 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_selected.pngbin0 -> 327 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/BafThmUtilTestingTheme.xml137
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar.bmpbin0 -> 66 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar_reverse.bmpbin0 -> 66 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_opaque.bmpbin0 -> 262198 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.bmpbin0 -> 262198 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.pngbin0 -> 1663 bytes
-rw-r--r--src/test/burn/TestData/Manual/BafThmutilTesting/theme/theme.rc20
21 files changed, 157 insertions, 0 deletions
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128.png
new file mode 100644
index 00000000..4dfceeba
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_focus.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_focus.png
new file mode 100644
index 00000000..2caffb30
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_focus.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_hover.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_hover.png
new file mode 100644
index 00000000..8242b0d1
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_hover.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_selected.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_selected.png
new file mode 100644
index 00000000..7355fc06
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/128x128_selected.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/16x16.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/16x16.png
new file mode 100644
index 00000000..52975ac0
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/16x16.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256.png
new file mode 100644
index 00000000..6924ec48
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_focus.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_focus.png
new file mode 100644
index 00000000..8cc141b2
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_focus.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_hover.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_hover.png
new file mode 100644
index 00000000..a1cff210
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_hover.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_selected.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_selected.png
new file mode 100644
index 00000000..184c1f78
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/256x256_selected.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/32x32.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/32x32.png
new file mode 100644
index 00000000..01d621b3
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/32x32.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64.png
new file mode 100644
index 00000000..697274f9
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_focus.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_focus.png
new file mode 100644
index 00000000..7bd5b2ca
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_focus.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_hover.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_hover.png
new file mode 100644
index 00000000..88b2e8c2
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_hover.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_selected.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_selected.png
new file mode 100644
index 00000000..39e75799
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/64x64_selected.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/BafThmUtilTestingTheme.xml b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/BafThmUtilTestingTheme.xml
new file mode 100644
index 00000000..0d0dabf5
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/BafThmUtilTestingTheme.xml
@@ -0,0 +1,137 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4
5<Theme xmlns="http://wixtoolset.org/schemas/v4/thmutil">
6 <Font Id="Default" Height="-12" Weight="500" Foreground="windowtext" Background="window">Segoe UI</Font>
7 <Image Id="star_transparent.bmp" ImageResource="2" />
8 <Image Id="star_opaque.bmp" ImageResource="3" />
9 <Image Id="star_transparent.png" ImageResource="4" />
10 <Image Id="square_default" ImageResource="5">
11 <AlternateResolution ImageResource="6" />
12 <AlternateResolution ImageResource="7" />
13 <AlternateResolution ImageResource="8" />
14 <AlternateResolution ImageResource="9" />
15 </Image>
16 <Image Id="square_focus" ImageResource="13">
17 <AlternateResolution ImageResource="14" />
18 <AlternateResolution ImageResource="15" />
19 </Image>
20 <Image Id="square_hover" ImageResource="19">
21 <AlternateResolution ImageResource="20" />
22 <AlternateResolution ImageResource="21" />
23 </Image>
24 <Image Id="square_selected" ImageResource="25">
25 <AlternateResolution ImageResource="26" />
26 <AlternateResolution ImageResource="27" />
27 </Image>
28 <Image Id="progressbar" ImageResource="30" />
29 <Image Id="progressbar_reverse" ImageResource="31" />
30
31 <Window Width="600" Height="450" FontId="Default" Caption="BafThmUtilTestingTheme" HexStyle="10cf0000" AutoResize="yes">
32 <ImageList Name="Stars">
33 <ImageListItem ImageResource="2" />
34 <ImageListItem ImageResource="3" />
35 <ImageListItem ImageResource="4" />
36 </ImageList>
37 <Page Name="Transparency">
38 <Label X="6" Y="6" Width="-6" Height="94" FontId="Default">
39 This page has three versions of an image. The top image is a bitmap with a transparent background, the yellow star should be visible but its black background should not (this is currently broken). The middle image is the same bitmap except the black background is fully opaque so the yellow star should be visible on a black background. The bottom image in a PNG version of the top image and should look exactly the same.
40 </Label>
41 <ImageControl X="6" Y="106" Width="64" Height="64" ImageId="star_transparent.bmp" />
42 <ImageControl X="6" Y="176" Width="64" Height="64" ImageId="star_opaque.bmp" />
43 <ImageControl X="6" Y="246" Width="64" Height="64" ImageId="star_transparent.png" />
44 <Button Name="ListViewButton" X="-183" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default">
45 <Text>Next</Text>
46 <ChangePageAction Page="ListView" />
47 </Button>
48 </Page>
49 <Page Name="ListView">
50 <Label X="6" Y="6" Width="-6" Height="18" FontId="Default">
51 This page is for testing ListView.
52 </Label>
53 <ListView Name="ListViewTopLeft" X="6" Y="30" Width="288" Height="176" FontId="Default" HexStyle="00" ImageList="Stars">
54 <Column Width="100">TL One</Column>
55 <Column Width="100">TL Two</Column>
56 <Column Width="88">TL Three</Column>
57 </ListView>
58 <ListView Name="ListViewTopRight" X="300" Y="30" Width="-11" Height="176" FontId="Default" HexStyle="01" ImageListGroupHeader="Stars">
59 <Column Width="100">TR One</Column>
60 <Column Width="100">TR Two</Column>
61 <Column Width="88" Expands="yes">TR Exp</Column>
62 </ListView>
63 <ListView Name="ListViewBottomLeft" X="6" Y="212" Width="288" Height="176" FontId="Default" HexStyle="02" ImageListSmall="Stars">
64 <Column Width="100">BL One</Column>
65 <Column Width="100">BL Two</Column>
66 <Column Width="88">BL Three</Column>
67 </ListView>
68 <ListView Name="ListViewBottomRight" X="300" Y="212" Width="-11" Height="176" FontId="Default" HexStyle="03">
69 <Column Width="100">BR One</Column>
70 <Column Width="100">BR Two</Column>
71 <Column Width="88" Expands="yes">BR Exp</Column>
72 </ListView>
73 <Button Name="ListViewBackButton" X="-269" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default">
74 <Text>Back</Text>
75 <ChangePageAction Page="Transparency" />
76 </Button>
77 <Button Name="ButtonButton" X="-183" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default">
78 <Text>Next</Text>
79 <ChangePageAction Page="Button" />
80 </Button>
81 </Page>
82 <Page Name="Button">
83 <Label X="6" Y="6" Width="-6" Height="132" FontId="Default">
84 This page is for testing graphical buttons. The left image is 16x16 at 100% scaling, the middle image is 32x32 at 100% scaling. The images for the buttons display their dimensions, so the left should be 16x16 at 100% but 32x32 at 200%. The right button starts at 32x32 at 100%, but grows and shrinks with the window and its image should also change.
85
86There are currently four states for a button: default, focus, hover, and selected (in that priority order). There should be a different image for each state, although the left button should have a focus rectangle over the default image since it didn't specify an image for the focused state.
87 </Label>
88 <Button Name="Square16Button" X="6" Y="140" Width="16" Height="16" FontId="Default" TabStop="yes">
89 <ButtonImage ImageId="square_default" />
90 <ButtonHoverImage ImageId="square_hover" />
91 <ButtonSelectedImage ImageId="square_selected" />
92 </Button>
93 <Button Name="Square32Button" X="54" Y="140" Width="32" Height="32" FontId="Default" TabStop="yes">
94 <ButtonImage ImageId="square_default" />
95 <ButtonFocusImage ImageId="square_focus" />
96 <ButtonHoverImage ImageId="square_hover" />
97 <ButtonSelectedImage ImageId="square_selected" />
98 </Button>
99 <Button Name="SquareExpandButton" X="92" Y="140" Width="-476" Height="-278" FontId="Default" TabStop="yes">
100 <ButtonImage ImageId="square_default" />
101 <ButtonFocusImage ImageId="square_focus" />
102 <ButtonHoverImage ImageId="square_hover" />
103 <ButtonSelectedImage ImageId="square_selected" />
104 </Button>
105 <Button Name="ButtonBackButton" X="-269" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default">
106 <Text>Back</Text>
107 <ChangePageAction Page="ListView" />
108 </Button>
109 <Button Name="ProgressbarButton" X="-183" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default">
110 <Text>Next</Text>
111 <ChangePageAction Page="Progressbar" />
112 </Button>
113 </Page>
114 <Page Name="Progressbar">
115 <Label X="6" Y="6" Width="-6" Height="94" FontId="Default">
116 This page has two progress bars. The top progress bar is a standard control, the bottom one is custom drawn from an image. The bottom one should have its left side one pixel wide as black, the right side one pixel wide as grey, the progress as green, and the remaining as blue. The colors should be reversed when the progress goes backward (this is a way to test different colors, not a standard feature of thmutil).
117 </Label>
118 <Progressbar Name="StandardProgressBar" X="6" Y="106" Width="-6" Height="23" />
119 <Progressbar Name="ImageProgressBar" X="6" Y="141" Width="-6" Height="23">
120 <ProgressbarImage ImageId="progressbar" />
121 <ProgressbarImage ImageId="progressbar_reverse" />
122 </Progressbar>
123 <Button Name="ProgressbarBackButton" X="-269" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default">
124 <Text>Back</Text>
125 <ChangePageAction Page="Button" />
126 </Button>
127 </Page>
128 <Button Name="StartButton" X="-97" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default" Visible="yes">
129 <Text>Start</Text>
130 <ChangePageAction Page="Transparency" />
131 </Button>
132 <Button Name="CloseButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="Default" Visible="yes">
133 <Text>ThemeClose</Text>
134 <CloseWindowAction />
135 </Button>
136 </Window>
137</Theme>
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar.bmp b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar.bmp
new file mode 100644
index 00000000..2bab3944
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar.bmp
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar_reverse.bmp b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar_reverse.bmp
new file mode 100644
index 00000000..6fedd05e
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/progressbar_reverse.bmp
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_opaque.bmp b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_opaque.bmp
new file mode 100644
index 00000000..230d958c
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_opaque.bmp
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.bmp b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.bmp
new file mode 100644
index 00000000..6596bcff
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.bmp
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.png b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.png
new file mode 100644
index 00000000..2f018763
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/star_transparent.png
Binary files differ
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/theme/theme.rc b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/theme.rc
new file mode 100644
index 00000000..808d29d5
--- /dev/null
+++ b/src/test/burn/TestData/Manual/BafThmutilTesting/theme/theme.rc
@@ -0,0 +1,20 @@
11 RCDATA "BafThmutilTestingTheme.xml"
22 RCDATA "star_transparent.bmp"
33 RCDATA "star_opaque.bmp"
44 RCDATA "star_transparent.png"
55 RCDATA "16x16.png"
66 RCDATA "32x32.png"
77 RCDATA "64x64.png"
88 RCDATA "128x128.png"
99 RCDATA "256x256.png"
1013 RCDATA "64x64_focus.png"
1114 RCDATA "128x128_focus.png"
1215 RCDATA "256x256_focus.png"
1319 RCDATA "64x64_hover.png"
1420 RCDATA "128x128_hover.png"
1521 RCDATA "256x256_hover.png"
1625 RCDATA "64x64_selected.png"
1726 RCDATA "128x128_selected.png"
1827 RCDATA "256x256_selected.png"
1930 RCDATA "progressbar.bmp"
2031 RCDATA "progressbar_reverse.bmp" \ No newline at end of file