Start to use new API in search addon

This commit is contained in:
Daniel Imms
2022-05-10 05:31:49 -07:00
parent 0a26cee08b
commit 7c87f5b47a
5 changed files with 19 additions and 22 deletions
@@ -184,12 +184,12 @@ export class DomRendererRowFactory {
if (x >= xmin && x < xmax) {
if (d.backgroundColorRGB) {
bgColorMode = Attributes.CM_RGB;
bg = d.backgroundColorRGB.rgba >> 8;
bg = d.backgroundColorRGB.rgba >> 8 & 0xFFFFFF;
bgOverride = d.backgroundColorRGB;
}
if (d.foregroundColorRGB) {
fgColorMode = Attributes.CM_RGB;
fg = d.foregroundColorRGB.rgba >> 8;
fg = d.foregroundColorRGB.rgba >> 8 & 0xFFFFFF;
fgOverride = d.foregroundColorRGB;
}
}