Introduce open user menu icon
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 2 Oct 2022 06:16:30 +0000 (08:16 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 2 Oct 2022 06:16:30 +0000 (08:16 +0200)
org.argeo.app.theme.default/icons/types/svg/openUserMenu.svg [new file with mode: 0644]
org.argeo.app.ui/src/org/argeo/app/ui/DefaultHeader.java
org.argeo.app.ui/src/org/argeo/app/ui/SuiteIcon.java

diff --git a/org.argeo.app.theme.default/icons/types/svg/openUserMenu.svg b/org.argeo.app.theme.default/icons/types/svg/openUserMenu.svg
new file mode 100644 (file)
index 0000000..a84bc65
--- /dev/null
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   id="Layer_1"
+   data-name="Layer 1"
+   viewBox="0 0 500 500"
+   version="1.1"
+   sodipodi:docname="openUserMenu.svg"
+   inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
+  <metadata
+     id="metadata35">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title>Artboard 153</dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="2309"
+     inkscape:window-height="1591"
+     id="namedview33"
+     showgrid="false"
+     inkscape:zoom="2.016"
+     inkscape:cx="151.5377"
+     inkscape:cy="249.50397"
+     inkscape:window-x="766"
+     inkscape:window-y="271"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="Layer_1"
+     inkscape:pagecheckerboard="true"
+     inkscape:document-rotation="0" />
+  <defs
+     id="defs4">
+    <style
+       id="style2">.cls-1{fill:#177f95;}.cls-2{fill:#fff;}.cls-3,.cls-4{fill:#305d74;stroke:#305d74;stroke-linecap:round;stroke-miterlimit:10;}.cls-3{stroke-width:11.28px;}.cls-4{stroke-width:30.86px;}</style>
+  </defs>
+  <title
+     id="title6">Artboard 153</title>
+  <rect
+     style="fill:#00294b;stroke-width:6.987;stroke-miterlimit:10;fill-opacity:1"
+     id="rect833"
+     width="579.83307"
+     height="554.9361"
+     x="-32.365406"
+     y="-23.750851" />
+  <polygon
+     class="cls-3"
+     points="389.25,409.19 340.72,360.35 437.77,360.35 "
+     id="polygon28"
+     transform="matrix(1.7950921,0,0,2.8439895,-448.72886,-847.64073)"
+     style="stroke:none;stroke-width:3.09231254;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;fill:#ffffff;fill-opacity:1" />
+</svg>
index 8d523213b00b61a727b7580738f0f2b7d94b595d..b8d78c982eaf3689eedc1eefa1b75f1d2c7585a6 100644 (file)
@@ -75,7 +75,7 @@ public class DefaultHeader implements CmsUiProvider {
 //
 //                     });
                        Label logOutL = new Label(end, 0);
-                       logOutL.setImage(theme.getSmallIcon(SuiteIcon.logout));
+                       logOutL.setImage(theme.getSmallIcon(SuiteIcon.openUserMenu));
                        logOutL.addMouseListener(new MouseAdapter() {
                                private static final long serialVersionUID = 6908266850511460799L;
 
@@ -83,7 +83,7 @@ public class DefaultHeader implements CmsUiProvider {
                                public void mouseDown(MouseEvent e) {
                                        cmsView.logout();
                                }
-                               
+
                        });
                } else {
                        end.setLayout(new GridLayout(1, false));
index bef2271c7aa54aefe8ee4df29eb4bfa64a4c8754..3f1947e7f8e7a45e109b5ea767a609aa61ca5136 100644 (file)
@@ -14,5 +14,9 @@ public enum SuiteIcon implements CmsIcon {
        // admin and settings
        settings, user,
        // misc
-       task, tag, location, inbox, map;
+       task, tag, location, inbox, map,
+       // actions
+       openUserMenu,
+       //
+       ;
 }