[PATCH 5/5] light.msstyles: Add TrueSizeScalingType property to TrueSize sizing parts.

Zhiyi Zhang zzhang at codeweavers.com
Sun Aug 22 23:09:48 CDT 2021


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 at codeweavers.com>
---
 dlls/light.msstyles/light.rc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dlls/light.msstyles/light.rc b/dlls/light.msstyles/light.rc
index 5c67480f69a..76adf8f8398 100644
--- a/dlls/light.msstyles/light.rc
+++ b/dlls/light.msstyles/light.rc
@@ -207,6 +207,7 @@ BLUE_INI TEXTFILE
 "ImageCount = 12\r\n"
 "MirrorImage = False\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = True\r\n"
 "Transparent = True\r\n"
 "ImageFile1 = blue_checkbox_13px.bmp\r\n"
@@ -242,6 +243,7 @@ BLUE_INI TEXTFILE
 "ContentMargins = 0, 0, 0, 0\r\n"
 "ImageCount = 8\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = True\r\n"
 "ImageFile1 = blue_radiobutton_13px.bmp\r\n"
 "ImageFile2 = blue_radiobutton_16px.bmp\r\n"
@@ -304,6 +306,7 @@ BLUE_INI TEXTFILE
 "Transparent = True\r\n"
 "ImageLayout = Vertical\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "Transparent = True\r\n"
 "UniformSizing = True\r\n"
 "ImageFile1 = blue_commandlink_glyph_30px.bmp\r\n"
@@ -556,6 +559,7 @@ BLUE_INI TEXTFILE
 "[ScrollBar.SizeBox]\r\n"
 "BgType = ImageFile\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "ImageCount = 2\r\n"
 "SizingType = TrueSize\r\n"
 "Transparent = True\r\n"
@@ -654,6 +658,7 @@ BLUE_INI TEXTFILE
 "ContentMargins = 0, 0, 0, 0\r\n"
 "BgType = ImageFile\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "ImageCount = 2\r\n"
 "SizingType = TrueSize\r\n"
 "Transparent = True\r\n"
@@ -860,6 +865,7 @@ BLUE_INI TEXTFILE
 "Transparent = True\r\n"
 "SizingType = TrueSize\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = true\r\n"
 "ImageFile1 = blue_trackbar_thumb_up_11px.bmp\r\n"
 "ImageFile2 = blue_trackbar_thumb_up_15px.bmp\r\n"
@@ -875,6 +881,7 @@ BLUE_INI TEXTFILE
 "SizingType = TrueSize\r\n"
 "ImageLayout = Vertical\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = True\r\n"
 "ImageFile1 = blue_trackbar_thumb_down_11px.bmp\r\n"
 "ImageFile2 = blue_trackbar_thumb_down_15px.bmp\r\n"
@@ -890,6 +897,7 @@ BLUE_INI TEXTFILE
 "Transparent = True\r\n"
 "ImageLayout = Vertical\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = True\r\n"
 "ImageFile1 = blue_trackbar_thumb_left_19px.bmp\r\n"
 "ImageFile2 = blue_trackbar_thumb_left_25px.bmp\r\n"
@@ -905,6 +913,7 @@ BLUE_INI TEXTFILE
 "Transparent = True\r\n"
 "ImageLayout = Vertical\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = True\r\n"
 "ImageFile1 = blue_trackbar_thumb_right_19px.bmp\r\n"
 "ImageFile2 = blue_trackbar_thumb_right_25px.bmp\r\n"
@@ -937,6 +946,7 @@ BLUE_INI TEXTFILE
 "[Tooltip.Close]\r\n"
 "BgType = ImageFile\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "ImageCount = 3\r\n"
 "SizingType = TrueSize\r\n"
 "ImageLayout = Vertical\r\n"
@@ -968,6 +978,7 @@ BLUE_INI TEXTFILE
 "ImageCount = 2\r\n"
 "ImageLayout = vertical\r\n"
 "ImageSelectType = Dpi\r\n"
+"TrueSizeScalingType = Dpi\r\n"
 "UniformSizing = True\r\n"
 "ImageFile1 = blue_treeview_expand_collapse_9px.bmp\r\n"
 "ImageFile2 = blue_treeview_expand_collapse_11px.bmp\r\n"
-- 
2.30.2



More information about the wine-devel mailing list