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
|
--- chrome/browser/resources/settings/appearance_page/appearance_page.ts.orig 2022-10-24 13:33:33 UTC
+++ chrome/browser/resources/settings/appearance_page/appearance_page.ts
@@ -63,7 +63,7 @@ export interface SettingsAppearancePageElement {
export enum SystemTheme {
// Either classic or web theme.
DEFAULT = 0,
- // <if expr="is_linux">
+ // <if expr="is_posix">
GTK = 1,
QT = 2,
// </if>
@@ -155,7 +155,7 @@ export class SettingsAppearancePageElement extends
'prefs.autogenerated.theme.policy.color.controlledBy)',
},
- // <if expr="is_linux">
+ // <if expr="is_posix">
/**
* Whether to show the "Custom Chrome Frame" setting.
*/
@@ -184,7 +184,7 @@ export class SettingsAppearancePageElement extends
'themeChanged_(' +
'prefs.extensions.theme.id.value, systemTheme_, isForcedTheme_)',
- // <if expr="is_linux">
+ // <if expr="is_posix">
'systemThemePrefChanged_(prefs.extensions.theme.system_theme.value)',
// </if>
];
@@ -203,7 +203,7 @@ export class SettingsAppearancePageElement extends
private showReaderModeOption_: boolean;
private isForcedTheme_: boolean;
- // <if expr="is_linux">
+ // <if expr="is_posix">
private showCustomChromeFrame_: boolean;
// </if>
@@ -281,7 +281,7 @@ export class SettingsAppearancePageElement extends
this.appearanceBrowserProxy_.useDefaultTheme();
}
- // <if expr="is_linux">
+ // <if expr="is_posix">
private systemThemePrefChanged_(systemTheme: SystemTheme) {
this.systemTheme_ = systemTheme;
}
@@ -354,7 +354,7 @@ export class SettingsAppearancePageElement extends
}
let i18nId;
- // <if expr="is_linux">
+ // <if expr="is_posix">
switch (this.systemTheme_) {
case SystemTheme.GTK:
i18nId = 'gtkTheme';
@@ -367,7 +367,7 @@ export class SettingsAppearancePageElement extends
break;
}
// </if>
- // <if expr="not is_linux">
+ // <if expr="not is_posix">
i18nId = 'chooseFromWebStore';
// </if>
this.themeSublabel_ = this.i18n(i18nId);
|