plusui-native 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plusui-native",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "PlusUI CLI - Build C++ desktop apps modern UI ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -27,11 +27,11 @@
27
27
  "semver": "^7.6.0",
28
28
  "which": "^4.0.0",
29
29
  "execa": "^8.0.1",
30
- "plusui-native-builder": "^0.1.12",
31
- "plusui-native-bindgen": "^0.1.12"
30
+ "plusui-native-builder": "^0.1.13",
31
+ "plusui-native-bindgen": "^0.1.13"
32
32
  },
33
33
  "peerDependencies": {
34
- "plusui-native-bindgen": "^0.1.12"
34
+ "plusui-native-bindgen": "^0.1.13"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -120,15 +120,13 @@ int main() {
120
120
  auto mainWindow = {{PROJECT_NAME_LOWER}}.build();
121
121
 
122
122
  // ========================================
123
- // ICON SETUP (optional)
123
+ // ICON SETUP
124
124
  // ========================================
125
- // To set app icons, place icon.png in the assets/ folder
126
- // The CLI will generate ASSET_ICON_PNG and ASSET_ICON_PNG_LEN automatically
127
- // Then uncomment these lines:
128
- // #ifdef ASSET_ICON_PNG
129
- // mainWindow.window().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
130
- // mainWindow.tray().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
131
- // #endif
125
+ // Set app icons from embedded assets
126
+ #ifdef ASSET_ICON_PNG
127
+ mainWindow.window().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
128
+ mainWindow.tray().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
129
+ #endif
132
130
 
133
131
  // ========================================
134
132
  // SYSTEM TRAY (optional)
@@ -120,10 +120,12 @@ int main() {
120
120
  auto mainWindow = {{PROJECT_NAME_LOWER}}.build();
121
121
 
122
122
  // Set app icon from embedded assets
123
- mainWindow.window().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
123
+ #ifdef ASSET_ICON_PNG
124
+ mainWindow.window().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
125
+ mainWindow.tray().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
126
+ #endif
124
127
 
125
- // Set tray icon from embedded assets
126
- mainWindow.tray().setIconFromMemory(ASSET_ICON_PNG, ASSET_ICON_PNG_LEN);
128
+ // Set tray tooltip and visibility
127
129
  mainWindow.tray().setTooltip(appConfig.name);
128
130
  mainWindow.tray().setVisible(true);
129
131