acttrader-charts 1.3.0-beta.4 → 1.3.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -16914,19 +16914,12 @@ var TradeButton = class {
16914
16914
 
16915
16915
  // src/ui/TradePopover.ts
16916
16916
  var TradePopover = class {
16917
- constructor(theme, lots, symbol, onDraftCreate, labels = DEFAULT_LABELS.trade, onVisibilityChange, adaptiveText = false) {
16917
+ constructor(theme, lots, symbol, onDraftCreate, labels = DEFAULT_LABELS.trade, onVisibilityChange, _adaptiveText = false) {
16918
16918
  this._price = 0;
16919
16919
  this._pricePrecision = 2;
16920
16920
  this._buyOrderType = "limit";
16921
16921
  this._sellOrderType = "limit";
16922
16922
  this._compact = false;
16923
- /**
16924
- * Use the theme's adaptive tooltip text color for the price/lots text instead
16925
- * of a hardcoded white. Opt-in (hanko3.0 mobile header only) so the white-on-
16926
- * white light-theme fix has zero effect on any other broker/white-label, which
16927
- * keep the original pure-white text.
16928
- */
16929
- this._adaptiveText = false;
16930
16923
  this.onDocMouseDown = (e) => {
16931
16924
  if (this.isVisible && !this.el.contains(e.target)) {
16932
16925
  this.hide();
@@ -16938,7 +16931,6 @@ var TradePopover = class {
16938
16931
  this.onDraftCreate = onDraftCreate;
16939
16932
  this.labels = labels;
16940
16933
  this.onVisibilityChange = onVisibilityChange;
16941
- this._adaptiveText = adaptiveText;
16942
16934
  this.el = document.createElement("div");
16943
16935
  Object.assign(this.el.style, {
16944
16936
  position: "absolute",
@@ -17036,11 +17028,11 @@ var TradePopover = class {
17036
17028
  Object.assign(colored.style, { color, fontWeight: "600" });
17037
17029
  const plain = document.createElement("span");
17038
17030
  plain.textContent = ` ${this.lots} ${this.symbol} ${this.labels.at} ${priceStr}`;
17039
- const plainColor = this._adaptiveText ? this.theme.tooltip.text : "#ffffff";
17031
+ const plainColor = this.theme.tooltip.text;
17040
17032
  Object.assign(plain.style, { color: plainColor, fontWeight: "400" });
17041
17033
  btn.append(colored, plain);
17042
17034
  btn.addEventListener("mouseenter", () => {
17043
- btn.style.background = "rgba(255,255,255,0.06)";
17035
+ btn.style.background = this.theme.ui.accentBg;
17044
17036
  });
17045
17037
  btn.addEventListener("mouseleave", () => {
17046
17038
  btn.style.background = "transparent";
@@ -25263,6 +25255,9 @@ var _ChartEngine = class _ChartEngine {
25263
25255
  this.applyOverlayLabelStyles();
25264
25256
  this.compareLegend?.setTheme(this.theme);
25265
25257
  this.comparePickerModal?.setTheme(this.theme);
25258
+ this.indicatorOverlay?.setTheme(this.theme);
25259
+ for (const overlay of this.subPaneOverlays.values()) overlay.setTheme(this.theme);
25260
+ this.isinPickerModal?.setTheme(this.theme);
25266
25261
  this.scheduleRender();
25267
25262
  this.emitStateChange();
25268
25263
  return this;