(core) Enable the 'none' option in ColorSelect for cell and header text styles

Test Plan: Added a test case

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D4120
This commit is contained in:
Dmitry S
2023-12-04 11:41:54 -05:00
parent cc56e91f5b
commit 09c84734db
5 changed files with 43 additions and 10 deletions

View File

@@ -54,6 +54,7 @@ export class CellStyle extends Disposable {
textColor: new ColorOption({
color: headerTextColor,
defaultColor: theme.tableHeaderFg.toString(),
allowsNone: true,
noneText: 'default',
}),
fillColor: new ColorOption({
@@ -109,6 +110,7 @@ export class CellStyle extends Disposable {
textColor: new ColorOption({
color: textColor,
defaultColor: this._defaultTextColor,
allowsNone: true,
noneText: 'default',
}),
fillColor: new ColorOption({