Skip to content

Commit

Permalink
Fixed Issue #10 : b/# bad display in chord symbols on Mac OSX Retina.
Browse files Browse the repository at this point in the history
Improved Time Signature rendering.
  • Loading branch information
Jerome Lelasseux committed Nov 10, 2019
1 parent a4ba1b3 commit f27d100
Show file tree
Hide file tree
Showing 10 changed files with 257 additions and 346 deletions.
14 changes: 10 additions & 4 deletions CL_Editor/src/org/jjazz/ui/cl_editor/barrenderer/BR_Chords.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public PrefSizePanel()
ChordLeadSheetItem<?> item1 = null, item2;
try
{
item1 = clif.createChordSymbol(null, new ExtChordSymbol("C7#9"), new Position(0, 0));
item1 = clif.createChordSymbol(null, new ExtChordSymbol("C#7#9b5"), new Position(0, 0));
} catch (ParseException ex)
{
Exceptions.printStackTrace(ex);
Expand Down Expand Up @@ -388,15 +388,21 @@ public Dimension getPreferredSize()
}
}

int V_MARGIN = 1;
int V_PADDING;
if (zoomVFactor > 66)
{
V_MARGIN = 2;
V_PADDING = 3;
} else if (zoomVFactor > 33)
{
V_PADDING = 2;
} else
{
V_PADDING = 1;
}

Insets in = getInsets();
int pWidth = irWidthSum + irs.size() * 5 + in.left + in.right;
int pHeight = irMaxHeight + 2 * V_MARGIN + in.top + in.bottom;
int pHeight = irMaxHeight + V_PADDING + in.top + in.bottom;

Dimension d = new Dimension(pWidth, pHeight);
// LOGGER2.severe("PrefSizePanel.getPreferredSize() d=" + d);
Expand Down
8 changes: 4 additions & 4 deletions ItemRenderer/nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build.xml.data.CRC32=2a4c4752
build.xml.data.CRC32=2944459f
build.xml.script.CRC32=d2bd02d2
build.xml.stylesheet.CRC32=15ca8a54@2.76.1
build.xml.stylesheet.CRC32=15ca8a54@2.77
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=2a4c4752
nbproject/build-impl.xml.data.CRC32=2944459f
nbproject/build-impl.xml.script.CRC32=f4d95b06
nbproject/build-impl.xml.stylesheet.CRC32=49aa68b0@2.76.1
nbproject/build-impl.xml.stylesheet.CRC32=49aa68b0@2.77
8 changes: 8 additions & 0 deletions ItemRenderer/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.modules</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.53</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
Expand Down
Loading

0 comments on commit f27d100

Please sign in to comment.