Amin Ya
Amin Ya
Another way is to just avoid doing this, and add an option to `addButton` itself, and have separate buttons for different grammars. This doesn't change modifiers syntax too. It allows...
> > ```ts > > toolBar.addButton({ > > icon: 'octoface', > > grammar: "julia", > > callback: "app:do-julia" > > }); > > > > toolBar.addButton({ > > icon: 'octoface',...
Which toolbar provider are you using?
@ericcornelissen @suda I cannot seem to be able to propagate `button` style (size, colors, etc) to the icon (svg). I would appreciate any help here. There is also `@mdi/svg`: https://github.com/Templarian/MaterialDesign-SVG,...
> What I can say based just on your comment: Note that for the color you probably need to use the CSS attribute `fill` instead of `color` to add color...
@ericcornelissen This now works. Now we only need to fix the tests! I cannot query the svg element anyhow. 😞
Besides this PR, I saw another very cool framework which is called iconify. I am trying to learn how it works. Using that we can expand the number of supported...
I wrote this but I cannot make it show the list ```js const {ToolBarButtonView} = require("./tool-bar-button-view"); const SelectListView = require('atom-select-list'); class ToolBarDropdown { constructor (buttonOptions, listItems, group) { this.element =...
I got it working using atom-select-list:  It isn't the most beautiful dropdown yet. Unfortunately, it changes the width of the toolbar itself. The code items/tool-bar-dropdown.js ```js const {ToolBarButtonView} =...
It is more beautiful now using the actual button type of the Toolbar itself (without atom-select-list). Still has the toolbar width changing issue:  The code items/tool-bar-dropdown.js ```js const {ToolBarButtonView}...