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.
|
|
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.
|
|
31
|
-
"plusui-native-bindgen": "^0.1.
|
|
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.
|
|
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
|
|
123
|
+
// ICON SETUP
|
|
124
124
|
// ========================================
|
|
125
|
-
//
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|