Skip to content

Commit

Permalink
1.0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
andyherbert committed May 2, 2020
1 parent b2e0245 commit e6286c3
Show file tree
Hide file tree
Showing 6 changed files with 894 additions and 913 deletions.
6 changes: 3 additions & 3 deletions app/document/ui/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,18 @@ function hide_scrollbars(value) {
}

function current_zoom_factor() {
return parseFloat(electron.remote.getCurrentWebContents().getZoomFactor().toFixed(1));
return parseFloat(electron.remote.getCurrentWebContents().zoomFactor.toFixed(1));
}

function set_zoom(factor) {
const zoom_element = $("zoom");
electron.remote.getCurrentWebContents().setZoomFactor(factor);
electron.remote.getCurrentWebContents().zoomFactor = factor;
zoom_element.textContent = `${Math.ceil(factor * 10) * 10}%`;
zoom_element.classList.remove("fade");
document.body.removeChild(zoom_element);
document.body.appendChild(zoom_element);
zoom_element.classList.add("fade");
send("update_menu_checkboxes", {actual_size: (electron.remote.getCurrentWebContents().getZoomFactor() == 1)});
send("update_menu_checkboxes", {actual_size: (electron.remote.getCurrentWebContents().zoomFactor == 1)});
}

function zoom_in() {
Expand Down
Binary file modified build/ans/changelog.ans
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/latest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.0.24"
"version": "1.0.25"
}
4 changes: 2 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ directories:
buildResources: build
appId: org.blocktronics.moebius
productName: Moebius
copyright: Copyright © 2019 Andy Herbert
copyright: Copyright © 2020 Andy Herbert
extraResources:
- from: build/ans
to: ans
Expand Down Expand Up @@ -52,4 +52,4 @@ linux:
target: deb
description: Moebius is a new ANSI and ASCII Editor for Linux, MacOS, and Windows. The major feature that differentiates it from PabloDraw is the 'half-block' brush which allows editing in a style closer to Photoshop than a text editor, although you can still use the function and cursor keys to draw with, and you should find that most of the text editing features from PabloDraw are carried over to this editor.
category: Graphics
electronVersion: 7.0.1
electronVersion: 8.2.5
Loading

0 comments on commit e6286c3

Please sign in to comment.