From e07dac5c2e308c952c8fdec5e6ad7089ff432ccf Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 6 Aug 2022 15:23:03 +0800 Subject: Add new exported `ColorMappingType` used for color transformation Using `ColorMappingType` color transformation types enumeration for tab color index, ref #1285 --- sheetpr_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sheetpr_test.go') diff --git a/sheetpr_test.go b/sheetpr_test.go index 000b33a..65ab196 100644 --- a/sheetpr_test.go +++ b/sheetpr_test.go @@ -15,7 +15,7 @@ var _ = []SheetPrOption{ FitToPage(true), TabColorIndexed(42), TabColorRGB("#FFFF00"), - TabColorTheme(TabColorThemeLight2), + TabColorTheme(ColorMappingTypeLight2), TabColorTint(0.5), AutoPageBreaks(true), OutlineSummaryBelow(true), @@ -45,7 +45,7 @@ func ExampleFile_SetSheetPrOptions() { FitToPage(true), TabColorIndexed(42), TabColorRGB("#FFFF00"), - TabColorTheme(TabColorThemeLight2), + TabColorTheme(ColorMappingTypeLight2), TabColorTint(0.5), AutoPageBreaks(true), OutlineSummaryBelow(false), @@ -124,7 +124,7 @@ func TestSheetPrOptions(t *testing.T) { {new(FitToPage), FitToPage(true)}, {new(TabColorIndexed), TabColorIndexed(42)}, {new(TabColorRGB), TabColorRGB("FFFF00")}, - {new(TabColorTheme), TabColorTheme(TabColorThemeLight2)}, + {new(TabColorTheme), TabColorTheme(ColorMappingTypeLight2)}, {new(TabColorTint), TabColorTint(0.5)}, {new(AutoPageBreaks), AutoPageBreaks(true)}, {new(OutlineSummaryBelow), OutlineSummaryBelow(false)}, -- cgit v1.2.1