Commit a3effb5
Standardize native-theme build hints; fix simulator menu bugs (#4855)
Build hints rename: nativeTheme (global), ios.themeMode and
and.themeMode (platform-specific). The old keys cn1.nativeTheme
and cn1.androidTheme stay accepted as deprecated aliases on every
runtime, builder (maven plugin + BuildDaemon), and the simulator's
schema editor.
Simulator fixes:
- Native Theme menu reload now uses frm.dispose() + deinitializeSync()
(matching the working skin selector) instead of the unreliable
window field, so selecting a theme actually triggers a reload.
- "Auto" in the Native Theme menu defers to the project's build hints
(ios.themeMode / and.themeMode / nativeTheme), so a project that
set ios.themeMode=modern previews iOS Modern instead of being
hard-coded to one default.
- Restored the "Rotate" menu item for non-single-window mode. It was
removed wholesale when the toolbar Portrait/Landscape buttons
landed; now gated behind appFrame == null like the sibling Zoom
item so single-window users still see only the toolbar buttons.
Defaults:
- initializr / Playground codenameone_settings.properties (and the
bundled common.zip template) ship the renamed keys: nativeTheme,
ios.themeMode, and.themeMode all set to modern.
- PlaygroundProjectExporter now writes the same defaults into
generated project zips downloaded from cn1playground.
Playground samples:
- Removed trailing form;/root; lines from the bundled samples - the
runner already falls back to the first created Form/Component.
The exporter also strips form; / root; lines defensively when
generating Lifecycle source from a snippet.
Docs:
- Native-Themes.asciidoc, Advanced-Topics-Under-The-Hood.asciidoc,
and the liquid-glass blog post all describe the new naming with
the deprecated aliases noted.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ff335a5 commit a3effb5
14 files changed
Lines changed: 338 additions & 107 deletions
File tree
- Ports
- Android/src/com/codename1/impl/android
- JavaSE/src/com/codename1/impl/javase
- JavaScriptPort/src/main/java/com/codename1/impl/html5
- docs
- developer-guide
- website/content/blog
- maven/codenameone-maven-plugin/src/main/java/com/codename1/builders
- scripts
- cn1playground/common
- src/main/java/com/codenameone/playground
- initializr/common
- src/main/resources
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4929 | 4929 | | |
4930 | 4930 | | |
4931 | 4931 | | |
4932 | | - | |
4933 | | - | |
4934 | | - | |
4935 | | - | |
4936 | | - | |
4937 | | - | |
4938 | | - | |
4939 | | - | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
4940 | 4945 | | |
4941 | | - | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
4942 | 4953 | | |
4943 | 4954 | | |
4944 | 4955 | | |
| |||
4948 | 4959 | | |
4949 | 4960 | | |
4950 | 4961 | | |
4951 | | - | |
| 4962 | + | |
4952 | 4963 | | |
4953 | 4964 | | |
4954 | 4965 | | |
| |||
Lines changed: 21 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | | - | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
Lines changed: 180 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1231 | 1231 | | |
1232 | 1232 | | |
1233 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1234 | 1354 | | |
1235 | 1355 | | |
1236 | 1356 | | |
| |||
2775 | 2895 | | |
2776 | 2896 | | |
2777 | 2897 | | |
2778 | | - | |
2779 | | - | |
2780 | | - | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
2781 | 2908 | | |
2782 | 2909 | | |
2783 | 2910 | | |
2784 | 2911 | | |
2785 | | - | |
2786 | | - | |
2787 | | - | |
2788 | | - | |
2789 | | - | |
2790 | | - | |
2791 | | - | |
| 2912 | + | |
2792 | 2913 | | |
2793 | 2914 | | |
2794 | 2915 | | |
| |||
3667 | 3788 | | |
3668 | 3789 | | |
3669 | 3790 | | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
3670 | 3826 | | |
3671 | 3827 | | |
3672 | 3828 | | |
| |||
4671 | 4827 | | |
4672 | 4828 | | |
4673 | 4829 | | |
4674 | | - | |
| 4830 | + | |
4675 | 4831 | | |
4676 | 4832 | | |
4677 | 4833 | | |
| |||
4780 | 4936 | | |
4781 | 4937 | | |
4782 | 4938 | | |
4783 | | - | |
4784 | | - | |
4785 | | - | |
4786 | | - | |
4787 | | - | |
4788 | | - | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
4789 | 4948 | | |
4790 | | - | |
| 4949 | + | |
4791 | 4950 | | |
4792 | 4951 | | |
4793 | 4952 | | |
4794 | | - | |
| 4953 | + | |
4795 | 4954 | | |
4796 | 4955 | | |
4797 | 4956 | | |
| |||
4810 | 4969 | | |
4811 | 4970 | | |
4812 | 4971 | | |
| 4972 | + | |
| 4973 | + | |
4813 | 4974 | | |
4814 | | - | |
4815 | | - | |
4816 | | - | |
4817 | 4975 | | |
4818 | 4976 | | |
4819 | 4977 | | |
| |||
0 commit comments