r = lookandfeel()
ce = lookandfeel('available')
p = lookandfeel(lf)
ss = lookandfeel('stylesheet')
pp = lookandfeel('stylesheet', ss)
| Parameter | Description |
|---|---|
| lf | a string: look and feel to apply. |
| ss | a string: style sheet to apply. |
| Parameter | Description |
|---|---|
| r | a string: current look and feel. |
| ce | a cell of strings: list of look and feel available. |
| ss | a string: current style sheet applied. |
| p | a string: previous look and feel applied. |
| pp | a string: previous style sheet applied. |
lookandfeel manages look and feel Nelson application.
currentlf = lookandfeel();
lfs = lookandfeel('available')
for lf = lfs'
lookandfeel(lf{1})
sleep(10);
end
lookandfeel(currentlf)
currentstylesheet = lookandfeel('stylesheet')
stylefilename = [modulepath('gui'), '/resources/darkstyle.qss'];
edit(stylefilename)
newstyle = fileread(stylefilename);
previousstylesheet = lookandfeel('stylesheet', newstyle)
sleep(10);
lookandfeel('stylesheet', previousstylesheet)
| Version | Description |
|---|---|
| 1.0.0 | initial version |