Skip to content

Commit a952f3d

Browse files
committed
open lcw when chart is clicked
1 parent 4a2d105 commit a952f3d

File tree

1 file changed

+11
-0
lines changed
  • atomic_defi_design/Dex/Exchange/ProView

1 file changed

+11
-0
lines changed

atomic_defi_design/Dex/Exchange/ProView/Chart.qml

+11
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Item
7070
transform: scale(${Math.min(scale_x, scale_y)});
7171
transform-origin: top left;
7272
}
73+
a { pointer-events: none; }
7374
</style>
7475
<script defer src="https://www.livecoinwatch.com/static/lcw-widget.js"></script>
7576
<div class="livecoinwatch-widget-1" lcw-coin="${rel_ticker}" lcw-base="${base_ticker}" lcw-secondary="USDC" lcw-period="w" lcw-color-tx="${Dex.CurrentTheme.foregroundColor}" lcw-color-pr="#58c7c5" lcw-color-bg="${Dex.CurrentTheme.comboBoxBackgroundColor}" lcw-border-w="0" lcw-digits="8" ></div>
@@ -226,6 +227,16 @@ Item
226227
}
227228
}
228229

230+
MouseArea {
231+
id: chart_mousearea
232+
anchors.fill: webEngineViewPlaceHolder
233+
onClicked: {
234+
if (webEngineView.visible) {
235+
Qt.openUrlExternally("https://www.livecoinwatch.com")
236+
}
237+
}
238+
}
239+
229240
Connections
230241
{
231242
target: app

0 commit comments

Comments
 (0)