Browse Source

修改k线左侧背景颜色

master
liaoxinyu 2 years ago
parent
commit
47b52e77e6
  1. 2
      src/components/KLine.vue
  2. 2
      src/views/option/kline.vue
  3. 2
      static/Kline/charting_library/static/css/tradingview_black.css
  4. 2
      static/Kline/charting_library/static/css/tradingview_white.css

2
src/components/KLine.vue

@ -329,7 +329,7 @@ export default {
overrides: tvStyle[this.theme],
toolbar_bg: this.theme == "light" ? "#fff" : "#fff",
custom_css_url: `/static/Kline/charting_library/static/css/tradingview_${
this.theme == "light" ? "#fff" : "#ccc"
this.theme == "light" ? "white" : "black"
}.css`,
debug:false
},

2
src/views/option/kline.vue

@ -372,7 +372,7 @@ methods: {
supported_resolutions: ["5", "15", "30", "60", "240", "1D", "1W", "1M"],
overrides: tvStyle[_this.theme],
custom_css_url: `/static/Kline/charting_library/static/css/tradingview_${
_this.theme == "light" ? "#fff" : "black"
_this.theme == "light" ? "white" : "black"
}.css`,
drawings_access: {
type: "black",

2
static/Kline/charting_library/static/css/tradingview_black.css

@ -21,7 +21,7 @@
.charting-mask{display: block; position: absolute; top: 38px; width: 100%; left: 0; bottom: 0;}
.chart-page .layout__area--left [class^="drawingToolbar-"]{background: #222e3d!important;}
.chart-page .layout__area--left [class^="drawingToolbar-"]{background: #fff!important;}
.bottom-widgetbar-content.backtesting .button, .header-chart-panel .button, .hotlist-controls .button, .symbol-edit-widget .button{
padding:4px 4px;
}

2
static/Kline/charting_library/static/css/tradingview_white.css

@ -20,7 +20,7 @@
.charting-mask{display: block; position: absolute; top: 38px; width: 100%; left: 0; bottom: 0;}
.chart-page .layout__area--left [class^="drawingToolbar-"]{background: #ebecf1!important;}
.chart-page .layout__area--left [class^="drawingToolbar-"]{background: #fff!important;}
.bottom-widgetbar-content.backtesting .button, .header-chart-panel .button, .hotlist-controls .button, .symbol-edit-widget .button{
padding:7px 4px;
}
Loading…
Cancel
Save