File: Manifest.js

package info (click to toggle)
nvidia-cuda-toolkit 12.4.1-2
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 18,505,836 kB
  • sloc: ansic: 203,477; cpp: 64,769; python: 34,699; javascript: 22,006; xml: 13,410; makefile: 3,085; sh: 2,343; perl: 352
file content (743 lines) | stat: -rw-r--r-- 26,827 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
// CorePlugin: Provides most of the common Agora UI elements.
// Prefer adding shared UI code to this plugin instead of the AppLib static library.
AppLib.logInfo("Loading CorePlugin");

// ----------------------------------------------------------------------------
// Important: These states need to match the ones defined in CoreStates.h.
// ----------------------------------------------------------------------------
var states = {
    IsConnected: "$$.IsConnected",
    IsDebugBuild: "$$.IsDebugBuild",
    IsExportLevelInternal: "$$.IsExportLevelInternal",
    IsExportLevelNDA: "$$.IsExportLevelNDA",
    InActivity: "$$.InActivity",
    IsLayoutManagementAvailable: "$$.IsLayoutManagementAvailable",
    IsLayoutManagementSupported: "$$.IsLayoutManagementSupported",
    IsOpenRemoteFileSupported: "$$.IsOpenRemoteFileSupported",
    HasMixedDPIScalingHandling: "$$.HasMixedDPIScalingHandling",
    HasOpenWindows: "$$.HasOpenWindows",
    HasSamples: "$$.HasSamples",
};

