chrome-devtools-frontend 1.0.956881 → 1.0.956975
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.
|
@@ -2171,6 +2171,12 @@
|
|
|
2171
2171
|
"panels/application/AppManifestView.ts | couldNotDownloadARequiredIcon": {
|
|
2172
2172
|
"message": "Could not download a required icon from the manifest"
|
|
2173
2173
|
},
|
|
2174
|
+
"panels/application/AppManifestView.ts | darkBackgroundColor": {
|
|
2175
|
+
"message": "Dark background color"
|
|
2176
|
+
},
|
|
2177
|
+
"panels/application/AppManifestView.ts | darkThemeColor": {
|
|
2178
|
+
"message": "Dark theme color"
|
|
2179
|
+
},
|
|
2174
2180
|
"panels/application/AppManifestView.ts | description": {
|
|
2175
2181
|
"message": "Description"
|
|
2176
2182
|
},
|
|
@@ -2171,6 +2171,12 @@
|
|
|
2171
2171
|
"panels/application/AppManifestView.ts | couldNotDownloadARequiredIcon": {
|
|
2172
2172
|
"message": "Ĉóûĺd̂ ńôt́ d̂óŵńl̂óâd́ â ŕêq́ûír̂éd̂ íĉón̂ f́r̂óm̂ t́ĥé m̂án̂íf̂éŝt́"
|
|
2173
2173
|
},
|
|
2174
|
+
"panels/application/AppManifestView.ts | darkBackgroundColor": {
|
|
2175
|
+
"message": "D̂ár̂ḱ b̂áĉḱĝŕôún̂d́ ĉól̂ór̂"
|
|
2176
|
+
},
|
|
2177
|
+
"panels/application/AppManifestView.ts | darkThemeColor": {
|
|
2178
|
+
"message": "D̂ár̂ḱ t̂h́êḿê ćôĺôŕ"
|
|
2179
|
+
},
|
|
2174
2180
|
"panels/application/AppManifestView.ts | description": {
|
|
2175
2181
|
"message": "D̂éŝćr̂íp̂t́îón̂"
|
|
2176
2182
|
},
|
|
@@ -102,6 +102,14 @@ const UIStrings = {
|
|
|
102
102
|
*/
|
|
103
103
|
backgroundColor: 'Background color',
|
|
104
104
|
/**
|
|
105
|
+
*@description Text in App Manifest View of the Application panel
|
|
106
|
+
*/
|
|
107
|
+
darkThemeColor: 'Dark theme color',
|
|
108
|
+
/**
|
|
109
|
+
*@description Text in App Manifest View of the Application panel
|
|
110
|
+
*/
|
|
111
|
+
darkBackgroundColor: 'Dark background color',
|
|
112
|
+
/**
|
|
105
113
|
*@description Text for the orientation of something
|
|
106
114
|
*/
|
|
107
115
|
orientation: 'Orientation',
|
|
@@ -403,6 +411,10 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
403
411
|
private readonly startURLField: HTMLElement;
|
|
404
412
|
private readonly themeColorSwatch: InlineEditor.ColorSwatch.ColorSwatch;
|
|
405
413
|
private readonly backgroundColorSwatch: InlineEditor.ColorSwatch.ColorSwatch;
|
|
414
|
+
private readonly darkThemeColorField: HTMLElement;
|
|
415
|
+
private readonly darkThemeColorSwatch: InlineEditor.ColorSwatch.ColorSwatch;
|
|
416
|
+
private readonly darkBackgroundColorField: HTMLElement;
|
|
417
|
+
private readonly darkBackgroundColorSwatch: InlineEditor.ColorSwatch.ColorSwatch;
|
|
406
418
|
private orientationField: HTMLElement;
|
|
407
419
|
private displayField: HTMLElement;
|
|
408
420
|
private readonly newNoteUrlField: HTMLElement;
|
|
@@ -456,6 +468,14 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
456
468
|
this.backgroundColorSwatch = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
457
469
|
backgroundColorField.appendChild(this.backgroundColorSwatch);
|
|
458
470
|
|
|
471
|
+
this.darkThemeColorField = this.presentationSection.appendField(i18nString(UIStrings.darkThemeColor));
|
|
472
|
+
this.darkThemeColorSwatch = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
473
|
+
this.darkThemeColorField.appendChild(this.darkThemeColorSwatch);
|
|
474
|
+
|
|
475
|
+
this.darkBackgroundColorField = this.presentationSection.appendField(i18nString(UIStrings.darkBackgroundColor));
|
|
476
|
+
this.darkBackgroundColorSwatch = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
477
|
+
this.darkBackgroundColorField.appendChild(this.darkBackgroundColorSwatch);
|
|
478
|
+
|
|
459
479
|
this.orientationField = this.presentationSection.appendField(i18nString(UIStrings.orientation));
|
|
460
480
|
this.displayField = this.presentationSection.appendField(i18nString(UIStrings.display));
|
|
461
481
|
|
|
@@ -634,6 +654,27 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
634
654
|
this.backgroundColorSwatch.renderColor(backgroundColor, true);
|
|
635
655
|
}
|
|
636
656
|
|
|
657
|
+
const userPreferences = parsedManifest['user_preferences'] || {};
|
|
658
|
+
const colorSchemeDark = userPreferences['color_scheme_dark'] || {};
|
|
659
|
+
const darkThemeColorString = colorSchemeDark['theme_color'];
|
|
660
|
+
const hasDarkThemeColor = typeof darkThemeColorString === 'string';
|
|
661
|
+
this.darkThemeColorField.parentElement?.classList.toggle('hidden', !hasDarkThemeColor);
|
|
662
|
+
if (hasDarkThemeColor) {
|
|
663
|
+
const darkThemeColor = Common.Color.Color.parse(darkThemeColorString);
|
|
664
|
+
if (darkThemeColor) {
|
|
665
|
+
this.darkThemeColorSwatch.renderColor(darkThemeColor, true);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
const darkBackgroundColorString = colorSchemeDark['background_color'];
|
|
669
|
+
const hasDarkBackgroundColor = typeof darkBackgroundColorString === 'string';
|
|
670
|
+
this.darkBackgroundColorField.parentElement?.classList.toggle('hidden', !hasDarkBackgroundColor);
|
|
671
|
+
if (hasDarkBackgroundColor) {
|
|
672
|
+
const darkBackgroundColor = Common.Color.Color.parse(darkBackgroundColorString);
|
|
673
|
+
if (darkBackgroundColor) {
|
|
674
|
+
this.darkBackgroundColorSwatch.renderColor(darkBackgroundColor, true);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
637
678
|
this.orientationField.textContent = stringProperty('orientation');
|
|
638
679
|
const displayType = stringProperty('display');
|
|
639
680
|
this.displayField.textContent = displayType;
|
package/package.json
CHANGED