Skip to content

Commit 0265bdf

Browse files
noisysocksgithub-actions[bot]
authored andcommitted
Release build 10.14.0 [ci release]
1 parent 4935471 commit 0265bdf

File tree

85 files changed

+3563
-1126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+3563
-1126
lines changed

CHANGELOG.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
- Add video playback observer (#1721)
2-
- NTP: Omnibar i18n (#1827)
1+
- NTP Omnibar: Adjust focus ring styling and remove it when typing (#1838)
2+
- Use tag instead of hash to fix updating (#1816)
3+
- Refactor TabSwitcher to use CSS for blob and CSS grid for sizing (#1840)
4+
- Use rgba() for disabled text color in AiChatForm styles (#1837)
5+
- Grow container when focused to accomodate focus ring (#1839)
6+
- NTP: Omnibar suffix text (#1831)
7+
- NTP: Add Duck.ai toggle to Customize drawer (#1832)
8+
- cache the result of isAppleSilicon() (#1828)

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@
869869
var globalObj = typeof window === "undefined" ? globalThis : window;
870870
var Error3 = globalObj.Error;
871871
var messageSecret;
872+
var isAppleSiliconCache = null;
872873
var OriginalCustomEvent = typeof CustomEvent === "undefined" ? null : CustomEvent;
873874
var originalWindowDispatchEvent = typeof window === "undefined" ? null : window.dispatchEvent.bind(window);
874875
function registerMessageSecret(secret) {
@@ -1005,9 +1006,14 @@
10051006
});
10061007
}
10071008
function isAppleSilicon() {
1009+
if (isAppleSiliconCache !== null) {
1010+
return isAppleSiliconCache;
1011+
}
10081012
const canvas = document.createElement("canvas");
10091013
const gl = canvas.getContext("webgl");
1010-
return gl.getSupportedExtensions().indexOf("WEBGL_compressed_texture_etc") !== -1;
1014+
const compressedTextureValue = gl?.getSupportedExtensions()?.indexOf("WEBGL_compressed_texture_etc");
1015+
isAppleSiliconCache = typeof compressedTextureValue === "number" && compressedTextureValue !== -1;
1016+
return isAppleSiliconCache;
10111017
}
10121018
function processAttrByCriteria(configSetting) {
10131019
let bestOption;

Sources/ContentScopeScripts/dist/contentScopeIsolated.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,7 @@
16031603
var globalObj = typeof window === "undefined" ? globalThis : window;
16041604
var Error3 = globalObj.Error;
16051605
var messageSecret;
1606+
var isAppleSiliconCache = null;
16061607
var OriginalCustomEvent = typeof CustomEvent === "undefined" ? null : CustomEvent;
16071608
var originalWindowDispatchEvent = typeof window === "undefined" ? null : window.dispatchEvent.bind(window);
16081609
function registerMessageSecret(secret) {
@@ -1710,9 +1711,14 @@
17101711
});
17111712
}
17121713
function isAppleSilicon() {
1714+
if (isAppleSiliconCache !== null) {
1715+
return isAppleSiliconCache;
1716+
}
17131717
const canvas = document.createElement("canvas");
17141718
const gl = canvas.getContext("webgl");
1715-
return gl.getSupportedExtensions().indexOf("WEBGL_compressed_texture_etc") !== -1;
1719+
const compressedTextureValue = gl?.getSupportedExtensions()?.indexOf("WEBGL_compressed_texture_etc");
1720+
isAppleSiliconCache = typeof compressedTextureValue === "number" && compressedTextureValue !== -1;
1721+
return isAppleSiliconCache;
17161722
}
17171723
function processAttrByCriteria(configSetting) {
17181724
let bestOption;

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.css

Lines changed: 79 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,13 +1510,9 @@ body:not([data-platform-name]) .Button_button:active {
15101510
padding: 0;
15111511
width: var(--sp-7);
15121512
}
1513-
.AiChatForm_submitButton svg {
1514-
height: var(--sp-4);
1515-
width: var(--sp-4);
1516-
}
15171513
.AiChatForm_submitButton[disabled] {
15181514
background: none;
1519-
color: var(--color-black-at-30);
1515+
color: rgba(0, 0, 0, 0.3);
15201516
cursor: default;
15211517
}
15221518
.AiChatForm_submitButton:focus-visible {
@@ -1530,7 +1526,7 @@ body:not([data-platform-name]) .Button_button:active {
15301526
}
15311527
.Container_inner {
15321528
background: var(--ntp-surface-tertiary);
1533-
border-radius: 11px;
1529+
border-radius: 12px;
15341530
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
15351531
margin: 0 calc(-1 * var(--sp-1));
15361532
overflow: hidden;
@@ -1542,13 +1538,20 @@ body:not([data-platform-name]) .Button_button:active {
15421538
transition: none;
15431539
}
15441540
}
1545-
.Container_inner:focus-within {
1546-
border-radius: 14px;
1547-
box-shadow: 0 0 0 2px var(--ntp-color-primary), 0 0 0 4px rgba(57, 105, 239, 0.2);
1541+
.Container_inner:not(:has([role=listbox])).Container_focusRing,
1542+
.Container_inner:not(:has([role=listbox])):focus-within:not(.Container_noFocusRing) {
1543+
border-radius: 15px;
1544+
box-shadow:
1545+
0 0 0 1px var(--ntp-surface-tertiary),
1546+
0 0 0 3px var(--ntp-color-primary),
1547+
0 0 0 7px rgba(57, 105, 239, 0.2);
15481548
}
15491549
.Container_inner:has([role=listbox]) {
1550-
border-radius: 16px;
1551-
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
1550+
border-radius: 15px;
1551+
box-shadow:
1552+
0 0 0 3px var(--ntp-surface-tertiary),
1553+
0px 4px 12px 3px rgba(0, 0, 0, 0.10),
1554+
0px 20px 40px 3px rgba(0, 0, 0, 0.08);
15521555
}
15531556

15541557
/* pages/new-tab/app/omnibar/components/Omnibar.module.css */
@@ -1571,21 +1574,34 @@ body:not([data-platform-name]) .Button_button:active {
15711574
padding: var(--sp-1);
15721575
}
15731576
.SearchForm_inputContainer svg {
1574-
height: var(--sp-4);
1577+
flex-shrink: 0;
15751578
margin: var(--sp-2);
1576-
width: var(--sp-4);
15771579
}
15781580
.SearchForm_input {
15791581
background: none;
15801582
border: none;
15811583
color: var(--ntp-text-normal);
1582-
flex: 1 0 0;
15831584
height: var(--sp-8);
1584-
padding: 0;
1585+
left: var(--sp-1);
1586+
padding-bottom: 0;
1587+
padding-left: calc(var(--sp-2) + var(--sp-4) + var(--sp-2));
1588+
padding-right: var(--suffix-text-width);
1589+
padding-top: 0;
1590+
position: absolute;
1591+
right: var(--sp-1);
15851592
}
15861593
.SearchForm_input:focus {
15871594
outline: none;
15881595
}
1596+
.SearchForm_suffixSpacer {
1597+
overflow: hidden;
1598+
visibility: hidden;
1599+
white-space: pre;
1600+
}
1601+
.SearchForm_suffix {
1602+
color: var(--ntp-color-primary);
1603+
flex-shrink: 0;
1604+
}
15891605

15901606
/* pages/new-tab/app/omnibar/components/SuggestionsList.module.css */
15911607
.SuggestionsList_list {
@@ -1605,22 +1621,48 @@ body:not([data-platform-name]) .Button_button:active {
16051621
justify-content: flex-start;
16061622
}
16071623
.SuggestionsList_item svg {
1608-
height: var(--sp-4);
1624+
flex-shrink: 0;
16091625
margin: var(--sp-2);
1610-
width: var(--sp-4);
16111626
}
16121627
.SuggestionsList_item[aria-selected=true] {
16131628
background: var(--ddg-color-primary);
16141629
border-radius: 4px;
16151630
color: var(--color-white);
16161631
}
1632+
.SuggestionsList_item[aria-selected=true] .SuggestionsList_suffix {
1633+
color: var(--color-white);
1634+
}
1635+
.SuggestionsList_title {
1636+
white-space: pre;
1637+
}
1638+
.SuggestionsList_suffix {
1639+
color: var(--ntp-text-muted);
1640+
font-size: 12px;
1641+
}
1642+
.SuggestionsList_badge {
1643+
align-items: center;
1644+
background: var(--ntp-controls-raised-backdrop);
1645+
border-radius: var(--border-radius-sm);
1646+
display: flex;
1647+
gap: 6px;
1648+
height: 22px;
1649+
margin-left: auto;
1650+
padding: 0px var(--sp-3);
1651+
}
1652+
.SuggestionsList_badge svg {
1653+
height: 9px;
1654+
margin: 0;
1655+
width: 9px;
1656+
}
16171657

16181658
/* pages/new-tab/app/omnibar/components/TabSwitcher.module.css */
16191659
.TabSwitcher_tabSwitcher {
16201660
background: var(--ntp-controls-raised-backdrop);
16211661
border-radius: 99px;
16221662
box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05) inset;
1623-
display: flex;
1663+
display: grid;
1664+
grid-template-columns: repeat(var(--tab-count), 1fr);
1665+
overflow: hidden;
16241666
padding: var(--sp-0_5);
16251667
position: relative;
16261668
}
@@ -1634,25 +1676,36 @@ body:not([data-platform-name]) .Button_button:active {
16341676
gap: 6px;
16351677
height: var(--sp-8);
16361678
justify-content: center;
1637-
padding: 0;
1638-
width: 92px;
1679+
padding: 0 var(--sp-3);
16391680
z-index: 1;
16401681
}
1641-
.TabSwitcher_tab svg {
1642-
height: var(--sp-4);
1643-
width: var(--sp-4);
1644-
}
16451682
.TabSwitcher_tabLabel {
16461683
padding-top: 1px;
16471684
}
16481685
.TabSwitcher_blob {
1686+
background-color: var(--color-white);
1687+
border-radius: 18px;
1688+
box-shadow:
1689+
0 4px 4px rgba(0, 0, 0, 0.08),
1690+
0 1px 2px rgba(0, 0, 0, 0.08),
1691+
inset 0 1px 0 rgba(255, 255, 255, 0.48);
16491692
color: var(--ntp-controls-raised-fill-primary);
1693+
height: var(--sp-8);
16501694
left: 0;
16511695
position: absolute;
1652-
top: 0;
1696+
top: 2px;
16531697
transition: translate 200ms ease;
1698+
translate: calc(2px + var(--tab-index) * 100%);
1699+
width: calc((100% - 4px) / var(--tab-count));
16541700
will-change: translate;
16551701
}
1702+
[data-theme=dark] .TabSwitcher_blob {
1703+
background-color: #6B6B6B;
1704+
box-shadow:
1705+
0 4px 4px rgba(0, 0, 0, 0.24),
1706+
0 1px 2px rgba(0, 0, 0, 0.24),
1707+
inset 0 1px 0 rgba(255, 255, 255, 0.06);
1708+
}
16561709
@media (prefers-reduced-motion: reduce) {
16571710
.TabSwitcher_blob {
16581711
transition: none;
@@ -2560,6 +2613,7 @@ body:not([data-platform-name]) .Button_button:active {
25602613
align-items: center;
25612614
text-decoration: none;
25622615
color: var(--ntp-color-primary);
2616+
margin-bottom: var(--sp-3);
25632617
}
25642618
.CustomizerDrawerInner_settingsLink:focus {
25652619
outline: none;

0 commit comments

Comments
 (0)