addPlugin({
    pluginDependencies: [],
    pluginLibrary: "CorePlugin", // Library suffix (.so, .dll) appended automatically
    pluginAvailableInCli: true,

    hostApplication: {
        defaultTheme: "Light",
    },

    commandLineOptions: {
        "$$.SharedInstance": {
            name: "shared-instance",
            valueName: "shared-instance",
            description: "Use a shared instance of the application. If a shared instance does not already exist, it will be created. Supported values are 1|0, true|false, on|off, yes|no.",
        },
        "$$.SharedInstanceKey": {
            name: "shared-instance-key",
            valueName: "shared-instance-key",
            description: "When using a shared instance, this parameter provides a key for which shared instance to use.",
        },
        "$$.NoSplash": {
            name: "no-splash",
            description: "Suppresses the splash screen on startup",
        },
        "$$.Automated": {
            name: "automated",
            description: "Run in automated mode; either for tested or target initiated runs",
            hiddenFromHelp: true,
        },
        "$$.SecondaryInstanceWorkingDirectory": {
            name: "secondary-instance-working-directory",
            valueName: "secondary-instance-working-directory",
            description: "The current directory from which a secondary instance of application started.",
            hiddenFromHelp: true,
        },
    },

    toolWindows: {
        "$$.LogWindow": {
            text: qsTr("Output Messages"),
            layout: "dockSouth",
            persistable: true,
            commandBars: {
                "$$.LogWindowToolbar": { order: 1000 }
            },
            properties: {
                columns: {
                    "ID": { visible: true },
                    "Type": { visible: true },
                    "Origin": { visible: true },
                    "Source": { visible: true },
                    "Message": { visible: true },
                },
            },
        },

        "$$.ProjectExplorer": {
            text: qsTr("Project Explorer"),
            layout: "dockWest",
            persistable: true,
            defaultWidth: 10,
        },

        "$$.DocumentsWindow": {
            text: qsTr("Documents"),
            sizeMode: "percent",
            defaultHeight: 50,
            defaultWidth: 50,
            isFixed: true,
            preservesContents: true,
            persistable: true,
            layout: "dockEast",
        },

        "$$.SecondaryDocumentsWindow": {
            text: qsTr("Documents"),
            sizeMode: "percent",
            defaultHeight: 50,
            defaultWidth: 50,
            isFixed: true,
            preservesContents: true,
            persistable: true,
            layout: "floating",
        },
    },

    documents: {
        fileTypes: {
            "welcome": {
                icon: "",
                factoryName: "WelcomeDocumentFactory",
                viewFactories: [
                    { factoryName: "WelcomeDocumentViewFactory", priority: 50 }
                ]
            },
        }
    },

    documentWells: {
        main: {
            closeWhenEmpty: false
        },

        secondary: {
            // Not needed for now, but if needed later config could go here.
        },
    },

    commands: {

        // Project commands
        "$$.NewProject": {
            visibleWithFlags: ["CorePlugin.HasProjectService"],
            text: qsTr("New Project..."),
            importance: "high",
        },
        "$$.OpenProject": {
            visibleWithFlags: ["CorePlugin.HasProjectService"],
            text: qsTr("Open Project..."),
            imageFontIcon: "fa-folder-open",
            importance: "high",
        },
        "$$.SaveProject": {
            visibleWithFlags: ["CorePlugin.HasProjectService"],
            text: qsTr("Save Project"),
            imageFontIcon: "fa-save",
            importance: "high",
        },
        "$$.SaveProjectAs": {
            visibleWithFlags: ["CorePlugin.HasProjectService"],
            text: qsTr("Save Project As..."),
            importance: "high",
        },
        "$$.CloseProject": {
            visibleWithFlags: ["CorePlugin.HasProjectService"],
            text: qsTr("Close Project"),
            importance: "high",
        },
        "$$.RecentProjects": {
            visibleWithFlags: ["CorePlugin.HasProjectService", "CorePlugin.HasRecentFileService"],
            requiresFlags: [not(states.InActivity)],
            text: qsTr("Recent Projects"),
        },

        // Document commands
        "$$.NewFile": {
            text: qsTr("&New File..."),
            shortcut: codeTr("Ctrl+N"),
            importance: "high"
        },
        "$$.OpenFile": {
            text: qsTr("&Open File..."),
            imageFontIcon: "fa-folder-open",
            shortcut: codeTr("Ctrl+O"),
            importance: "high"
        },
        "$$.OpenRemoteFile": {
            text: qsTr("Open &Remote File..."),
            shortcut: codeTr("Ctrl+Shift+O"),
            visibleWithFlags: [states.IsOpenRemoteFileSupported],
            importance: "high"
        },
        "$$.SaveFile": {
            text: qsTr("&Save File"),
            imageFontIcon: "fa-save",
            shortcut: codeTr("Ctrl+S"),
            importance: "high"
        },
        "$$.SaveFileAs": {
            text: qsTr("Save File &As..."),
            importance: "high"
        },
        "$$.SaveAllFiles": {
            text: qsTr("Save A&ll Files"),
            shortcut: codeTr("Ctrl+Shift+S"),
            importance: "high"
        },
        "$$.CloseFile": {
            text: qsTr("&Close File"),
            shortcut: codeTr("Ctrl+W"),
            importance: "high"
        },
        "$$.CloseAllFiles": {
            text: qsTr("Close All Files"),
            importance: "high"
        },
        "$$.RecentFiles": {
            visibleWithFlags: ["CorePlugin.HasRecentFileService"],
            text: qsTr("Recent Files"),
        },

        // General file commands
        "$$.ExitCommand": {
            text: qsTr("E&xit"),
            imageFontIcon: "fa-times-circle",
            shortcut: codeTr("Ctrl+Q"),
        },

        // Window commands
        "$$.SaveWindowLayout": {
            text: qsTr("Save Window Layout..."),
            requiresFlags: [states.IsLayoutManagementSupported],
            visibleWithFlags: [states.IsLayoutManagementAvailable],
        },
        "$$.ApplyWindowLayout": {
            text: qsTr("Apply Window Layout"),
            requiresFlags: [states.IsLayoutManagementSupported],
            visibleWithFlags: [states.IsLayoutManagementAvailable],
        },
        "$$.ManageWindowLayouts": {
            text: qsTr("Manage Window Layouts..."),
            requiresFlags: [states.IsLayoutManagementSupported],
            visibleWithFlags: [states.IsLayoutManagementAvailable],
        },
        "$$.RestoreDefaultLayout": {
            text: qsTr("Restore Default Layout"),
        },
        "$$.ChooseWindow": {
            text: qsTr("Windows..."),
            shortcut: codeTr("Ctrl+Shift+W"),
            requiresFlags: [states.HasOpenWindows],
        },

        // Connection commands
        // DEPRECATED: Prefer TPSConnectionPlugin
        "$$.ConnectCommand": {
            text: qsTr("&Connect..."),
            imageFontIcon: "fa-sign-in-alt",
            importance: "high",
            requiresFlags: [not(states.IsConnected)],
            shortcut: codeTr("Ctrl+Shift+C"),
        },
        "$$.DisconnectCommand": {
            text: qsTr("&Disconnect"),
            imageFontIcon: "fa-sign-out-alt",
            importance: "high",
            requiresFlags: [states.IsConnected],
            shortcut: codeTr("Ctrl+Shift+D"),
        },

        "$$.SettingsCommand": {
            text: qsTr("&Options..."),
            shortcut: codeTr("F7"),
        },
        "$$.ShowLogsCommand": {
            text: qsTr("Output &Messages"),
        },
        "$$.ShowDocumentWell": {
            text: qsTr("[Debug] Documents Well"),
            visibleWithFlags: [states.IsDebugBuild],
        },
        "$$.ExportLogsCommand": {
            text: qsTr("Export to CSV"),
            imageFontIcon: "fa-save",
        },
        "$$.ClearLogsCommand": {
            text: qsTr("Clear"),
            imageFontIcon: "fa-trash",
            importance: "high"
        },
        "$$.ShowInfoLogLevelCommand": {
            text: qsTr("Show &Info Messages"),
            image: codeTr(":/NV_UI/info.ico"),
            checked: true
        },
        "$$.ShowWarningLogLevelCommand": {
            text: qsTr("Show &Warning Messages"),
            image: codeTr(":/NV_UI/warning.ico"),
            checked: true
        },
        "$$.ShowErrorLogLevelCommand": {
            text: qsTr("Show &Error Messages"),
            image: codeTr(":/NV_UI/error.ico"),
            checked: true
        },
        "$$.ShowFatalLogLevelCommand": {
            text: qsTr("Show &Fatal Messages"),
            image: codeTr(":/NV_UI/fatal.ico"),
            checked: true
        },
        "$$.FilterLogSourceCommand": {
            text: qsTr("Filter &Sources:"),
            editable: true,
            type: "list",
            width: 30
        },
        "$$.SamplesCommand": {
            visibleWithFlags: ["CorePlugin.HasProjectService", states.HasSamples],
            requiresFlags: [not(states.InActivity)],
            text: qsTr("Samples"),
        },
        "$$.CheckForUpdatesCommand": {
            text: qsTr("&Check For Updates..."),
            visibleWithFlags: ["CorePlugin.HasVersionUpdateService"],
        },
        "$$.AboutCommand": {
            text: qsTr("&About..."),
            menuRole: "about",
        },
        "$$.DocumentationCommand": {
            text: qsTr("&Documentation..."),
        },
        "$$.FeedbackCommand": {
            text: qsTr("Send Feedbac&k..."),
            imageFontIcon: "fa-comment-alt",
        },
        "$$.SelectPreviousCommand": {
            text: qsTr("Select &Previous"),
            shortcut: codeTr("Ctrl+Left"),
        },
        "$$.SelectNextCommand": {
            text: qsTr("Select &Next"),
            shortcut: codeTr("Ctrl+Right"),
        },
        "$$.SelectFirstCommand": {
            text: qsTr("Select &First"),
            shortcut: codeTr("Ctrl+Home"),
        },
        "$$.SelectLastCommand": {
            text: qsTr("Select &Last"),
            shortcut: codeTr("Ctrl+End"),
        },
        "$$.ShowProjectExplorerCommand": {
            visibleWithFlags: ["CorePlugin.HasProjectService"],
            text: qsTr("Project Explorer"),
        },
        "$$.ResetAppDataCommand": {
            text: qsTr("Reset Application Data..."),
        },
        "$$.ShowWelcomePage": {
            text: qsTr("Show Welcome Page"),
            visibleWithFlags: ["CorePlugin.HasProjectService"],
        },
        "$$.ConsoleLaunch": {
            // Internal command, used when CorePlugin is ready in
            // a console host.
        },
    },

    commandGroups: {

        // NOTE: Not a default group in the FileMenu
        "$$.ProjectGroup": {
            "$$.NewProject": { order: 100 },
            "$$.OpenProject": { order: 110 },
            "$$.RecentProjects": { order: 120 },
            "$$.SaveProject": { order: 130 },
            "$$.SaveProjectAs": { order: 140 },
            "$$.CloseProject": { order: 150 },
        },

        // NOTE: Not a default group in the FileMenu
        "$$.FileGroup": {
            "$$.NewFile": { order: 100 },
            "$$.OpenFile": { order: 110 },
            "$$.OpenRemoteFile": { order: 120 },
            "$$.SaveFile": { order: 130 },
            "$$.SaveFileAs": { order: 140 },
            "$$.SaveAllFiles": { order: 150 },
            "$$.CloseFile": { order: 160 },
            "$$.CloseAllFiles": { order: 170 },
            "$$.RecentFiles": { order: 180 },
        },

        // NOTE: Battle & Rebel have their own product specific layout group (but should really use this)
        "$$.LayoutGroup": {
            "$$.SaveWindowLayout": { order: 100 },
            "$$.ApplyWindowLayout": { order: 101 },
            "$$.ManageWindowLayouts": { order: 102 },
            "$$.RestoreDefaultLayout": { order: 103 },
            "$$.ChooseWindow": { order: 104 },
        },

        "$$.WelcomeGroup": {
            "$$.ShowWelcomePage": { order: 100 },
        },

        "$$.ExitGroup": {
            "$$.ExitCommand": { order: 100 }
        },
        "$$.SettingsGroup": {
            "$$.SettingsCommand": { order: 100 },
        },
        "$$.FileCloseGroup": {
            "$$.CloseDocumentCommand": { order: 100 }
        },
        "$$.ConnectionGroup": {
            "$$.ConnectCommand": { order: 100 },
            "$$.DisconnectCommand": { order: 110 },
        },
        "$$.LogViewGroup": {
            "$$.ShowLogsCommand": { order: 100 },
            "$$.ShowDocumentWell": { order: 110 },
        },
        "$$.LogClearGroup": {
            "$$.ExportLogsCommand": { order: 100 },
            "$$.ClearLogsCommand": { order: 110 },
        },
        "$$.LogFilterGroup": {
            "$$.ShowInfoLogLevelCommand": { order: 100 },
            "$$.ShowWarningLogLevelCommand": { order: 110 },
            "$$.ShowErrorLogLevelCommand": { order: 120 },
            "$$.ShowFatalLogLevelCommand": { order: 130 },
        },
        "$$.LogSourceFilterGroup": {
            "$$.FilterLogSourceCommand": { order: 100 }
        },
        "$$.DocumentationGroup": {
            "$$.DocumentationCommand": { order: 100 },
            "$$.SamplesCommand": { order: 110 },
            "$$.CheckForUpdatesCommand": { order: 200 },
        },
        "$$.FeedbackGroup": {
            "$$.FeedbackCommand": { order: 100 },
        },
        "$$.AboutGroup": {
            "$$.AboutCommand": { order: 100 },
        },
        "$$.ProjectExplorerViewGroup": {
            "$$.ShowProjectExplorerCommand": { order: 100 }
        },
        "$$.ResetAppDataGroup": {
            "$$.ResetAppDataCommand": { order: 100 },
        },
    },

    commandBars: {
        "$$.FileMenu": {
            type: "menu",
            text: qsTr("&File"),
            commandGroups: {
                "$$.ExitGroup": { order: 100 },
            },
        },
        "$$.ConnectionMenu": {
            type: "menu",
            text: qsTr("&Connection"),
            commandGroups: {
                "$$.ConnectionGroup": { order: 100 },
            },
        },
        "$$.ToolsMenu": {
            type: "menu",
            text: qsTr("&Tools"),
            commandGroups: {
                "$$.LogViewGroup": { order: 100 },
                "$$.ProjectExplorerViewGroup": { order: 110 },
                "$$.SettingsGroup": { order: 120 },
            },
        },

        // NOTE: Battle & Rebel have their own product specific window menu (but should really use this)
        "$$.WindowMenu": {
            type: "menu",
            text: qsTr("&Window"),
            commandGroups: {
                "$$.LayoutGroup": { order: 100 },
                "$$.WelcomeGroup": { order: 110 },
            },
        },

        "$$.HelpMenu": {
            type: "menu",
            text: qsTr("&Help"),
            commandGroups: {
                "$$.DocumentationGroup": { order: 100 },
                "$$.ResetAppDataGroup": { order: 110 },
                "$$.FeedbackGroup": { order: 120 },
                "$$.AboutGroup": { order: 130 },
            },
        },
        "$$.ConnectionToolbar": {
            type: "toolbar",
            text: qsTr("Connection"),
            commandGroups: {
                "$$.ConnectionGroup": { order: 100 },
            },
        },
        "$$.LogWindowToolbar": {
            type: "toolbar",
            text: qsTr("Main"),
            commandGroups: {
                "$$.LogClearGroup": { order: 100 },
                "$$.LogFilterGroup": { order: 110 },
                "$$.LogSourceFilterGroup": { order: 120 },
            }
        },
        "$$.FeedbackToolbar": {
            type: "rightJustifedToolbar",
            text: qsTr("Feedback"),
            commandGroups: {
                "$$.FeedbackGroup": { order: 100 },
            },
        },
    },

    settings: {
        "$$.Environment": {
            order: 50,
            text: qsTr("Environment"),
            properties: {
                "$$.ColorTheme": {
                    order: 100,
                    type: "installedThemes",
                    category: qsTr("Visual Experience"),
                    text: qsTr("Color Theme"),
                    detailsText: qsTr("The currently selected application color theme."),
                    changeRequiresAppRestart: true,
                },
                "$$.GeneralFont": {
                    order: 101,
                    type: "font",
                    fontType: "general",
                    category: qsTr("Visual Experience"),
                    text: qsTr("General Font"),
                    detailsText: qsTr("General font used for all non-code UI elements."),
                    changeRequiresAppRestart: true,
                },
                "$$.CodeFont2": {
                    order: 102,
                    type: "font",
                    fontType: "code",
                    category: qsTr("Visual Experience"),
                    text: qsTr("Code Font"),
                    detailsText: qsTr("Font used for source code and code-like UI elements."),
                    changeRequiresAppRestart: true,
                },
                "$$.DefaultColorMap": {
                    order: 109,
                    type: "defaultColorMap",
                    defaultValue: "Flammenmeer",
                    category: qsTr("Visual Experience"),
                    text: qsTr("Default Color Scale"),
                    detailsText: qsTr("Default color map used to represent a qualitiative scale of values."),
                },
                "$$.DefaultDocumentsFolder": {
                    requiresFlags: ["CorePlugin.HasProjectService"],
                    order: 110,
                    type: "directoryPath",
                    category: qsTr("Documents Folder"),
                    detailsText: qsTr("The folder where projects and documents will be saved."),
                },
                "$$.StartupBehavior": {
                    requiresFlags: ["CorePlugin.HasProjectService"],
                    order: 120,
                    type: "enum",
                    category: qsTr("Startup Behavior"),
                    text: qsTr("At Startup"),
                    detailsText: qsTr("What to do when the host is launched"),
                    defaultValue: "welcomePage",
                    enumValues: {
                        "welcomePage": {
                            order: 100,
                            text: qsTr("Show Welcome Page"),
                        },
                        "quickLaunch": {
                            order: 200,
                            text: qsTr("Show Quick Launch Dialog"),
                        },
                        "lastProject": {
                            order: 300,
                            text: qsTr("Load Last Project"),
                        },
                        "empty": {
                            order: 400,
                            text: qsTr("Show Empty Environment"),
                        },
                    },
                },
                "$$.ShowVersionUpdateNotifications": {
                    requiresFlags: ["CorePlugin.HasVersionUpdateService"],
                    order: 130,
                    type: "bool",
                    category: qsTr("Updates"),
                    text: qsTr("Show version update notifications"),
                    detailsText: qsTr("Show notifications when a new version of this product is available."),
                    defaultValue: true
                },
            },
        },

        "$$.Privacy": {
            requiresFlags: ["CorePlugin.HasPrivacyDialog"],
            order: 9999,
            text: qsTr("Send Feedback..."),
            properties: {
                "$$.AllowAnalytics": {
                    order: 100,
                    type: "bool",
                    category: qsTr("Help Improve NVIDIA Software"),
                    text: qsTr("Collect Usage and Platform Data"),
                    detailsText: qsTr("NVIDIA software packages collect usage and platform data via Google Analytics. \nThis data is not associated with any account information registered with NVIDIA \nand is used under the legitimate interest standard for the sole purpose of \nimproving NVIDIA software. For inquiries, please contact privacy@nvidia.com."),
                },
            },
        },

    },
});

