Esanders has uploaded a new change for review.
https://gerrit.wikimedia.org/r/232739
Change subject: Add graph icon
......................................................................
Add graph icon
Change-Id: Iec1d6d945f4d0b764ec47922e1bfb7ab75fb55a9
---
M Graph.hooks.php
A modules/VisualEditor/graph.svg
M modules/VisualEditor/ve.ui.MWGraphDialogTool.js
A modules/VisualEditor/ve.ui.MWGraphIcons.css
4 files changed, 20 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Graph
refs/changes/39/232739/1
diff --git a/Graph.hooks.php b/Graph.hooks.php
index 862e3bc..b5f73a4 100644
--- a/Graph.hooks.php
+++ b/Graph.hooks.php
@@ -34,6 +34,7 @@
'modules/VisualEditor/widgets/ve.ui.TableWidget.js'
),
'styles' => array(
+
'modules/VisualEditor/ve.ui.MWGraphIcons.css',
'modules/VisualEditor/widgets/ve.ui.RowWidget.css',
'modules/VisualEditor/widgets/ve.ui.TableWidget.css'
),
diff --git a/modules/VisualEditor/graph.svg b/modules/VisualEditor/graph.svg
new file mode 100644
index 0000000..c035569
--- /dev/null
+++ b/modules/VisualEditor/graph.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24
24">
+ <g id="graph">
+ <path id="axes" d="m 5,6 0,11 0,1 1,0 13,0 0,-1 L 6,17 6,6 5,6 z" />
+ <path id="data" d="m 7,16 0,-3 4,-3 3,2 4,-4 0,8 -11,0 0,0" />
+ </g>
+</svg>
diff --git a/modules/VisualEditor/ve.ui.MWGraphDialogTool.js
b/modules/VisualEditor/ve.ui.MWGraphDialogTool.js
index 38cd535..6bb7f91 100644
--- a/modules/VisualEditor/ve.ui.MWGraphDialogTool.js
+++ b/modules/VisualEditor/ve.ui.MWGraphDialogTool.js
@@ -27,7 +27,7 @@
ve.ui.MWGraphDialogTool.static.group = 'object';
-ve.ui.MWGraphDialogTool.static.icon = 'code';
+ve.ui.MWGraphDialogTool.static.icon = 'graph';
ve.ui.MWGraphDialogTool.static.title = OO.ui.deferMsg(
'graph-ve-dialog-button-tooltip' );
diff --git a/modules/VisualEditor/ve.ui.MWGraphIcons.css
b/modules/VisualEditor/ve.ui.MWGraphIcons.css
new file mode 100644
index 0000000..b8bf0a7
--- /dev/null
+++ b/modules/VisualEditor/ve.ui.MWGraphIcons.css
@@ -0,0 +1,11 @@
+/*!
+ * VisualEditor UserInterface Graph icon styles.
+ *
+ * @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
+ * @license The MIT License (MIT); see LICENSE.txt
+ */
+
+.oo-ui-icon-graph {
+ /* @embed */
+ background-image: url(graph.svg);
+}
--
To view, visit https://gerrit.wikimedia.org/r/232739
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec1d6d945f4d0b764ec47922e1bfb7ab75fb55a9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits