Skip to content

Conversation

@dhrp-odoo
Copy link
Contributor

Description:

  • Update rotation icons to use currentColor so they follow the active theme palette.
  • Force data bar conditional format preview text to use the dark TEXT_BODY color, regardless of theme, as it was previously changing with the theme and becoming hard to read.

Task: 5322179

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

- Update rotation icons to use `currentColor` so they follow the active
  theme palette.
- Force data bar conditional format preview text to use the dark
  `TEXT_BODY` color, regardless of theme, as it was previously changing
  with the theme and becoming hard to read.

Task: 5322179
@robodoo
Copy link
Collaborator

robodoo commented Nov 26, 2025

Pull request status dashboard

Comment on lines +43 to +45
const barColor = colorNumberToHex(rule.color);
const gradient = `background-image: linear-gradient(to right, ${barColor} 50%, white 50%)`;
return `${gradient}; color: ${TEXT_BODY};`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

I don’t think this is actually an issue. The text color should be white and the preview’s right-side background should be black to match the grid, so that users get an accurate idea of how the data bar will look.

Since the dark grid hasn’t been implemented yet, it’s probably better to address this as part of that task ???

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the preview will need to be adapted when we implement the grid in dark theme. In the meantime, we should match the grid as you said, so a black text is probably better :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants