Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure chrome colors are initialized #35034

Merged
merged 4 commits into from Aug 22, 2022
Merged

fix: ensure chrome colors are initialized #35034

merged 4 commits into from Aug 22, 2022

Conversation

MarshallOfSound
Copy link
Member

Fixes #34406

After https://chromium-review.googlesource.com/c/chromium/src/+/3526815 we need to initialize chromes colors if we want to support pip.

Notes: Picture-In-Picture mode no longer becomes a red rectangle on hover

@MarshallOfSound MarshallOfSound added semver/patch backwards-compatible bug fixes target/19-x-y labels Jul 23, 2022
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Jul 23, 2022
Copy link
Member

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is linking error on Windows

..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /OUT:./electron.exe /nologo -libpath:..\..\third_party\llvm-build\Release+Asserts\lib\clang\15.0.0\lib\windows "-libpath:../../../../Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/ATLMFC/lib/x64" "-libpath:../../../../Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/lib/x64" "-libpath:../../../../Program Files (x86)/Windows Kits/NETFXSDK/4.8/lib/um/x64" "-libpath:../../../../Program Files (x86)/Windows Kits/10/lib/10.0.20348.0/ucrt/x64" "-libpath:../../../../Program Files (x86)/Windows Kits/10/lib/10.0.20348.0/um/x64" /MACHINE:X64  /PDB:./electron.exe.pdb @./electron.exe.rsp
lld-link: error: undefined symbol: bool __cdecl ShouldCustomDrawSystemTitlebar(void)

@ShukantPal
Copy link

Thanks @MarshallOfSound!

@h615861768
Copy link

Thank you @MarshallOfSound!

@codebytere
Copy link
Member

I think we need to add chrome/browser/ui/color/win/native_chrome_color_mixer_win.cc to chromium_src/BUILD.gn

@leonardxfce-dialpad
Copy link

@MarshallOfSound, sorry for the ping, could you apply the suggestions we wrote, if you have your hands full of work I can try to do a similar PR trying to address this problem (I know nothing C++ code but I can follow your code and use the suggestions here) just let me know.

@MarshallOfSound MarshallOfSound added the target/21-x-y PR should also be added to the "21-x-y" branch. label Aug 15, 2022
@codebytere codebytere merged commit 9b2b199 into main Aug 22, 2022
@codebytere codebytere deleted the fix-pip-colors branch August 22, 2022 14:38
@release-clerk
Copy link

release-clerk bot commented Aug 22, 2022

Release Notes Persisted

Picture-In-Picture mode no longer becomes a red rectangle on hover

@trop
Copy link
Contributor

trop bot commented Aug 22, 2022

I have automatically backported this PR to "19-x-y", please check out #35400

@trop
Copy link
Contributor

trop bot commented Aug 22, 2022

I have automatically backported this PR to "21-x-y", please check out #35401

@trop
Copy link
Contributor

trop bot commented Aug 22, 2022

I have automatically backported this PR to "20-x-y", please check out #35402

@trop trop bot added in-flight/21-x-y and removed target/21-x-y PR should also be added to the "21-x-y" branch. target/20-x-y labels Aug 22, 2022
@arnaudbud
Copy link

/trop run backport-to 18-x-y

@trop
Copy link
Contributor

trop bot commented Aug 22, 2022

@arnaudbud is not authorized to run PR backports.

@PikachuEXE
Copy link

@arnaudbud I have tested 18.x it there is no such issue

@trop trop bot added merged/20-x-y merged/21-x-y PR was merged to the "21-x-y" branch. and removed in-flight/20-x-y labels Aug 23, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* fix: ensure chrome colors are initialized

* build: fix linking on windows

* build: fix linking on windows

* build: add needed files to chromium_src/BUILD

Co-authored-by: VerteDinde <keeleymhammond@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/21-x-y PR was merged to the "21-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: red background on hover to PiP
9 participants