1 | PlasticTheme[] computeThemes() {↵ | | 1 | PlasticTheme[] computeThemes() {↵
|
2 | List themes = PlasticLookAndFeel.getInstalledThemes();↵ | | 2 | List themes = PlasticLookAndFeel.getInstalledThemes();↵
|
|
3 | return (PlasticTheme[]) themes.toArray(new PlasticTheme[themes.size()]);↵ | | 3 | return (PlasticTheme[]) themes.toArray(new PlasticTheme[themes.size()]);↵
|
4 | }↵ | | |
|
|
5 | ↵ | | 4 | }↵
|
|
6 | protected PlasticTheme getTheme(String name) {↵ | | 5 | protected PlasticTheme getTheme(String name) {↵
|
7 | PlasticTheme[] themes = computeThemes();↵ | | 6 | PlasticTheme[] themes = computeThemes();↵
|
|
8 | for (int i = 0; i < themes.length; i++) {↵ | | 7 | for (int i = 0; i < themes.length; i++) {↵
|
9 | String str = themes[i].getName();↵ | | 8 | String str = themes[i].getName();↵
|
|
10 | if (name.equals(str)) {↵ | | 9 | if (name.equals(str)) {↵
|
11 | return themes[i];↵ | | 10 | return themes[i];↵
|
12 | }↵ | | |
|
13 | }↵ | | |
|
|
14 | ↵ | | 11 | }↵
|
| | | 12 | }↵
|
|
15 | return null;↵ | | 13 | return null;↵
|
16 | | | 14 |
|