Customize menu css

I'm trying to change the background to a Menu inside a MenuBar. I was able to change the MenuItem's background, but there's this gap at the top and at the bottom of the menu which is still gray, and I can't seem to find a way to change it.
This is my code
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.stage.Stage;
public class CustomizeMenu extends Application {
  public static void main(String[] args) { launch(args); }
  @Override public void start(Stage stage) {
    MenuBar mb = new MenuBar();
    Menu menuFile = new Menu("File");
    Menu menuView = new Menu("View");
    menuView.getItems().addAll(new CheckMenuItem("All"), new CheckMenuItem("None"));
    menuFile.getItems().addAll(new MenuItem("Open"), menuView, new MenuItem("Close"));
    mb.getMenus().add(menuFile);
    Group g = new Group(mb);
    Scene scene = new Scene(g, 400, 300);
    scene.getStylesheets().add(CustomizeMenu.class.getResource("custom-menu.css").toExternalForm());
    stage.setScene(scene);
    stage.show();
}This is my css
.menu  {
  -fx-background-color: blue;
  -fx-text-fill: white;
.menu-item{
    -fx-background-color: blue;
.menu-item .label {
  -fx-text-fill: white;
.menu-item:focused .label {
  -fx-text-fill: white;
}Any help would be much appreciated, thanks.

ascuccimarra wrote:
Thanks for your response David, that did the trick. Didn't even find a reference to it in caspian.css. This definitely seems something that could be improved. Hope this thread helps others.ContextMenuContent is inserted into the scene graph when the menu is rendered. Basically it seems belong to the skin. You can find out about this with ScenicView if you manage to get hold of the scene used by the ContextMenu popup (I could do this with a CustomMenuItem). Regarding the css, David simply used the classname as selector as documented in the css reference.

Similar Messages

  • [SOLVED] XFCE customize menu help: applications and directory menu

    I've been trying to make some progress with customizing XFCE menus. There are two menus I'm trying to create, listed below.
    Yes, i have read http://wiki.xfce.org/howto/customize-menu
    No, I'm not saying I understood all of it.
    1. I want to have a custom Applications menu that lists all installed applications, without categorization. Preferably alphabetical. I'm guessing it has a lot to do with adding a lot of <include> directives.
    Here's what I've tinkered with so far, which produces categories of apps.
    <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
    <Menu>
    <Name>Xfce</Name>
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>
    <Include>
    <Filename>xfce4-run.desktop</Filename>
    </Include>
    <Layout>
    <Merge type="all"/>
    <Separator/>
    <Menuname>Settings</Menuname>
    <Filename>xfce4-run.desktop</Filename>
    </Layout>
    <Menu>
    <Name>Settings</Name>
    <Directory>xfce-settings.directory</Directory>
    <Include>
    <Category>Settings</Category>
    </Include>
    <Layout>
    <Filename>xfce-settings-manager.desktop</Filename>
    <Separator/>
    <Merge type="all"/>
    </Layout>
    <Menu>
    <Name>Screensavers</Name>
    <Directory>xfce-screensavers.directory</Directory>
    <Include>
    <Category>Screensaver</Category>
    </Include>
    </Menu>
    </Menu>
    <Menu>
    <Name>Accessories</Name>
    <Directory>xfce-accessories.directory</Directory>
    <Include>
    <Or>
    <Category>Accessibility</Category>
    <Category>Core</Category>
    <Category>Legacy</Category>
    <Category>Utility</Category>
    </Or>
    </Include>
    <Exclude>
    <Or>
    <Filename>exo-file-manager.desktop</Filename>
    <Filename>exo-terminal-emulator.desktop</Filename>
    <Filename>xfce4-about.desktop</Filename>
    <Filename>xfce4-run.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Development</Name>
    <Directory>xfce-development.directory</Directory>
    <Include>
    <Category>Development</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Education</Name>
    <Directory>xfce-education.directory</Directory>
    <Include>
    <Category>Education</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Games</Name>
    <Directory>xfce-games.directory</Directory>
    <Include>
    <Category>Game</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Graphics</Name>
    <Directory>xfce-graphics.directory</Directory>
    <Include>
    <Category>Graphics</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Multimedia</Name>
    <Directory>xfce-multimedia.directory</Directory>
    <Include>
    <Category>Audio</Category>
    <Category>Video</Category>
    <Category>AudioVideo</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Network</Name>
    <Directory>xfce-network.directory</Directory>
    <Include>
    <Category>Network</Category>
    </Include>
    <Exclude>
    <Or>
    <Filename>exo-mail-reader.desktop</Filename>
    <Filename>exo-web-browser.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Office</Name>
    <Directory>xfce-office.directory</Directory>
    <Include>
    <Category>Office</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>System</Name>
    <Directory>xfce-system.directory</Directory>
    <Include>
    <Or>
    <Category>Emulator</Category>
    <Category>System</Category>
    </Or>
    </Include>
    <Exclude>
    <Or>
    <Filename>xfce4-session-logout.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Other</Name>
    <Directory>xfce-other.directory</Directory>
    <OnlyUnallocated/>
    <Include>
    <All/>
    </Include>
    </Menu>
    </Menu>
    2. I want to make a different Directory menu, possibly by implicating a custom Applications menu. If I could locate the .menu file for the Directory menu panel item, I would like to make minor adjustments to the menu, and invoke it through the Applications menu panel item.
    I should state that what I'm trying to accomplish is
    a) to remove the submenu-like options with the Directory menu (open Folder, open in Terminal) to have one-click to open the folder directory
    b) to add a label next to the panel icon (aesthetics), which would be accomplished through using the Applications menu panel item.
    Edit: clarity
    Last edited by heyitstallchris (2014-07-31 02:02:36)

    Firstly, I'll tackle menu 1.
    No need to create an include line for every .desktop file. Do the following:
    $ mkdir ~/.config/menus
    $ cd ~/.config/menus
    $ touch custom-apps.menu
    Edit the file we have just created and populate it with the following:
    <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
    <Menu>
    <Name>Applications</Name>
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>
    <Include>
    <Category>X-Xfce-Toplevel</Category>
    <Category>Settings</Category>
    <Category>Accessibility</Category>
    <Category>Core</Category>
    <Category>Legacy</Category>
    <Category>Utility</Category>
    <Category>Development</Category>
    <Category>Education</Category>
    <Category>Game</Category>
    <Category>Graphics</Category>
    <Category>Audio</Category>
    <Category>Video</Category>
    <Category>AudioVideo</Category>
    <Category>Network</Category>
    <Category>Office</Category>
    <Category>System</Category>
    </Include>
    <Layout>
    <Merge type="all"/>
    </Layout>
    </Menu>
    Now just create an application menu panel item and point it to the custom menu file we just created.
    This will display every application installed on your system, and any custom .desktop entries you may create (as long as they are set in one of the categories in the menu file). Add or remove categories as you need.
    If you want to have the "Run Program" and other "Action" items that are in the default Xfce menu, add a category line for "X-Xfce-Toplevel"
    Alternatively, you can forego all the <Category></Category> lines and simply use <All/>
    [EDIT] and since this is using garcon (Xfce's menu library), the apps will be in alphabetical order [/EDIT]
    Cheers.
    Last edited by Padfoot (2014-07-17 09:42:16)

  • I'm using web developer1.1.9 ad-on. When I select a menu CSS- View Style Information, I see red outlined div's, etc. but I can't see these outlines anymore.

    I'm using web developer1.1.9 ad-on. When I select a menu CSS->View Style Information, I see red outlined div's, etc. but I can't see these outlines anymore.
    I tried uninstall and install both Firefox and Developer ad-on but it did not solve the problem.

    Firefox also have build-in web developer tools, so there is less need for extensions.
    *http://hacks.mozilla.org/2012/03/firefox-aurora-13-developer-tools-updates/
    *https://developer.mozilla.org/en/Tools/Page_Inspector
    *https://developer.mozilla.org/en/Tools/Page_Inspector/HTML_panel
    *https://developer.mozilla.org/en/Tools/Page_Inspector/Style_panel

  • Want to customize Menu Bar - Where can I find explanations of the almost 200 editable items in the Properties for "ul.MenuBarHorizontal" ?

    I want to design/customize a horizontal Menu Bar. However I'm flying blind on what the meanings (parameters) of each of the almost 200 editable items are in the Properties for "ul.MenuBarHorizontal" ?
    Where can I find each item explained? Have looked on line and in the library.
    Thanks.

    Here's a link to the help pages for the Spry Menu Bar: http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS90E6DF98-60A3-41a4-B427-CD057D57BB7A. html#WS37318579-3916-46db-80D1-A8C5E6777BE5a
    Understanding the CSS for a Spry Menu Bar is an exercise in understanding descendant styles. David Powers has just published a good tutorial on the Spry Menu Bar. His explanations are very good.
    http://foundationphp.com/tutorials/sprymenu/customize1.php will get you there.
    Beth

  • GRC AC 10.0 - Customize Menu

    Hello!
    Does anyone know if there is any documentation how to customize the GRC AC Menu? I have achieved to create a launchpad called "Special Transactions" next to the standard launchpads "MyHome", "Setup", "Access Management" and "Reports and Analytics", however I get a runtime error when I click on my custom launchpad. I want to show there some useful transactions that give some additional information.
    Since I didn't find any documentation I don't really know what I've done wrong, and therefore I can't correct it. Has anyone already had some expierience with this or has any additional information?
    Thanks in advance
    Michael Gahler

    Hi David,
    1) First need to check whether the connection test and authorization tests are works fine. Then we can say that no issues with RFC.
    2) Try to run the Sync job through SPRO and please let us know what is the error u r getting, you can see that in job log.
    3) Hope you did the settings (Maintain Connection settings) under Common Component settings -> integration frame work. And along with this, we have to add the connector under Access control -> Maintain Connection settings.
    Check this settings once.
    All the best.
    Thanks,
    Sankar.

  • Help with spry menu css

    Very new to this, so...in an effort to code a page using a spry menu bar for a mobile device, I made the following edits: 1) renamed MenuBarHorizontal to MenuBarMyCompany 2) renamed MenuBarVertical to MenuBarMyCompany 3) moved the SpryMenuBarHorizontal.css code to MyCompanyStyle.css 4) moved the SpryMenuBarVertical.css code to mobile.css. These changes are displayed exactly as I’d hoped in Dreamweaver CS5.5 Live View; however, the menu bar styling is does not display at all in Safari or Firefox browsers. Any advice? Thanks so much.

    When I reviewed the source, I realized I hadn't removed one of the style links. I am so sorry to have posted this question.

  • Dynamic menu css not displaying correctly in https

    Hello,
    Need help! I'm trying to get my menu to display properly in https but no luck so far. (Chrome and IE) Please let me know if there is a solution. Thank you.
    good menu look http://winxed.businesscatalyst.com/
    bad menu look https://winxed.worldsecuresystems.com/events/eyelash-extension-extensive-class-houston

    Just drop a zoom:100% style on the link, and IE will get it
    right.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TC2112" <[email protected]> wrote in
    message
    news:fh2nt4$4u8$[email protected]..
    > Hello,
    >
    > The problem is with IE, not Firefox.
    > The content of your menu link tags is a clear gif image
    that is the same
    > height as the background images applied to the link tag
    that change on
    > mouseover.
    > Even though it looks like you want it to in IE, IE is
    actually rendering
    > your
    > code incorrectly.
    > Firefox is rendering your code exactly as it should.
    >
    > Your background images are applied by CSS to the link,
    not the image
    > within.
    > In standards compliant browsers like Firefox, the height
    of link
    > attributes
    > such as background and border are determined by the font
    size or line
    > height
    > that applies to that link, even if there is no text in
    the link.
    > As a test, you can add font-size:38px (the height of
    your background
    > images)
    > to "table.menu" in your CSS and you'll see your entire
    link background
    > images
    > in FF.
    > IE incorrectly streches the link background to the
    height of the image
    > within
    > within the link.
    > IE does the same thing to borders if they are applied to
    just the "a" tag
    > and
    > not to "a img" in the CSS.
    >
    > A quick fix:
    >
    > table.menu { width:186px; margin-top:6px;
    > line-height: 38px; }
    >
    > A better fix and some great information:
    >
    >
    >
    >
    http://projectseven.com/tutorials/css/uberlinks/index.htm
    >
    > and:
    >
    >
    http://css.maxdesign.com.au/listamatic/
    >
    > Hope that helps,
    >
    > Take care,
    > Tim
    >

  • Odd spry menu / css positioning

    Hi folks,
    Working on a site with a Spry menu - looks as expected in IE,
    but totally
    out of whack in FF and Safari. Any suggestions to what I'm
    missing?
    http://www.applicationdynamics.com/Clients/pwj/
    I'm sure I'm just neglecting to configure the CSS correctly
    but haven't
    found the trick yet.
    Thanks!
    Lawrence
    Cartweaver.com

    "Lawrence *Adobe Community Expert*"
    <[email protected]> wrote in
    message news:g915h6$t2o$[email protected]..
    > Never mind.... Got it.
    Hi Lawrence,
    Maybe you got the part of it you caught as an issue, but it
    still doesn't
    work very well in IE7. The links are not being treated as
    blocks so unless
    you are moused over the actual text in a submenu, it will
    snap shut.
    I'd recommend a better menu, but you should be able to fix
    this easily
    enough and so long as there are not third-level flyouts,
    usability with Spry
    is OK.
    Al Sparber - PVII
    http://www.projectseven.com
    Fully Automated Menu Systems | Galleries | Widgets
    http://www.projectseven.com/go/Elevators

  • Challenge popup menu,  css stylesheet and button in table component

    Hello, in my last post i put the code of an example of popup menu but the only thing that need to run was a cdata tag. But in the example i only can open and close the popup menu in the top and left location that previously set in the css stylesheet .
    1.- I need to create a popup menu that can be diplayed if i click on a button in a table component of creator
    2.- The menu must waits and let me select the opcion I choose with a click otherrewise
    3.- The menu must dissapear if i move the cursor mouse away of the menu,
    I really need somebody helps me faster as u can, and i apreciate ur help, tnks!

    The best thing to do would be to find an existing popup menu widget in a JavaScript library, like dojo (dojotoolkit.org). If you can't find an existing JavaScript widget that fulfills your needs, you can write your own. It won't be easy, but you can use Creator's Auto Complete Text Field's JavaScript as a model. If that is the case, look at both the JavaScript at http://sunapp2.whardy.com/AjaxSamples2/faces/static/META-INF/autocomplete/script.js and the HTML source of the page located at http://sunapp2.whardy.com/AjaxSamples2/faces/DemoAutoCompleteTextField.jsp which is a page that is part of the Creator AJAX component catalog (http://developers.sun.com/ajax/componentscatalog.jsp).

  • SPRY Horizontal Menu CSS control

    I am using spry 1.6 (upgraded) on dreamweaver CS3. I created
    a horizontal SPRY menu within a div and I want to center the menu
    within the div using CSS. I can't seem to get this to work. I would
    have thought applying "margin: 0px Auto;" to the ul.horizontalMenu
    (sp?) class in the Spry CSS file would have done the trick but it
    seems to ignore the auto. I can put say 0px 20% and it works but
    this does not compensate for possible expanding menus. I know this
    is a newbee question but that is what I am.
    Thanks for the help in advance
    Terry

    Hi,
    The original CSS has been very carefully composed so that it will work in all browsers. If you make any changes to the original and you do not know what you are doing, you are asking for problems.
    When I look at your first set of rules and I see the following marked in red and a rules marked in green that are left out, then I know you will have a problem:
    ul.MenuBarHorizontal
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
        background-image: url(myImage.jpg); // rename the image to your own
        background-repeat: repeat;
        vertical-align: bottom;
        float: none;
        position: absolute;
        margin: auto;
    Keep in mind that the original stylesheet has no browser issues. Any changes that you make are for your account and have basically nothing to do with Spry.
    My suggestion to you is, make a copy of the modified stylesheet for reference, then put back the original stylesheet. Consequently, make a new stylesheet called myStyles.css or similar, and put your changed rules in the newly created stylesheet eg.
    ul.MenuBarHorizontal
         background-image: url(myImage.jpg);
         background-repeat: repeat;
    Then attach this stylesheet to your document after the original stylesheet.
    If you cannot get the required result, merely play around with the rules within myStyles.css.
    I hope this helps.
    Ben

  • Third level Menu CSS?

    HI folks,
    I'm working on a third level menu and I need a CSS fix for this, and I'm not sure I understand why it is dropping down  instead of flying out...
    To see the menu in action, go here : http://bendannie2.businesscatalyst.com/Sale  and hover over  the On Sales menu.  The third level menu is dropping down and when I try to move it right with a left margin, the container box remains in place and only the text  li     moves right...
    And it really shouldn't display until I'm hovering over the Cartier Jewelry link...
    TIA,
    Jeff
    The code so far is:
    nav ul ul {
        background: #FFFFFF/*url(images/nav-current.png) repeat-x scroll center top*/;
        opacity:0.8;
    filter:alpha(opacity=90); /* For IE8 and earlier */
        -moz-box-shadow: 0px 3px 5px 0px rgba(68,68,68,0.7);
        -webkit-box-shadow: 0px 3px 5px 0px rgba(68,68,68,0.7);
        box-shadow: 0px 3px 5px 0px rgba(68,68,68,0.7);
        left: -999em;
        list-style: none outside none;
        margin: 0;
        padding: 4px 0 0;
        position: absolute;
        top: 89px;
        width: 12em;
    nav li:hover ul,
    nav li.sfhover ul{
        left: auto;
    nav ul ul ul li{
        background: none;
        border-bottom: 1px solid #6699FF;
        list-style: none;
        margin: 0 0 0  0px;
        padding: 0;
    nav ul ul li{
        background: none;
        border-bottom: 1px solid #6699FF;
        list-style: none;
        margin: 0 0 0 -20px;
        padding: 0;
        nav ul ul li a:link,
        nav ul ul li a:visited{
        color: #3399FF;
        display: block;
        font-family: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Helvetica, Arial, sans-serif, "Bitstream Vera Sans";
        font-size: 12px;
        padding: 8px 5px;
        text-decoration: none;
        nav ul ul li a:active,
        nav ul ul li a:hover{
        background: #e4e4e4;
        color: #3366FF;
        padding: 8px 5px;

    HI folks,
    I'm working on a third level menu and I need a CSS fix for this, and I'm not sure I understand why it is dropping down  instead of flying out...
    To see the menu in action, go here : http://bendannie2.businesscatalyst.com/Sale  and hover over  the On Sales menu.  The third level menu is dropping down and when I try to move it right with a left margin, the container box remains in place and only the text  li     moves right...
    And it really shouldn't display until I'm hovering over the Cartier Jewelry link...
    TIA,
    Jeff
    The code so far is:
    nav ul ul {
        background: #FFFFFF/*url(images/nav-current.png) repeat-x scroll center top*/;
        opacity:0.8;
    filter:alpha(opacity=90); /* For IE8 and earlier */
        -moz-box-shadow: 0px 3px 5px 0px rgba(68,68,68,0.7);
        -webkit-box-shadow: 0px 3px 5px 0px rgba(68,68,68,0.7);
        box-shadow: 0px 3px 5px 0px rgba(68,68,68,0.7);
        left: -999em;
        list-style: none outside none;
        margin: 0;
        padding: 4px 0 0;
        position: absolute;
        top: 89px;
        width: 12em;
    nav li:hover ul,
    nav li.sfhover ul{
        left: auto;
    nav ul ul ul li{
        background: none;
        border-bottom: 1px solid #6699FF;
        list-style: none;
        margin: 0 0 0  0px;
        padding: 0;
    nav ul ul li{
        background: none;
        border-bottom: 1px solid #6699FF;
        list-style: none;
        margin: 0 0 0 -20px;
        padding: 0;
        nav ul ul li a:link,
        nav ul ul li a:visited{
        color: #3399FF;
        display: block;
        font-family: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Helvetica, Arial, sans-serif, "Bitstream Vera Sans";
        font-size: 12px;
        padding: 8px 5px;
        text-decoration: none;
        nav ul ul li a:active,
        nav ul ul li a:hover{
        background: #e4e4e4;
        color: #3366FF;
        padding: 8px 5px;

  • Horizontal dropdown menu/css

    Have worked out a horizontal menu using css but I'm stuck with the drop down part. There are two areas that drop down, one under Data Entry and the other under Reports. So far the only style used is display: inline;.View the file --> http://classreunionprogram.com/test_css/css.menu.htm
    Also get a validation error because of ignorance of how to.Any help is great.
    Thanks.

    Is this what you had in mind?
    http://alt-web.com/DEMOS/CSS2-Horiz-Drop-Menu.shtml
    NOTE: Pay close attention to how the list mark-up is laid out.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Spry Menu CSS Editing - Need Explicate Instructions

    I have two menus & two style sheets. – Please: Is there an article or book that highlights the style names that need to be changed on the 2nd style sheet.
    I changed different things; more things, less things and get new errors each time.
    I got my first set working perfectly then started breaking things and can’t find my errors.
    In this sample the drop-downs do work but the Right & Hover Arrows don’t appear. - In the Oracle CMS Portal I lose the 2nd menu drop-down: http://www.coronasdomain.net/jmh/mnu/ddNav/
    Thanks,
    Corona

    This is good to keep in mind when changing the CSS http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#one
    When you have two menus use the menu ID (eg MenuBar1 and MenuBar2) to assign the rule changes. Keep the original CSS and use an overriding CSS with the modified rules
    eg.
    #MenuBar1 ul.MenuBarHorizontal a {
        background-color: black;
        color:white;
    and
    #MenuBar2 ul.MenuBarHorizontal a {
        background-color:yellow;
        color: black;

  • Horizontal menu CSS heirarchy

    A while back, one of you wonderful folks posted a link to a tutorial (I believe by one of this group's contributors) of sorts and it contained some very helpful info to newbies on understanding the heirarchy of items in the SpryMenuBarHorizontal.css and how each style afftected each menu item.  I lost that link...can someone help? Thanks for sharing!!

    Or, is there a good way for me to figure out which CSS items control which menu and submenu items?

  • Customize menu

    Clicking on the elipses (...) on a document a menu pops up 
    View properties
    Edit properties
    Versions
    etc...
    I've been asked to remove "Publish a major version" from this list.
    Can I customize this in SP2013 designer and if so, how?  
    Thanks
    Tom

    This worked, thanks.
    For those who may use this I have a few some comments:
    It was one long string in my editor and commenting out the "AddCheckinCheckoutMenuItem" caused the entire line to be removed.  So I just deleted that call.
    Also, I figured out what he meant was to make a copy of CORE.JS and call it customcore.js then copy it back into that directory.
    I then went to the page in question and Edited it in Sahrepoint.  Adding a Web Part > Script Editor and pasted in <script src="/_layouts/15/customcore.js" type="text/javascript"></script>.  Note:
    there was an extra space in the example after /15 whihc needed removed.
    Note, this is the "Hammer approach" and will remove Checkin/Checkout also.  I needed to be more granular. So after finding the function in the awful single string unformatted file, I formatted it and commented just this:
                    var x = null;
                    if((currentItemModerationStatus==String(1)||currentItemModerationStatus==String(3))&&a.isModerated||!a.isModerated&&k!=0){
                     //Removed 12/14
                     //d=Strings.STS.L_PublishItem_Text;
                     //c="PublishMajorVersion(event, '"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+f+"&Publish=true')";
                     //e=a.imagesPath+"pubmajor.gif";
                     //b=CAMOpt(g,d,c,e,null,String(320));
                     //CUIInfo(b,"Publish",["Publish"]);b.id="ID_PublishItem"
                     x=null;
                     else {

Maybe you are looking for