Skip to content

Commit

Permalink
cryptocoin@guantanamoe Make red-green candlestick chart (#5258)
Browse files Browse the repository at this point in the history
* Upload Czech translate

* Make red-green candlestick chart

* Update cs.po

translation correction
  • Loading branch information
bukowski12 authored Jan 22, 2025
1 parent 20c6d42 commit 96ab90f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cryptocoin@guantanamoe/files/cryptocoin@guantanamoe/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ MyApplet.prototype = {
const close = (height - 20)*((data.close - minLow)/delta);
const x = step / 2 + step * index;
const top = height - 10;
if (data.close < data.open) {
var [res, color] = Clutter.Color.from_string('#FF0000');
} else {
var [res, color] = Clutter.Color.from_string('#00FF00');
}
cr.setSourceRGBA(color.red/255, color.green/255, color.blue/255, 1)
cr.moveTo(x, top - low);
cr.setLineWidth(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ msgstr "Čára"

#. settings-schema.json->graph-color->description
msgid "Graph Foreground Color"
msgstr "Barva pozedí grafu"
msgstr "Barva grafu"

#. settings-schema.json->alert-delta-update-interval->units
msgid "seconds"
Expand Down

0 comments on commit 96ab90f

Please sign in to comment.