From: Niki Roo Date: Thu, 23 Feb 2017 07:31:16 +0000 (+0100) Subject: Change the "cached" marker to make it look 3D-like X-Git-Tag: fanfix-swing-0.0.1~12^2~514 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=c39a3e30976167764868a1a4bb3f6e87c4d20386;p=fanfix-swing.git Change the "cached" marker to make it look 3D-like --- diff --git a/libs/nikiroo-utils-1.1.1-sources.jar b/libs/nikiroo-utils-1.2.1-sources.jar similarity index 77% rename from libs/nikiroo-utils-1.1.1-sources.jar rename to libs/nikiroo-utils-1.2.1-sources.jar index 2a6164af..0b9eac3f 100644 Binary files a/libs/nikiroo-utils-1.1.1-sources.jar and b/libs/nikiroo-utils-1.2.1-sources.jar differ diff --git a/src/be/nikiroo/fanfix/reader/LocalReaderBook.java b/src/be/nikiroo/fanfix/reader/LocalReaderBook.java index 2c6d28bd..7dd41b6c 100644 --- a/src/be/nikiroo/fanfix/reader/LocalReaderBook.java +++ b/src/be/nikiroo/fanfix/reader/LocalReaderBook.java @@ -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); } } }