Assign a customized image to an icon on the Quick Access Toolbar
7 views (last 30 days)
Show older comments
I have created two Quick Access Toolbar buttons that let me toggle between two desired Matlab Desktop layouts, one which arranges the panes in a certain way when the Editor is docked, and one when the Editor undocked:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1600751/image.png)
However, it is unappealing to me that both use the same visual icon
. I would like to assign alternative and distinct images to each of these icons.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1600756/image.png)
I notice that the custom Quick Access Buttons are configured with .xml files in the prefdir. I have attached the .xml.zip for my "Docked" button as an example. I was wondering if there is something in the file that I could add or modify to change the icon image. I am looking for tags that dictate the current image, but cannot determine which it is.
Does anyone know if/how such a customization could be made?
0 Comments
Accepted Answer
kei hin
on 26 Jan 2024
Edited: kei hin
on 26 Jan 2024
Right click on your Quick Access Toolbar button, then edit the icon you want in command edit window.
In R2019b, command below will be found in a xml file named with FavoriteCommands. Change 'favorite_command' to the icon image file path you want.
<callback>clear;clc</callback>
<icon name="favorite_command"/>
5 Comments
More Answers (0)
See Also
Categories
Find more on Desktop in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!