Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now getting icons directly from DryIcons aesthetica zip-file.

  • Loading branch information...
commit 02f30c9ec4f813950d4157467295aca253642ee9 1 parent 9df7ad9
@marnix authored
View
9 README
@@ -19,6 +19,11 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+ACKNOWLEDGMENTS
+---------------
+Icons by http://dryicons.com (Aesthetica Icon Set, version 1.12,
+http://dryicons.com/free-icons/preview/aesthetica/).
+
GOAL
----
@@ -54,12 +59,12 @@ need to do for my day-time job.
TODO
----
- * Complete this prioritized to-do list, so that I know what to work on next.
-
* Build initial screen to indicate starting/stopping work.
* Allow editing of start/end times of work.
+ * Create an 'About' screen, with acknowledgments for DryIcons' icons.
+
* Allow specification of a task name.
* Design an initial version of the time log file format.
View
16 src/mytime/ui/swing/SwingUIMainWindow.java
@@ -6,6 +6,8 @@
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
+import java.net.MalformedURLException;
+import java.net.URL;
import java.util.Date;
import javax.swing.ImageIcon;
@@ -57,11 +59,21 @@ private void createComponents() {
_jStartTime.setEditable(false);
_jStartTime.setFocusable(false);
- _jStartButton = new JButton(new ImageIcon(getClass().getResource("icons/aesthetica/play.png")));
+ try {
+ _jStartButton = new JButton(new ImageIcon(new URL("jar:" + getClass().getResource("icons/aesthetica.zip")
+ + "!/png/48x48/play.png")));
+ } catch (MalformedURLException ex) {
+ assert false;
+ }
pane.add(_jStartButton);
_jStartButton.setEnabled(false);
- _jPauseButton = new JButton(new ImageIcon(getClass().getResource("icons/aesthetica/pause.png")));
+ try {
+ _jPauseButton = new JButton(new ImageIcon(new URL("jar:" + getClass().getResource("icons/aesthetica.zip")
+ + "!/png/48x48/pause.png")));
+ } catch (MalformedURLException ex) {
+ assert false;
+ }
pane.add(_jPauseButton);
pack();
View
BIN  src/mytime/ui/swing/icons/aesthetica.zip
Binary file not shown
View
BIN  src/mytime/ui/swing/icons/aesthetica/pause.png
Deleted file not rendered
View
BIN  src/mytime/ui/swing/icons/aesthetica/play.png
Deleted file not rendered
View
38 src/mytime/ui/swing/icons/aesthetica/readme.txt
@@ -1,38 +0,0 @@
-Aesthetica Icon Set, version 1.12
-http://dryicons.com/free-icons/preview/aesthetica/
-
-Information
-----------------------
-
-This icon set contains 160 quality icons in the following formats:
- Transparent PNG
- 16 x 16 px
- 24 x 24 px
- 32 x 32 px
- 48 x 48 px
- 128 x 128 px
-
-
-
-Licensing
-----------------------
-The usage of DryIcons' work (icons, icon sets and graphics) is limited to the terms of the "Free License" and "Commercial License" use.
-The DryIcons Free License means that you can use our icons, icon sets and graphics in any publicly accesible web site, web application or any form of presentation publicly accessible through the World Wide Web only according to the DryIcons Free License Terms and Conditions:
-
-* You must put a back link with credits to http://dryicons.com on every page where DryIcons' Works are used (example: Icons by http://dryicons.com);
-
-* You must include the correct back link to DryIcons website, which is: http://dryicons.com;
-
-* You must place the link on an easy-to-see, recognizable place, so there is no confusion about the Original Author of the Works (DryIcons);
-
-* When copying, or paraphrasing description text (or title) on one of the Works, you must make sure there are no spelling mistakes;
-
-* Do not try to take credit or imply in any way that you and not DryIcons is the Original Author of the Works (icons, icon sets and graphics).
-
-For a more detailed look at our Free License Agreement, please follow the link: http://dryicons.com/terms/#free-license
-
-
-The DryIcons Commercial License means that you can use our Free Icon Sets and Free Graphics without being obligated to put a back link to DryIcons.com for a certain fee. After you complete yourpayment transaction DryIcons grants you a Commercial License.
-
-For a more detailed look at our Commercial License Agreement, please follow the link: http://dryicons.com/terms/#commercial-license
-
Please sign in to comment.
Something went wrong with that request. Please try again.