-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for more tabColor options and split RGB #1283 #1285
add support for more tabColor options and split RGB #1283 #1285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. I've left some comments.
82276b9
to
6a48997
Compare
Regarding the documentation, i'm not sure if it's updated automatically when i changed the example tests, is that enough? |
Yes, the example code will be verified by running them as tests. |
1dff95c
to
3902a13
Compare
This commit renames `TabColor` into `TabColorRGB` (but keeps an alias for backwards compatibility), as well as adds support for more tab color options (Theme, Indexed and Tint). Signed-off-by: Thomas Charbonnel <[email protected]>
3902a13
to
2cfc0e0
Compare
Codecov Report
@@ Coverage Diff @@
## master #1285 +/- ##
=======================================
Coverage 98.47% 98.47%
=======================================
Files 31 31
Lines 23417 23450 +33
=======================================
+ Hits 23059 23092 +33
Misses 239 239
Partials 119 119
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. |
LGTM, thanks for your contribution. |
Using `ColorMappingType` color transformation types enumeration for tab color index, ref #1285
I have added a new exported |
Okay looks good 👌
Thomas Charbonnel
… On Aug 6, 2022, at 3:29 PM, xuri ***@***.***> wrote:
I have added a new exported ColorMappingType used for color transformation, using it instead of integer data type theme color enumeration, and using the ColorMappingType prefix instead of the enumeration with TabColorTheme, because these enumerations not only can be used for the tab theme color, which also can be used for the drawing markup language and themes, so I think we should rename them.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Using `ColorMappingType` color transformation types enumeration for tab color index, ref qax-os#1285
Using `ColorMappingType` color transformation types enumeration for tab color index, ref qax-os#1285
Using `ColorMappingType` color transformation types enumeration for tab color index, ref qax-os#1285
This commit renames
TabColor
intoTabColorRGB
(but keeps an aliasfor backwards compatibility), as well as adds support for more tab color
options (Theme, Indexed and Tint).
Signed-off-by: Thomas Charbonnel [email protected]
Add support for more TabColor options
Description
The following changes were made:
TabColor
intoTabColorRGB
TabColorTheme
as well as an enum for all its valuesTabColorIndexed
as well as a default const for when it is unsetTabColorTint
as well as a default const for when it is unsetRelated Issue
#1283
Motivation and Context
The current version of Excelize only supports TabColor of type "RGB". Excel can set tab colors based on other dimensions (see here).
How Has This Been Tested
By adding tests to the existing tests for worksheet options in
sheetpr_test.go
All the tests passed on Linux (Fedora 34, go1.16.13)
Types of changes
Checklist