-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66e28ff
commit 168e4b0
Showing
12 changed files
with
276 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Improvements: | ||
|
||
* In order to combat the issue of border halfchars forming around images, new aspect ratio preservation modes have been | ||
added as follows: | ||
* Snap to char (new default) - rounds width/height to the nearest character. | ||
* Snap to center - rounds width/height to the nearest character which allows the image to be centered. | ||
* The aspect ratio preservation mode is now saved as part of the profile. | ||
* The window title now displays the program version. | ||
|
||
Bugs fixed: | ||
|
||
* The window pane showing scroll bars when unnecessary on some platforms has been fixed. | ||
* The correct program version is now displayed (regression in 0.4.2+). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
0.2.0 | ||
0.3.0 | ||
0.4.0 | ||
0.4.1 | ||
0.4.1 | ||
0.4.2 | ||
0.5.0 | ||
0.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/pl/asie/zima/util/AspectRatioPreservationMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) 2020, 2021 Adrian Siekierka | ||
* | ||
* This file is part of zima. | ||
* | ||
* zima is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* zima is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with zima. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package pl.asie.zima.util; | ||
|
||
public enum AspectRatioPreservationMode { | ||
PRESERVE("Preserve"), | ||
SNAP_CHAR("Snap to character"), | ||
SNAP_CENTER("Snap to center"), | ||
IGNORE("Stretch"); | ||
|
||
private final String label; | ||
|
||
AspectRatioPreservationMode(String label) { | ||
this.label = label; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return label; | ||
} | ||
} |
Oops, something went wrong.