// Rename some commands for increased Mac integration
if (AppLib.environment.darwin) {
    addPlugin({
        commands: {
            "CorePlugin.ExitCommand": {
                shortcut: codeTr("Ctrl+Q"),
                menuRole: "quit",
            },
            "CorePlugin.SettingsCommand": {
                text: qsTr("Preferences..."),
                shortcut: codeTr("Ctrl+,"),
                menuRole: "preferences",
            },
        },
    });
}

if (AppLib.environment.windows) {
    addPlugin({
        settings: {
            "$$.Environment": {
                properties: {
                    "$$.MixedDPIScalingHandling": {
                        requiresFlags: ["CorePlugin.HasMixedDPIScalingHandling"],
                        order: 105,
                        type: "enum",
                        defaultValue: "auto",
                        category: qsTr("Visual Experience"),
                        text: qsTr("Mixed DPI Scaling"),
                        detailsText: qsTr("Requires app restart. Disable Mixed DPI Scaling if unwanted artifacts are detected when using monitors with different DPIs."),
                        changeRequiresAppRestart: true,
                        enumValues: {
                            "auto": {
                                order: 100,
                                text: qsTr("Auto"),
                            },
                            "integerRoundUp": {
                                order: 200,
                                text: qsTr("Integer (round up)")
                            },
                            "integerRoundDown": {
                                order: 300,
                                text: qsTr("Integer (round down)")
                            },
                            "integerRoundAdjust": {
                                order: 400,
                                text: qsTr("Round and adjust the DPI")
                            },
                            "off": {
                                order: 500,
                                text: qsTr("Off"),
                            },
                        },
                    },
                },
            },
        },
    });
}

