MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onSelectTheme

Method onSelectTheme

src/app/commands/cmd_options.cpp:471–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469 }
470
471 void onSelectTheme() {
472 ThemeItem* item = dynamic_cast<ThemeItem*>(themeList()->getSelectedChild());
473 if (item &&
474 item->themeName() != m_pref.theme.selected()) {
475 m_pref.theme.selected(item->themeName());
476
477 ui::Alert::show(PACKAGE
478 "<<You must restart the program to see the selected theme"
479 "||&OK");
480 }
481 }
482
483 void onOpenThemeFolder() {
484 ThemeItem* item = dynamic_cast<ThemeItem*>(themeList()->getSelectedChild());

Callers

nothing calls this directly

Calls 1

getSelectedChildMethod · 0.80

Tested by

no test coverage detected