Browse Source

Icons for OSD, Nicklist and Treeview. Fixes issue 2760.

tags/0.6.3m2a1
Chris Smith 15 years ago
parent
commit
82133d5375

+ 1
- 1
src/com/dmdirc/addons/osd/OsdPlugin.java View File

@@ -83,7 +83,7 @@ public final class OsdPlugin extends Plugin implements CategoryChangeListener,
83 83
         y = IdentityManager.getGlobalConfig().getOptionInt(getDomain(), "locationY");
84 84
         
85 85
         final PreferencesCategory category = new PreferencesCategory("OSD",
86
-                "General configuration for OSD plugin.");
86
+                "General configuration for OSD plugin.", "category-osd");
87 87
         
88 88
         fontSizeSetting = new PreferencesSetting(PreferencesType.INTEGER,
89 89
                 getDomain(), "fontSize", "Font size", "Changes the font " +

BIN
src/com/dmdirc/addons/osd/icon.png View File


+ 90
- 0
src/com/dmdirc/addons/osd/icon.svg View File

@@ -0,0 +1,90 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+<svg
4
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
5
+   xmlns:cc="http://creativecommons.org/ns#"
6
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
+   xmlns:svg="http://www.w3.org/2000/svg"
8
+   xmlns="http://www.w3.org/2000/svg"
9
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+   width="16px"
12
+   height="16px"
13
+   id="svg2383"
14
+   sodipodi:version="0.32"
15
+   inkscape:version="0.46"
16
+   sodipodi:docname="icon.svg"
17
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
18
+   inkscape:export-filename="/home/chris/projects/java/dmdirc/src/com/dmdirc/addons/osd/icon.png"
19
+   inkscape:export-xdpi="90"
20
+   inkscape:export-ydpi="90">
21
+  <defs
22
+     id="defs2385">
23
+    <inkscape:perspective
24
+       sodipodi:type="inkscape:persp3d"
25
+       inkscape:vp_x="0 : 8 : 1"
26
+       inkscape:vp_y="0 : 1000 : 0"
27
+       inkscape:vp_z="16 : 8 : 1"
28
+       inkscape:persp3d-origin="8 : 5.3333333 : 1"
29
+       id="perspective2391" />
30
+  </defs>
31
+  <sodipodi:namedview
32
+     id="base"
33
+     pagecolor="#ffffff"
34
+     bordercolor="#666666"
35
+     borderopacity="1.0"
36
+     inkscape:pageopacity="0.0"
37
+     inkscape:pageshadow="2"
38
+     inkscape:zoom="44.395604"
39
+     inkscape:cx="10.711392"
40
+     inkscape:cy="8.1209554"
41
+     inkscape:current-layer="layer1"
42
+     showgrid="true"
43
+     inkscape:grid-bbox="true"
44
+     inkscape:document-units="px"
45
+     inkscape:window-width="942"
46
+     inkscape:window-height="674"
47
+     inkscape:window-x="332"
48
+     inkscape:window-y="205">
49
+    <inkscape:grid
50
+       type="xygrid"
51
+       id="grid2393" />
52
+  </sodipodi:namedview>
53
+  <metadata
54
+     id="metadata2388">
55
+    <rdf:RDF>
56
+      <cc:Work
57
+         rdf:about="">
58
+        <dc:format>image/svg+xml</dc:format>
59
+        <dc:type
60
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
61
+      </cc:Work>
62
+    </rdf:RDF>
63
+  </metadata>
64
+  <g
65
+     id="layer1"
66
+     inkscape:label="Layer 1"
67
+     inkscape:groupmode="layer">
68
+    <rect
69
+       style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
70
+       id="rect2395"
71
+       width="16"
72
+       height="8"
73
+       x="0"
74
+       y="4" />
75
+    <path
76
+       style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
77
+       d="M 1.5316832,5.4809405 L 1.5316832,10.458911 L 4.5725248,10.458911 L 4.5725248,5.5034652 L 1.5316832,5.4809405 z"
78
+       id="path2403" />
79
+    <path
80
+       style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
81
+       d="M 6.014109,10.571535 L 9.1225248,10.54901 L 9.5054456,8.4955446 L 6.5321783,7.1665842 L 6.7349011,5.5710396 L 9.9784654,5.5485148"
82
+       id="path2407"
83
+       sodipodi:nodetypes="cccccc" />
84
+    <path
85
+       style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
86
+       d="M 11.510149,10.571535 L 11.510149,5.52599 L 13.537376,5.52599 L 14.629827,6.6184405 L 14.629827,9.5579207 L 13.666894,10.565903 L 11.510149,10.571535 z"
87
+       id="path2409"
88
+       sodipodi:nodetypes="ccccccc" />
89
+  </g>
90
+</svg>

+ 5
- 1
src/com/dmdirc/addons/osd/plugin.config View File

@@ -9,6 +9,7 @@ keysections:
9 9
   updates
10 10
   defaults
11 11
   version
12
+  icons
12 13
 
13 14
 metadata:
14 15
   author=Chris <chris@dmdirc.com>
@@ -42,4 +43,7 @@ defaults:
42 43
   timeout=15
43 44
 
44 45
 exports:
45
-  showOSD in com.dmdirc.addons.osd.OsdCommand as showNotification
46
+  showOSD in com.dmdirc.addons.osd.OsdCommand as showNotification
47
+
48
+icons:
49
+  category-osd=plugin://osd:com/dmdirc/addons/osd/icon.png

+ 5
- 3
src/com/dmdirc/config/prefs/PreferencesManager.java View File

@@ -269,7 +269,8 @@ public class PreferencesManager {
269 269
      * @param parent The parent category.
270 270
      */
271 271
     private void addNotificationsCategory(final PreferencesCategory parent) {
272
-        final PreferencesCategory category = new PreferencesCategory("Notifications", "");
272
+        final PreferencesCategory category = new PreferencesCategory("Notifications",
273
+                "", "input-error");
273 274
 
274 275
         final Map<String, String> options = new HashMap<String, String>();
275 276
         final Map<String, String> whoisOptions = new HashMap<String, String>();
@@ -467,7 +468,7 @@ public class PreferencesManager {
467 468
      * @param parent The parent category
468 469
      */
469 470
     private void addNicklistCategory(final PreferencesCategory parent) {
470
-        final PreferencesCategory category = new PreferencesCategory("Nicklist", "");
471
+        final PreferencesCategory category = new PreferencesCategory("Nicklist", "", "nicklist");
471 472
 
472 473
         category.addSetting(new PreferencesSetting(PreferencesType.OPTIONALCOLOUR,
473 474
                 "ui", "nicklistbackgroundcolour", "Nicklist background colour",
@@ -494,7 +495,8 @@ public class PreferencesManager {
494 495
      * @param parent The parent category
495 496
      */
496 497
     private void addTreeviewCategory(final PreferencesCategory parent) {
497
-        final PreferencesCategory category = new PreferencesCategory("Treeview", "");
498
+        final PreferencesCategory category = new PreferencesCategory("Treeview",
499
+                "", "treeview");
498 500
 
499 501
         category.addSetting(new PreferencesSetting(PreferencesType.OPTIONALCOLOUR,
500 502
                 "treeview", "backgroundcolour", "Treeview background colour",

BIN
src/com/dmdirc/res/nicklist.png View File


+ 133
- 0
src/com/dmdirc/res/source/nicklist.svg View File

@@ -0,0 +1,133 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+<svg
4
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
5
+   xmlns:cc="http://creativecommons.org/ns#"
6
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
+   xmlns:svg="http://www.w3.org/2000/svg"
8
+   xmlns="http://www.w3.org/2000/svg"
9
+   xmlns:xlink="http://www.w3.org/1999/xlink"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   width="16px"
13
+   height="16px"
14
+   id="svg2431"
15
+   sodipodi:version="0.32"
16
+   inkscape:version="0.46"
17
+   sodipodi:docname="nicklist.svg"
18
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
19
+   inkscape:export-filename="/home/chris/projects/java/dmdirc/src/com/dmdirc/res/nicklist.png"
20
+   inkscape:export-xdpi="90"
21
+   inkscape:export-ydpi="90">
22
+  <defs
23
+     id="defs2433">
24
+    <linearGradient
25
+       inkscape:collect="always"
26
+       id="linearGradient3257">
27
+      <stop
28
+         style="stop-color:#000000;stop-opacity:1;"
29
+         offset="0"
30
+         id="stop3259" />
31
+      <stop
32
+         style="stop-color:#000000;stop-opacity:0;"
33
+         offset="1"
34
+         id="stop3261" />
35
+    </linearGradient>
36
+    <inkscape:perspective
37
+       sodipodi:type="inkscape:persp3d"
38
+       inkscape:vp_x="0 : 8 : 1"
39
+       inkscape:vp_y="0 : 1000 : 0"
40
+       inkscape:vp_z="16 : 8 : 1"
41
+       inkscape:persp3d-origin="8 : 5.3333333 : 1"
42
+       id="perspective2439" />
43
+    <linearGradient
44
+       inkscape:collect="always"
45
+       xlink:href="#linearGradient3257"
46
+       id="linearGradient3263"
47
+       x1="6.1818314"
48
+       y1="8.5405941"
49
+       x2="-1.8381189"
50
+       y2="8.5405941"
51
+       gradientUnits="userSpaceOnUse" />
52
+  </defs>
53
+  <sodipodi:namedview
54
+     id="base"
55
+     pagecolor="#ffffff"
56
+     bordercolor="#666666"
57
+     borderopacity="1.0"
58
+     inkscape:pageopacity="0.0"
59
+     inkscape:pageshadow="2"
60
+     inkscape:zoom="22.197802"
61
+     inkscape:cx="6.1617782"
62
+     inkscape:cy="8"
63
+     inkscape:current-layer="layer1"
64
+     showgrid="true"
65
+     inkscape:grid-bbox="true"
66
+     inkscape:document-units="px"
67
+     inkscape:window-width="995"
68
+     inkscape:window-height="674"
69
+     inkscape:window-x="101"
70
+     inkscape:window-y="173">
71
+    <inkscape:grid
72
+       type="xygrid"
73
+       id="grid2441" />
74
+  </sodipodi:namedview>
75
+  <metadata
76
+     id="metadata2436">
77
+    <rdf:RDF>
78
+      <cc:Work
79
+         rdf:about="">
80
+        <dc:format>image/svg+xml</dc:format>
81
+        <dc:type
82
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
83
+      </cc:Work>
84
+    </rdf:RDF>
85
+  </metadata>
86
+  <g
87
+     id="layer1"
88
+     inkscape:label="Layer 1"
89
+     inkscape:groupmode="layer">
90
+    <rect
91
+       style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient3263);stroke-width:0.99224584999999998;stroke-miterlimit:4;stroke-dasharray:none"
92
+       id="rect2443"
93
+       width="15.845873"
94
+       height="13.007754"
95
+       x="-1.341996"
96
+       y="1.496123" />
97
+    <rect
98
+       style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
99
+       id="rect2453"
100
+       width="7"
101
+       height="13"
102
+       x="7.5"
103
+       y="1.5" />
104
+    <rect
105
+       style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
106
+       id="rect2455"
107
+       width="6"
108
+       height="1"
109
+       x="8"
110
+       y="3" />
111
+    <rect
112
+       style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
113
+       id="rect2461"
114
+       width="6"
115
+       height="1"
116
+       x="8"
117
+       y="5" />
118
+    <rect
119
+       style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
120
+       id="rect2463"
121
+       width="6"
122
+       height="1"
123
+       x="8"
124
+       y="7" />
125
+    <rect
126
+       style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
127
+       id="rect2465"
128
+       width="6"
129
+       height="1"
130
+       x="8"
131
+       y="9" />
132
+  </g>
133
+</svg>

+ 163
- 0
src/com/dmdirc/res/source/treeview.svg View File

@@ -0,0 +1,163 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+<svg
4
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
5
+   xmlns:cc="http://creativecommons.org/ns#"
6
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
+   xmlns:svg="http://www.w3.org/2000/svg"
8
+   xmlns="http://www.w3.org/2000/svg"
9
+   xmlns:xlink="http://www.w3.org/1999/xlink"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   width="16px"
13
+   height="16px"
14
+   id="svg2431"
15
+   sodipodi:version="0.32"
16
+   inkscape:version="0.46"
17
+   sodipodi:docname="treeview.svg"
18
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
19
+   inkscape:export-filename="/home/chris/projects/java/dmdirc/src/com/dmdirc/res/treeview.png"
20
+   inkscape:export-xdpi="90"
21
+   inkscape:export-ydpi="90">
22
+  <defs
23
+     id="defs2433">
24
+    <linearGradient
25
+       inkscape:collect="always"
26
+       id="linearGradient3257">
27
+      <stop
28
+         style="stop-color:#000000;stop-opacity:1;"
29
+         offset="0"
30
+         id="stop3259" />
31
+      <stop
32
+         style="stop-color:#000000;stop-opacity:0;"
33
+         offset="1"
34
+         id="stop3261" />
35
+    </linearGradient>
36
+    <inkscape:perspective
37
+       sodipodi:type="inkscape:persp3d"
38
+       inkscape:vp_x="0 : 8 : 1"
39
+       inkscape:vp_y="0 : 1000 : 0"
40
+       inkscape:vp_z="16 : 8 : 1"
41
+       inkscape:persp3d-origin="8 : 5.3333333 : 1"
42
+       id="perspective2439" />
43
+    <linearGradient
44
+       inkscape:collect="always"
45
+       xlink:href="#linearGradient3257"
46
+       id="linearGradient3263"
47
+       x1="10.055943"
48
+       y1="8.4955444"
49
+       x2="15.956608"
50
+       y2="8.4955444"
51
+       gradientUnits="userSpaceOnUse"
52
+       gradientTransform="scale(-1,1)" />
53
+  </defs>
54
+  <sodipodi:namedview
55
+     id="base"
56
+     pagecolor="#ffffff"
57
+     bordercolor="#666666"
58
+     borderopacity="1.0"
59
+     inkscape:pageopacity="0.0"
60
+     inkscape:pageshadow="2"
61
+     inkscape:zoom="22.197802"
62
+     inkscape:cx="7.0859331"
63
+     inkscape:cy="8"
64
+     inkscape:current-layer="layer1"
65
+     showgrid="true"
66
+     inkscape:grid-bbox="true"
67
+     inkscape:document-units="px"
68
+     inkscape:window-width="995"
69
+     inkscape:window-height="674"
70
+     inkscape:window-x="101"
71
+     inkscape:window-y="173">
72
+    <inkscape:grid
73
+       type="xygrid"
74
+       id="grid2441" />
75
+  </sodipodi:namedview>
76
+  <metadata
77
+     id="metadata2436">
78
+    <rdf:RDF>
79
+      <cc:Work
80
+         rdf:about="">
81
+        <dc:format>image/svg+xml</dc:format>
82
+        <dc:type
83
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
84
+      </cc:Work>
85
+    </rdf:RDF>
86
+  </metadata>
87
+  <g
88
+     id="layer1"
89
+     inkscape:label="Layer 1"
90
+     inkscape:groupmode="layer">
91
+    <rect
92
+       style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient3263);stroke-width:0.99224584999999998;stroke-miterlimit:4;stroke-dasharray:none"
93
+       id="rect2443"
94
+       width="15.845873"
95
+       height="13.007754"
96
+       x="-17.341995"
97
+       y="1.4961227"
98
+       transform="scale(-1,1)" />
99
+    <rect
100
+       style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
101
+       id="rect2453"
102
+       width="7"
103
+       height="13"
104
+       x="-8.5"
105
+       y="1.4999998"
106
+       transform="scale(-1,1)" />
107
+    <path
108
+       style="opacity:1;fill:#b3b3b3;fill-opacity:1;fill-rule:evenodd;stroke:#b3b3b3;stroke-width:0.99999994;stroke-miterlimit:4;stroke-dasharray:none"
109
+       d="M 4.9938473,3.5 L 7.1323904,3.5"
110
+       id="path3265" />
111
+    <path
112
+       style="opacity:1;fill:#b3b3b3;fill-opacity:1;fill-rule:evenodd;stroke:#b3b3b3;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
113
+       d="M 6.0440589,5.5 L 7.1722781,5.5"
114
+       id="path3267" />
115
+    <path
116
+       style="opacity:1;fill:#b3b3b3;fill-opacity:1;fill-rule:evenodd;stroke:#b3b3b3;stroke-width:0.99999994;stroke-miterlimit:4;stroke-dasharray:none"
117
+       d="M 5.9548251,7.5 L 7.1714125,7.5"
118
+       id="path3269" />
119
+    <rect
120
+       style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
121
+       id="rect3271"
122
+       width="1"
123
+       height="1"
124
+       x="3"
125
+       y="3" />
126
+    <rect
127
+       style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
128
+       id="rect3273"
129
+       width="1"
130
+       height="1"
131
+       x="4"
132
+       y="5" />
133
+    <rect
134
+       style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
135
+       id="rect3275"
136
+       width="1"
137
+       height="1"
138
+       x="4"
139
+       y="7" />
140
+    <path
141
+       style="opacity:1;fill:#b3b3b3;fill-opacity:1;fill-rule:evenodd;stroke:#b3b3b3;stroke-width:0.99999994;stroke-miterlimit:4;stroke-dasharray:none"
142
+       d="M 5.0332403,9.5 L 7.1380474,9.5"
143
+       id="path3281" />
144
+    <rect
145
+       style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
146
+       id="rect3283"
147
+       width="1"
148
+       height="1"
149
+       x="3"
150
+       y="8.9999962" />
151
+    <path
152
+       style="opacity:1;fill:#b3b3b3;fill-opacity:1;fill-rule:evenodd;stroke:#b3b3b3;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
153
+       d="M 5.9922723,11.5 L 7.1790159,11.5"
154
+       id="path3305" />
155
+    <rect
156
+       style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
157
+       id="rect3307"
158
+       width="1"
159
+       height="1"
160
+       x="4"
161
+       y="10.999996" />
162
+  </g>
163
+</svg>

BIN
src/com/dmdirc/res/treeview.png View File


Loading…
Cancel
Save