if (AppLib.environment.has_enhanced_windowing_experience_option) {
    addPlugin({
        settings: {
            "$$.Environment": {
                properties: {
                    "$$.UseEnhancedWindowingExperience": {
                        order: 106,
                        type: "bool",
                        defaultValue: true,
                        category: qsTr("Visual Experience"),
                        text: qsTr("Use Enhanced Windowing Experience"),
                        detailsText: qsTr("Enable an enhanced windowing experience. Requires app restart."),
                        changeRequiresAppRestart: true,
                    },
                },
            },
        },
    });
}

if (AppLib.environment.has_enhanced_windowing_experience) {
    addPlugin({
        settings: {
            "$$.Environment": {
                properties: {
                    "$$.FloatingWindowsAlwaysOnTop": {
                        order: 107,
                        type: "bool",
                        defaultValue: false,
                        category: qsTr("Windowing"),
                        text: qsTr("Floating Windows Always on Top"),
                        detailsText: qsTr("Configure floating tool windows to always stay on top of the main window. Requires app restart."),
                        changeRequiresAppRestart: true,
                    },

                    // XXX: This needs some style changes to support; the borders are currently drawn
                    // incorrectly.
                    //
                    // "$$.TabBarPosition": {
                    //     order: 108,
                    //     type: "bool",
                    //     type: "enum",
                    //     category: qsTr("Windowing"),
                    //     text: qsTr("Tab Bar Position"),
                    //     detailsText: qsTr("Set the position of tabs on the tab bar for multi-tabbed tool windows. Requires app restart."),
                    //     defaultValue: "south",
                    //     enumValues: {
                    //         "north": {
                    //             order: 100,
                    //             text: qsTr("North"),
                    //         },
                    //         "south": {
                    //             order: 200,
                    //             text: qsTr("South"),
                    //         },
                    //     },
                    //     changeRequiresAppRestart: true,
                    // },
                },
            },
        },
    });
}