Skip to content
Snippets Groups Projects
Commit 32e29960 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

general template improvements - line length, highlighting, padding, ...

parent 63cb62c4
No related branches found
No related tags found
No related merge requests found
Pipeline #13336 passed
...@@ -50,16 +50,6 @@ export default { ...@@ -50,16 +50,6 @@ export default {
baseText: COLORS.white, baseText: COLORS.white,
highlightedText: COLORS.black highlightedText: COLORS.black
} }
},
black_on_yellow: {
name: 'Černá na žluté',
colors: {
background: COLORS.yellow1,
highlight: COLORS.black,
arrow: COLORS.black,
baseText: COLORS.black,
highlightedText: COLORS.white
}
} }
} }
......
...@@ -20,7 +20,7 @@ const redraw = async (canvas, options) => { ...@@ -20,7 +20,7 @@ const redraw = async (canvas, options) => {
const logoWidth = Math.ceil(canvas.width * 0.23) const logoWidth = Math.ceil(canvas.width * 0.23)
const logoSideMargin = Math.ceil(canvas.width * 0.07) const logoSideMargin = Math.ceil(canvas.width * 0.07)
const logoTopMargin = Math.ceil(canvas.width * 0.17) const logoTopMargin = Math.ceil(canvas.width * 0.155)
const textBoxWidth = Math.ceil(canvas.width * 0.8) const textBoxWidth = Math.ceil(canvas.width * 0.8)
const textBoxMarginSide = Math.ceil(canvas.width * 0.13) const textBoxMarginSide = Math.ceil(canvas.width * 0.13)
......
...@@ -3,7 +3,7 @@ import { watch, ref } from 'vue'; ...@@ -3,7 +3,7 @@ import { watch, ref } from 'vue';
import COLORS from '../../colors'; import COLORS from '../../colors';
import TEMPLATES from '../../templates' import TEMPLATES from '../../templates'
import { generateDefaultLogos } from '../../logos' import { LOGOS } from '../../logos'
import { loadFonts } from '../../utils' import { loadFonts } from '../../utils'
import Canvas from '../../components/canvas/Canvas.vue'; import Canvas from '../../components/canvas/Canvas.vue';
...@@ -54,7 +54,13 @@ export default { ...@@ -54,7 +54,13 @@ export default {
}, },
predefinedColors: predefinedColors, predefinedColors: predefinedColors,
colors: predefinedColors.base.colors, colors: predefinedColors.base.colors,
predefinedLogoImages: generateDefaultLogos('defaultLight') predefinedLogoImages: [
{
name: LOGOS.defaultDark.name,
src: LOGOS.defaultDark.src,
defaultSelected: true,
},
]
} }
}, },
mounted () { mounted () {
......
...@@ -24,8 +24,9 @@ const redraw = async (canvas, options) => { ...@@ -24,8 +24,9 @@ const redraw = async (canvas, options) => {
const crossThickness = Math.ceil(canvas.height * 0.4) const crossThickness = Math.ceil(canvas.height * 0.4)
const crossSkew = 38 const crossSkew = 38
const logoWidth = Math.ceil(canvas.width * 0.2) const logoWidth = Math.ceil(canvas.width * 0.23)
const logoSideMargin = Math.ceil(canvas.width * 0.07) const logoSideMargin = Math.ceil(canvas.width * 0.07)
const logoTopMargin = Math.ceil(canvas.height * 0.155)
const textBoxWidth = Math.ceil(canvas.width * 0.5) const textBoxWidth = Math.ceil(canvas.width * 0.5)
const textSize = Math.ceil(canvas.height * 0.0725) const textSize = Math.ceil(canvas.height * 0.0725)
...@@ -102,7 +103,7 @@ const redraw = async (canvas, options) => { ...@@ -102,7 +103,7 @@ const redraw = async (canvas, options) => {
- logoWidth - logoWidth
- logoSideMargin - logoSideMargin
), ),
top: logoSideMargin, top: logoTopMargin,
zIndex: 11, zIndex: 11,
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment