From 0a9dd387865141111229c3d4694e196c00687eaf Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 16 Jan 2020 14:12:36 +0100 Subject: [PATCH] More fine tunning --- Globals.js | 2 +- Panels/LayersPanel.js | 12 ++++++------ Scales/Commons.js | 10 +++++----- Scales/RateScale.js | 2 +- Scales/TimeFrameScale.js | 2 +- Scales/TimeScale.js | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Globals.js b/Globals.js index 8b29030a7..8c5fa7858 100644 --- a/Globals.js +++ b/Globals.js @@ -41,7 +41,7 @@ UI_FONT = { SECONDARY: "Source Code Pro" }; -let FONT_ASPECT_RATIO = 0.35; +let FONT_ASPECT_RATIO = 0.32; const MIN_ZOOM_LEVEL = -28.25 const GET_CONTAINER_PURPOSE = { diff --git a/Panels/LayersPanel.js b/Panels/LayersPanel.js index d6153345d..debf7c8b0 100644 --- a/Panels/LayersPanel.js +++ b/Panels/LayersPanel.js @@ -28,8 +28,8 @@ function newProductsPanel () { let panelTabButton let visible = true - let heatherHeight = 50 - let footerHeight = 15 + let heatherHeight = 40 + let footerHeight = 10 let layerHeight = 70 let desiredVisibleLayers = 5 let posibleVisibleLayers = 5 @@ -346,11 +346,11 @@ function newProductsPanel () { roundedCornersBackground(params) - drawLabel(label1, 1 / 2, 0, 0, 20, 10, thisObject.container) - drawLabel(label2, 1 / 2, 0, 0, 40, 10, thisObject.container) + drawLabel(label1, 1 / 2, 0, 0, 15, 10, thisObject.container) + drawLabel(label2, 1 / 2, 0, 0, 30, 10, thisObject.container) - drawIcon(icon1, 1 / 8, 0, 0, 30, 30, thisObject.container) - drawIcon(icon2, 7 / 8, 0, 0, 30, 30, thisObject.container) + drawIcon(icon1, 1 / 8, 0, 0, 20, 35, thisObject.container) + drawIcon(icon2, 7 / 8, 0, 0, 20, 35, thisObject.container) } function drawScrollBar () { diff --git a/Scales/Commons.js b/Scales/Commons.js index f07fb2fe5..9011b35cf 100644 --- a/Scales/Commons.js +++ b/Scales/Commons.js @@ -21,12 +21,12 @@ function drawScaleDisplay (label1, label2, label3, xExtraOffSet1, xExtraOffSet2, label2 = label2.substring(0, 20) label3 = label3.substring(0, 20) - drawLabel(label1, 1 / 2, 4 / 5, 0, 0, 10, container) - drawLabel(label2, 1 / 2, 2 / 5, 0, 0, 20, container) - drawLabel(label3, 1 / 2, 3 / 5, 0, 0, 10, container) + drawLabel(label1, 1 / 2, 92 / 100, 0, 0, 10, container) + drawLabel(label2, 1 / 2, 42 / 100, 0, 0, 18, container) + drawLabel(label3, 1 / 2, 67 / 100, 0, 0, 10, container) - drawIcon(icon1, 1 / 8, 1 / 2, 0, 0, 30, container) - drawIcon(icon2, 7 / 8, 1 / 2, 0, 0, 30, container) + drawIcon(icon1, 1 / 8, 1 / 2, 0, 0, 35, container) + drawIcon(icon2, 7 / 8, 1 / 2, 0, 0, 35, container) } function drawScaleDisplayCover (container) { diff --git a/Scales/RateScale.js b/Scales/RateScale.js index 1c3c8ef4f..330049e80 100644 --- a/Scales/RateScale.js +++ b/Scales/RateScale.js @@ -29,7 +29,7 @@ function newRateScale () { thisObject.container.detectMouseOver = true thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL - thisObject.container.frame.height = 50 + thisObject.container.frame.height = 40 let visible = true let isMouseOver diff --git a/Scales/TimeFrameScale.js b/Scales/TimeFrameScale.js index 8d2b1b696..0ab1af933 100644 --- a/Scales/TimeFrameScale.js +++ b/Scales/TimeFrameScale.js @@ -55,7 +55,7 @@ function newTimeFrameScale () { thisObject.container.detectMouseOver = true thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL - thisObject.container.frame.height = 50 + thisObject.container.frame.height = 40 } function finalize () { diff --git a/Scales/TimeScale.js b/Scales/TimeScale.js index 2ddc33294..b3293ec29 100644 --- a/Scales/TimeScale.js +++ b/Scales/TimeScale.js @@ -28,7 +28,7 @@ function newTimeScale () { thisObject.container.detectMouseOver = true thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL - thisObject.container.frame.height = 50 + thisObject.container.frame.height = 40 let visible = true let isMouseOver