These add icons to the toolbar. I think the outline of the work would be roughly the following:Antidote integrates with Firefox and Thunderbird by means of add-on modules. No there is not and there likely will never be both due to the much more limited Thunderbird development going on now and especially due to the Apples restrictions on the JavaScript and browser engines that. Mozilla only has Thunderbird/Firefox for Windows, Linux and Mac OSX on desktop, mobile Firefox for Android and the Firefox OS for phones.
![]() ![]() Mozilla Firefox Thunderbird Mac OSX On(Edit: As noted by Ken below, it is possible to set custom text styling by using an NSAttributedString as the label.) Their styling cannot be customized, but we also do not need to maintain them because they automatically adopt the updated look of any new macOS versions. These menu items are displayed with the native style for the OS. A native menu item, which can have a label, an icon, a checkmark, a submenu, and a shortcut key annotation. So that means, for each horizontal row in a menu, we have the choice between two options: If you try the same in a native menu, for example in the Bookmarks menu from the menubar, then the Cmd key is ignored and the clicked bookmark will open in the current tab. Handling of arbitrary modifier keys when clicking menu items: For example, if you click a bookmarks folder in the Bookmarks toolbar to display the folder contents in a menu, and then hold the Cmd key while clicking a bookmark item, the item will load in a new tab. If there are visual elements in custom views that are intended to match the OS native look, then the code for these visual elements needs to be updated whenever a new macOS version with an updated look is released.I'm aware of three features our fake menus have, which I don't think we can replicate in native menus: Any text styling, hover effects, click handling, flashing effects etc needs to be implemented manually. They can have arbitrary content and user input handling. This is not possible with native menus - you cannot stack native menus, and you cannot right-click native menu items. "Menus on menus": For example, if you click a bookmarks folder in the Bookmarks toolbar, and then right-click a bookmark in the menu, you get a context menu that is displayed on top of the bookmarks folder popup. It looks like we can handle arbitrary modifier keys on native menu items. We may want to update their styling to be explicitly different from native menus, so that users can have the right expectations for what they can do with them.Also, for right-click context menus inside the custom bookmark folder menus, we can definitely use a native menu for the context menu.As an alternative, we could decide to drop all this extra functionality on macOS. This is not possible in native menus.For these reasons, I think we should keep using custom menus for bookmarks folders in the Bookmarks Toolbar. Drag and drop of menu items: In bookmarks folder menus from the Bookmarks Toolbar, you can move and reorder bookmarks using drag and drop, even across different folders and submenus. If we want to keep this custom icon row, we cannot use native menu items for these buttons, but we can implement the icon row with a custom view. The main content area context menu has a row at the top that shows four big icons: back, forward, refresh, bookmark. However, we would need custom NSView implementations for the following: Notes on "special things"Most of our context menus only use basic menu elements and should easily work as native menus. ![]() I tried it just now, and it's broken in several ways: the drawing is wrong, the mouse handling is wrong, and even keyboard shortcuts light up (but don't do anything) when it's open. Safari, in fact, supports exactly that feature! No need for custom menu items here, thankfully."Menus on menus" is such a strange interaction I wasn't aware Firefox did this. I think Firefox should be improved to support cmd=newtab in the menu bar Bookmarks menu, as you suggest. A couple thoughts (as a Mac developer who has fought with custom menus before):You can handle modifier keys from stock menu items. Micrsoft office for mac osx torrent(Maybe "option"? In Safari, option always means "download", but it seems to be unused in Firefox. A common method I tend to see for "show me this in context" is holding down command while choosing a menu item (e.g., holding command while selecting an app from a folder's menu in the dock shows that app in the Finder rather than launching it), but unfortunately "command" is already used for "open in new tab". I've never seen any other Mac application have "menus on menus", and it breaks one of the most common standard menu operations (to be able to right-click on a menu item to choose it), so I would not be at all sad to see this removed.Still, I do see value in being able to see a bookmark in a menu and go directly to editing it, if a more Mac-like way could be found. This makes it easy to make an ordinary menu item with a special font, or even insert images (with transparency) in the middle of the text. In my own application, I took a middle path: NSMenuItem has an "attributedTitle" property for using an NSAttributedString as its label. It's true that if you use a custom NSView, you take on responsibility for all drawing and event handling, which is a pain.
0 Comments
Leave a Reply. |
AuthorAngela ArchivesCategories |