Commit Graph

37 Commits

Author SHA1 Message Date
Zhiyi Zhang ddadd8bd76 light.msstyles: Remove Classic Blue variant.
The Classic Blue theme has only system colors and doesn't contain bitmaps. Such classic themes
should be stored in a .theme file instead of a .msstyles file. While it looks mostly alright when
using the theme, some applications fail to draw elements because they consider theming active as
IsThemeActive() returns TRUE but OpenThemeData() fails.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-01 10:35:59 +01:00
Alexandre Julliard 91db4290ca light.msstyles: Build in data-only mode.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Zhiyi Zhang 6255d92a60 light.msstyles: Do not use transparent treeview parts.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52434
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang b96ec3bf41 light.msstyles: Do not use transparent edges for trackbar horizontal and vertical thumb.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang 080c934a4b light.msstyles: Do not use transparent tab pane edges.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang c4ffeff7cd light.msstyles: Fill combo box background with white pixels.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang aafad831a9 light.msstyles: Fill radio button background with white pixels.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang 03e7ad417d light.msstyles: Fill checkbox background with white pixels.
Some window procedures don't actually erase background when WM_ERASEBKGND is received. So when drawing
transparent buttons on such windows, there may be left over content from buttons of different states.
This commit adds a white background to all the button parts that shouldn't be transparent.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52433
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang cbc0d24f66 light.msstyles: Adjust scroll bar arrow width and height to 17 pixels.
Themed scroll bar width and height are 17 pixels on XP. Fix that Light theme scroll bar arrow glyphs look off by 1
pixel. The combo button glyphs also have to be moved by 1 pixel because it was designed against the old scroll bar
arrow button width and height.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang 3acf12b867 light.msstyles: Use stretch sizing type for scroll bar arrow button background.
Scroll bar arrow button background within its sizing margins is all white, using stretch instead of
tile has no visual difference and is more efficient. On Windows, stretch sizing type is also used
for this part.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:40 +01:00
Zhiyi Zhang 7143c458f9 light.msstyles: Add more progress bar parts.
Fix Nokia SDK 2.0 for Java installer showing artifacts on its progress bar. The application queries
for these Vista+ progress bar parts because Wine's default system version is set to Windows 7.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 15:31:21 +01:00
Zhiyi Zhang 9cdb11dcd9 light.msstyles: Fix incorrect progress bar chunk color.
Fix Nokia SDK 2.0 for Java installer not showing progress chunks.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 15:31:21 +01:00
Zhiyi Zhang 36ed40e99f light.msstyles: Add TMT_TRANSITIONDURATIONS property.
Set all transition duration to 100ms for different states and 0ms for the same state.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Zhiyi Zhang 760acf6c13 light.msstyles: Add scrollbar width and height.
Fix a bug that scrollbar width and height don't change when activating
Light theme. For example, when theming is inactive, change scrollbar
width from the default 16 pixels to 32 pixels, then activate Light theme.
Then scrollbar width should be changed to the theme specified scrollbar width.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-01 12:36:18 +02:00
Zhiyi Zhang 05fe57f58a light.msstyles: Add TrueSizeScalingType property to TrueSize sizing parts.
When SizingType property value is TrueSize, theme part images are scaled only when
TrueSizeScalingType property value is DPI or Size.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:53:40 +02:00
Zhiyi Zhang 4d6f1fe9ad light.msstyles: Add more TreeView HiDPI images.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:53:37 +02:00
Zhiyi Zhang 7bebabd998 light.msstyles: Add Tooltip HiDPI images.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:53:35 +02:00
Zhiyi Zhang 0a82fe4cfe light.msstyles: Add Scroll Bar gripper HiDPI images.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:53:32 +02:00
Zhiyi Zhang db4604b4d5 light.msstyles: Add more Button HiDPI images.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:52:43 +02:00
Zhiyi Zhang 0d915de46d light.msstyles: Add Tooltip parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Zhiyi Zhang 3e4c5afeb2 light.msstyles: Add TrackBar parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Zhiyi Zhang ace01c30f8 light.msstyles: Add Tab parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Zhiyi Zhang 3dab0775c7 light.msstyles: Add Progress parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Zhiyi Zhang a0debf126f light.msstyles: Add Header parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Zhiyi Zhang 5daeb032c7 light.msstyles: Add TreeView parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Zhiyi Zhang ee7be6ea7c light.msstyles: Add ListView parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 10:21:46 +02:00
Zhiyi Zhang c4d58096cd light.msstyles: Add Status parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 10:21:38 +02:00
Zhiyi Zhang 37e85d3a23 light.msstyles: Add Rebar parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 10:21:19 +02:00
Zhiyi Zhang 28a08e90cb light.msstyles: Add Toolbar parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 10:21:17 +02:00
Zhiyi Zhang 4801f7b29f light.msstyles: Add Spin parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 10:21:14 +02:00
Zhiyi Zhang 2bb0680b68 light.msstyles: Add Scroll Bar parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 10:21:09 +02:00
Zhiyi Zhang e4dd77a80a light.msstyles: Add List Box parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:58:59 +02:00
Zhiyi Zhang a7e1986fef light.msstyles: Add Edit parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:58:56 +02:00
Zhiyi Zhang 2d14833468 light.msstyles: Add ComboBox parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:58:40 +02:00
Zhiyi Zhang 991381046e light.msstyles: Add Button parts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:57:21 +02:00
Zhiyi Zhang f42158b62f light.msstyles: Add Blue stub visual style.
Blue is a visual style that uses blue as the main color and contains bitmaps for UI controls.
Its system color is the same as Classic Blue.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-23 18:50:44 +02:00
Zhiyi Zhang 062ef9f68e light.msstyles: Add Classic Blue visual style.
Classic Blue is a visual style that uses blue as the main color and doesn't have bitmaps for UI
controls.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-23 18:48:32 +02:00