Change the "cached" marker to make it look 3D-like
authorNiki Roo <niki@nikiroo.be>
Thu, 23 Feb 2017 07:31:16 +0000 (08:31 +0100)
committerNiki Roo <niki@nikiroo.be>
Thu, 23 Feb 2017 07:31:16 +0000 (08:31 +0100)
libs/nikiroo-utils-1.2.1-sources.jar [moved from libs/nikiroo-utils-1.1.1-sources.jar with 77% similarity]
src/be/nikiroo/fanfix/reader/LocalReaderBook.java

similarity index 77%
rename from libs/nikiroo-utils-1.1.1-sources.jar
rename to libs/nikiroo-utils-1.2.1-sources.jar
index 2a6164af1ee44985975a4a5432173c01e82ec388..0b9eac3f3d1fa00ddc8d4c9c099577fe1641ed34 100644 (file)
Binary files a/libs/nikiroo-utils-1.1.1-sources.jar and b/libs/nikiroo-utils-1.2.1-sources.jar differ
index 2c6d28bd3161601a554db218298fc0e2c9332a8a..7dd41b6ca304a9ef586360d5f452c8062b4fd211 100644 (file)
@@ -20,6 +20,7 @@ import javax.swing.JPanel;
 
 import be.nikiroo.fanfix.data.MetaData;
 import be.nikiroo.fanfix.data.Story;
+import be.nikiroo.utils.ui.UIUtils;
 
 /**
  * A book item presented in a {@link LocalReaderFrame}.
@@ -324,8 +325,8 @@ class LocalReaderBook extends JPanel {
                g.fillRect(clip.x, clip.y, clip.width, clip.height);
 
                if (cached) {
-                       g.setColor(Color.green);
-                       g.fillOval(COVER_WIDTH + HOFFSET + 30, 10, 20, 20);
+                       UIUtils.drawEllipse3D(g, Color.green.darker(), COVER_WIDTH
+                                       + HOFFSET + 30, 10, 20, 20);
                }
        }
 }