Fixed alignment
This commit is contained in:
parent
3b4b3c8ad7
commit
f307e4a4aa
@ -8,9 +8,9 @@ let isShown = true
|
|||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
app.win = new BrowserWindow({
|
app.win = new BrowserWindow({
|
||||||
width: 405,
|
width: 405,
|
||||||
height: 420,
|
height: 430,
|
||||||
minWidth: 405,
|
minWidth: 405,
|
||||||
minHeight: 420,
|
minHeight: 430,
|
||||||
webPreferences: { zoomFactor: 1.0 },
|
webPreferences: { zoomFactor: 1.0 },
|
||||||
backgroundColor: '#000',
|
backgroundColor: '#000',
|
||||||
frame: false,
|
frame: false,
|
||||||
|
@ -76,7 +76,7 @@ function Dotgrid (width, height) {
|
|||||||
|
|
||||||
this.new = function () {
|
this.new = function () {
|
||||||
this.setZoom(1.0)
|
this.setZoom(1.0)
|
||||||
this.setSize({ width: 300, height: 300 })
|
this.setSize({ width: 300, height: 325 })
|
||||||
this.history.push(this.tool.layers)
|
this.history.push(this.tool.layers)
|
||||||
this.clear()
|
this.clear()
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ function Renderer (dotgrid) {
|
|||||||
const markers = dotgrid.getSize().markers
|
const markers = dotgrid.getSize().markers
|
||||||
|
|
||||||
for (let x = markers.w - 1; x >= 0; x--) {
|
for (let x = markers.w - 1; x >= 0; x--) {
|
||||||
for (let y = markers.h; y >= 0; y--) {
|
for (let y = markers.h - 1; y >= 0; y--) {
|
||||||
let is_step = x % 4 == 0 && y % 4 == 0
|
let is_step = x % 4 == 0 && y % 4 == 0
|
||||||
// Color
|
// Color
|
||||||
let color = is_step ? dotgrid.theme.active.b_med : dotgrid.theme.active.b_low
|
let color = is_step ? dotgrid.theme.active.b_med : dotgrid.theme.active.b_low
|
||||||
|
Loading…
Reference in New Issue
Block a user