New: CuteMenus

Talk about add-ons and extension development.
Post Reply
rue
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post by rue »

Neptune for CuteMenus v1.0 (+Aaron Spuler): <a href="http://adblock.mozdev.org/cutemenus/neptune.xpi">Installer</a>
.
The second Iconpack for Aaron's theme series -- this time straight from Aaron himself! Be sure and scope his <a href="http://mozthemes.tk">theme-page</a>, while you're at it.
.
(requires CuteMenus <a href="http://forums.mozillazine.org/viewtopic.php?t=33787&postdays=0&postorder=asc&start=105#273844">v.3.1</a>.)
User avatar
cheeaun
Posts: 826
Joined: November 5th, 2002, 10:55 pm
Location: Malaysia
Contact:

Post by cheeaun »

hmm.. odd. Why not aaron just put the icons into the theme? without the cutemenus extension? without the need of another installer?
Phoenity http://phoenity.com/
You should follow me on Twitter here http://twitter.com/cheeaun
intatia
Posts: 296
Joined: January 4th, 2004, 6:02 am
Location: Welly
Contact:

Post by intatia »

I love CuteMenus, it rocks:)
rue
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post by rue »

cheeaun:
CuteMenus adds the attribute "class='menuitem-iconic' to affected menuitems. The only way to accomplish this from a skin's css would be with an xbl-binding.
.
If you'd like to try, here's a sample declaration for the context-forward menuitem's css:
iconfile: forward.png;
-moz-binding: url("chrome://myskin/subdir/myskinBindings.xml#menuicons") !important;

.
Then, in the specified xml-file, you'd have some code that looked like this:

Code: Select all

<bindings id="myskinBindings"
      xmlns="http://www.mozilla.org/xbl"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      xmlns:html="http://www.w3.org/1999/xhtml">

<binding
      id="menuicons"
      extends="chrome://global/content/bindings/menu.xml#menuitem"
   >
   <implementation>
      <constructor>
         <![CDATA[
         
            // Any code placed here is run once,
            //   when the element is constructed.
            
            // set the image-attribute, for our icon
            var iconFile = this.style.getPropertyValue("iconfile");
            this.setAttribute("image",
               "jar:resource:/Chrome/myTheme.jar!/subdir/"
               + iconFile);
            
            // change this menuitem to an iconic-class
            this.setAttribute("class", "menuitem-iconic");
            
         ]]>
      </constructor>
   </implementation>
</binding>

</bindings>
User avatar
aaron
Posts: 3130
Joined: November 4th, 2002, 8:49 pm
Location: Texas
Contact:

Post by aaron »

Cutemenus support for the iCandy Junior Firebird theme added!! Visit my site to install it.
rue
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post by rue »

CuteMenus v.3.4 (+Lotsa Icons): <a href="http://adblock.mozdev.org/cutemenus/cutemenus-03-dev.xpi">Installer</a>, and <a href="http://adblock.mozdev.org/cutemenus/cutemenus.jar">jar-file</a>.

What's New: thanks to Aaron Spuler, many more menuitems are iconified. Aaron has updated his iconpacks to support them, so feel free to step <a href="http://mozthemes.tk">right this way</a>. Oh, and there's no need to restart after intalling a pack -- CuteMenus now updates its listing on-the-fly.
.
As before: pop the context-menu, then hold shift and move to configure.
.
(original is <a href="http://cute.mozdev.org">here</a>)
Motohiko
Posts: 65
Joined: November 22nd, 2003, 8:05 pm
Location: Japan
Contact:

Suggestions about localizability

Post by Motohiko »

Thank you rue. CuteMenus is a nice extension.

But Japanese users are disappointed because this extension does not work well with Japanese Lanugage Packs.
I've modified CuteMenus v0.3.4 for use with non-English locale packs.
# As temporal, the version string of this package set to 'v0.4'.

Image

To use with your locale pack, you must create locale pack of CuteMenus before. With my 'modified CuteMenus' and your locale packs, you can use it in your language!
Note: labels in locale/xx-XX/cutemenus.js (it contains hash 'iconLabels[]' definition only) should be written in escaped unicodes like *.properties files. And write locale/xx-XX/cutemenus.dtd in UTF-8N.

This is an experimental build and for a proposal.
http://www1.ttcn.ne.jp/~amotohiko/ya-cutemenus.0119.xpi
IMPORTANT: This is not compatible with previous versions. Do not install when previous version has been installed.


And rue, ppplease do not use directory name includes empty spaces...


I'm grad if original CuteMenus becomes to have localizability.
Sorry about funny English.
Thanks.
Sariyan
Posts: 142
Joined: September 12th, 2003, 2:53 pm

Post by Sariyan »

rue wrote:CuteMenus v.3.4 (+Lotsa Icons

weird... only sometimes i see new icons and when i turn on office xp skin there isn't this grey vertical stripe... :(
daftendireckt
Posts: 47
Joined: January 8th, 2004, 4:11 am
Contact:

Post by daftendireckt »

IMHO I prefer the chromeUser.css tip to have an offceXP style in menus.
If I am allowed I can provide my modified version of CuteMenus v3.4 : it includes userChrome.css in the extension and skinned icons to fit with the kids theme.
User avatar
frease
Posts: 3981
Joined: September 16th, 2003, 1:17 pm

Post by frease »

rue wrote:CuteMenus v.3.4 (+Lotsa Icons): <a href="http://adblock.mozdev.org/cutemenus/cutemenus-03-dev.xpi">Installer</a>, and <a href="http://adblock.mozdev.org/cutemenus/cutemenus.jar">jar-file</a>.

What's New: thanks to Aaron Spuler, many more menuitems are iconified. Aaron has updated his iconpacks to support them, so feel free to step <a href="http://mozthemes.tk">right this way</a>. Oh, and there's no need to restart after intalling a pack -- CuteMenus now updates its listing on-the-fly.
.
As before: pop the context-menu, then hold shift and move to configure.
.
(original is <a href="http://cute.mozdev.org">here</a>)


How do I update? Just install it over?
clav
Posts: 1974
Joined: November 5th, 2002, 3:25 am
Location: Lancaster, UK
Contact:

Post by clav »

rue wrote:cheeaun:
CuteMenus adds the attribute "class='menuitem-iconic' to affected menuitems. The only way to accomplish this from a skin's css would be with an xbl-binding


but you don't need to!

http://forums.mozillazine.org/viewtopic ... 303#268303



and your hackish piece of XBL probably wouldn't work anyway, since themes aren't allowed to run scripts ordinarily.
ghola
Posts: 191
Joined: December 1st, 2002, 1:57 pm

Post by ghola »

I don't use the Office XP look, but I just checked and can confirm the missing vertical band. I actually like it better this way.. :p
rue
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post by rue »

An update has been posted to the links above.
.
There was supposed be a silver-faded stripe for the skin. The graphic's filename included a bracket-character, and that's the only reason I could see for the failure.
.
It's been renamed, and I've included some additional iconifications from Aaron.
rue
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post by rue »

clav:
I hadn't tested my idea really, so I'd only be objecting in theoreticals :P
.
You did miss a critical point, though. My hack referenced ../global/content/bindings/, while yours uses ../global/content/widgets/.
.
The only way to allow for both is to "hackishly" discern with scripting.
rue
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post by rue »

Motohiko:
Would you mind looking at the build presently posted and translating the additional items for your locale? Aaron added a set for Composer and various miscellanea.
Post Reply